public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] skb truesize last offenders
@ 2012-03-23 12:51 Eric Dumazet
  2012-03-23 18:38 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Dumazet @ 2012-03-23 12:51 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Wey-Yi Guy

iwlwifi and some other users of skb_add_rx_frag() lie about skb
truesize, because of API being lazy.

iwlwifi can use order-0 or order-1 pages and skb truesize is wrong.
network sbs can use uncharged kernel memory and eventually crash machine
in OOM.

I plan : 

1) adding a @truesize parameter to skb_add_rx_frag() in a neutral patch

2) fix drivers that dont charge the real size of fragment

3) niu could then use skb_add_rx_frag() instead of custom code.

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

end of thread, other threads:[~2012-03-24 16:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-23 12:51 [RFC] skb truesize last offenders Eric Dumazet
2012-03-23 18:38 ` David Miller
2012-03-23 18:55   ` Eric Dumazet
2012-03-24  0:05     ` [PATCH] iwlwifi: fix skb truesize underestimation Eric Dumazet
2012-03-24  0:22       ` Eric Dumazet
2012-03-24  0:29         ` [PATCH v2] " Eric Dumazet
2012-03-24 15:35           ` Guy, Wey-Yi
2012-03-24 16:12             ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox