]> git.ipfire.org Git - people/arne_f/kernel.git/commit
net: Fix usage of pskb_trim_rcsum
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 17 Jan 2019 15:34:38 +0000 (15:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:12:33 +0000 (08:12 +0100)
commit04663e84f0429d3777ccb2c3f895fc8a37bddf31
treebc02c4fe9959f7314d9a366ea790bf5d17d10c3d
parent0ae4bffc96aa1a1dccba04bc39f72cffc5588afc
net: Fix usage of pskb_trim_rcsum

[ Upstream commit 6c57f0458022298e4da1729c67bd33ce41c14e7a ]

In certain cases, pskb_trim_rcsum() may change skb pointers.
Reinitialize header pointers afterwards to avoid potential
use-after-frees. Add a note in the documentation of
pskb_trim_rcsum(). Found by KASAN.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ppp/pppoe.c
include/linux/skbuff.h
net/bridge/br_netfilter_ipv6.c
net/bridge/netfilter/nft_reject_bridge.c
net/ipv4/ip_input.c