Re: [PATCH] net: Fix usage of pskb_trim_rcsum

2019-01-18 Thread David Miller
From: Ross Lagerwall Date: Thu, 17 Jan 2019 15:34:38 + > 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: Ros

[PATCH] net: Fix usage of pskb_trim_rcsum

2019-01-17 Thread Ross Lagerwall
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 --- drivers/net/ppp/pppoe.c | 1 + include