[PATCH 0/3] rework netlink skb allocation

From: Jan Dakinevich
Date: Thu Aug 22 2019 - 09:45:16 EST


Currently, userspace is able to initiate costly high-order allocation in
kernel sending large broadcast netlink message, which is considered
undesirable. At the same time, unicast message are safe in this regard,
because they uses vmalloc-ed memory.

This series introduces changes, that allow broadcast messages to be
allocated with vmalloc() as well as unicast.

Jan Dakinevich (3):
skbuff: use kvfree() to deallocate head
netlink: always use vmapped memory for skb data
netlink: use generic skb_set_owner_r()

include/linux/netlink.h | 16 ----------------
net/core/skbuff.c | 2 +-
net/ipv4/fib_frontend.c | 2 +-
net/netfilter/nfnetlink.c | 2 +-
net/netlink/af_netlink.c | 39 +++++++--------------------------------
5 files changed, 10 insertions(+), 51 deletions(-)

--
2.1.4