commit | 40f2f08030fa59f634ed8313f4c9578416f2a108 | [log] [tgz] |
---|---|---|
author | Ross Lagerwall <ross.lagerwall@citrix.com> | Thu Jan 17 15:34:38 2019 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jan 31 08:14:31 2019 +0100 |
tree | 4605da9a0ab26eab21f80c448c9ebd566ad139bb | |
parent | e287968a3837458cd489bdfad7095bb5a10a61b6 [diff] |
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>