netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: dsa: Fix tag_ksz.c
@ 2017-08-22 22:12 Florian Fainelli
  2017-08-22 22:12 ` [PATCH net v2 1/2] net: core: Specify skb_pad()/skb_put_padto() SKB freeing Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Florian Fainelli @ 2017-08-22 22:12 UTC (permalink / raw)
  To: netdev; +Cc: davem, vivien.didelot, Woojung.Huh, UNGLinuxDriver,
	Florian Fainelli

This implements David's suggestion of providing low-level functions
to control whether skb_pad() and skb_put_padto() should be freeing
the passed skb.

We make use of it to fix a double free in net/dsa/tag_ksz.c that would
occur if we kept using skb_put_padto() in both places.

Florian Fainelli (2):
  net: core: Specify skb_pad()/skb_put_padto() SKB freeing
  net: dsa: skb_put_padto() already frees nskb

 include/linux/skbuff.h | 41 +++++++++++++++++++++++++++++++++++++----
 net/core/skbuff.c      | 13 ++++++++-----
 net/dsa/tag_ksz.c      | 10 ++++++----
 3 files changed, 51 insertions(+), 13 deletions(-)

-- 
2.9.3

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

end of thread, other threads:[~2017-08-24  5:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-22 22:12 [PATCH net v2 0/2] net: dsa: Fix tag_ksz.c Florian Fainelli
2017-08-22 22:12 ` [PATCH net v2 1/2] net: core: Specify skb_pad()/skb_put_padto() SKB freeing Florian Fainelli
2017-08-23 21:42   ` Woojung.Huh
2017-08-22 22:12 ` [PATCH net v2 2/2] net: dsa: skb_put_padto() already frees nskb Florian Fainelli
2017-08-23 21:42   ` Woojung.Huh
2017-08-24  3:37 ` [PATCH net v2 0/2] net: dsa: Fix tag_ksz.c David Miller
2017-08-24  4:40   ` [PATCH net] net: dsa: use consume_skb() Eric Dumazet
2017-08-24  5:14     ` 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).