Messages in this thread | | | From | Jan Dakinevich <> | Subject | [PATCH 0/3] rework netlink skb allocation | Date | Thu, 22 Aug 2019 09:50:50 +0000 |
| |
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
| |