Skip to content

net: dsa: Fix tag_ksz.c

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: core: Specify skb_pad()/skb_put_padto() SKB freeinginclude/linux/skbuff.h net/core/skbuff.c+45 -91 reply
2/2net: dsa: skb_put_padto() already frees nskbnet/dsa/tag_ksz.c+6 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchWoojung Huh
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/2] net: dsa: Fix tag_ksz.c

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(-)
Signature · 1 line
2.9.3