[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1332583048.3487.1.camel@edumazet-laptop>
Date: Sat, 24 Mar 2012 02:57:28 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Wey-Yi Guy <wey-yi.w.guy@...el.com>
Subject: Re: [PATCH] net: add a truesize parameter to skb_add_rx_frag()
Le vendredi 23 mars 2012 à 06:17 -0700, Eric Dumazet a écrit :
> 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: Eric Dumazet <eric.dumazet@...il.com>
> Cc: Wey-Yi Guy <wey-yi.w.guy@...el.com>
> ---
> drivers/net/usb/cdc-phonet.c | 6 ++++--
> drivers/net/wireless/iwlegacy/3945.c | 3 ++-
> drivers/net/wireless/iwlegacy/4965-mac.c | 3 ++-
> drivers/net/wireless/iwlwifi/iwl-agn-rx.c | 2 +-
> include/linux/skbuff.h | 2 +-
> net/core/skbuff.c | 4 ++--
> 6 files changed, 12 insertions(+), 8 deletions(-)
Oh well I missed drivers/usb/gadget/f_phonet.c change, I'll send a v2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists