Skip to content
Commit 50269e19 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: add a truesize parameter to skb_add_rx_frag()



skb_add_rx_frag() API is misleading.

Network skbs built with this helper can use uncharged kernel memory and
eventually stress/crash machine in OOM.

Add a 'truesize' parameter and then fix drivers in followup patches.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0015e551
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment