Re: [PATCH net v4] l2tp: fix reading optional fields of L2TPv3

2019-01-30 Thread David Miller
From: Jacob Wen Date: Wed, 30 Jan 2019 14:55:14 +0800 > Use pskb_may_pull() to make sure the optional fields are in skb linear > parts, so we can safely read them later. > > It's easy to reproduce the issue with a net driver that supports paged > skb data. Just create a L2TPv3 over IP tunnel and

[PATCH net v4] l2tp: fix reading optional fields of L2TPv3

2019-01-29 Thread Jacob Wen
Use pskb_may_pull() to make sure the optional fields are in skb linear parts, so we can safely read them later. It's easy to reproduce the issue with a net driver that supports paged skb data. Just create a L2TPv3 over IP tunnel and then generates some network traffic. Once reproduced, rx err in /