netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] rework netlink skb allocation
@ 2019-08-22 10:48 Jan Dakinevich
  2019-08-22 10:48 ` [PATCH 1/3] skbuff: use kvfree() to deallocate head Jan Dakinevich
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jan Dakinevich @ 2019-08-22 10:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Denis Lunev, Konstantin Khorenko, jan.dakinevich, Jan Dakinevich,
	David S. Miller, Alexey Kuznetsov (C),
	Hideaki YOSHIFUJI, Pablo Neira Ayuso, Jozsef Kadlecsik,
	Florian Westphal, Johannes Berg, David Ahern, Christian Brauner,
	Stephen Hemminger, Jason A. Donenfeld, Jakub Kicinski,
	Willem de Bruijn, Cong Wang, Simon Horman, John Hurley,
	Paolo Abeni, Jesper Dangaard Brouer, Sebastian Andrzej Siewior,
	Eric Dumazet, Li RongQing, Taehee Yoo, Patrick Talbert,
	Herbert Xu, Thomas Gleixner, Dmitry Safonov, netdev,
	netfilter-devel, coreteam

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-22 19:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 10:48 [PATCH 0/3] rework netlink skb allocation Jan Dakinevich
2019-08-22 10:48 ` [PATCH 1/3] skbuff: use kvfree() to deallocate head Jan Dakinevich
2019-08-22 10:48 ` [PATCH 2/3] netlink: always use vmapped memory for skb data Jan Dakinevich
2019-08-22 10:48 ` [PATCH 3/3] netlink: use generic skb_set_owner_r() Jan Dakinevich
2019-08-22 19:04 ` [PATCH 0/3] rework netlink skb allocation David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).