Re: [PATCH] ipv6: frags: Fix bogus skb->sk in reassembled packets

2018-12-20 Thread David Miller
From: Herbert Xu Date: Thu, 20 Dec 2018 21:20:10 +0800 > It was reported that IPsec would crash when it encounters an IPv6 > reassembled packet because skb->sk is non-zero and not a valid > pointer. > > This is because skb->sk is now a union with ip_defrag_offset. > > This patch fixes this by r

Re: [PATCH] ipv6: frags: Fix bogus skb->sk in reassembled packets

2018-12-20 Thread Eric Dumazet
On Thu, Dec 20, 2018 at 5:20 AM Herbert Xu wrote: > > It was reported that IPsec would crash when it encounters an IPv6 > reassembled packet because skb->sk is non-zero and not a valid > pointer. > > This is because skb->sk is now a union with ip_defrag_offset. > > This patch fixes this by resetti

[PATCH] ipv6: frags: Fix bogus skb->sk in reassembled packets

2018-12-20 Thread Herbert Xu
It was reported that IPsec would crash when it encounters an IPv6 reassembled packet because skb->sk is non-zero and not a valid pointer. This is because skb->sk is now a union with ip_defrag_offset. This patch fixes this by resetting skb->sk when exiting from the reassembly code. Reported-by: X