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

2019-01-29 Thread Jacob Wen
Thanks for the detailed review. On 1/30/19 6:37 AM, Guillaume Nault wrote: On Tue, Jan 29, 2019 at 02:18:13PM +0800, Jacob Wen wrote: Use pskb_may_pull() to make sure the optional fields are in skb linear parts, so we can safely read them in l2tp_recv_common. Looks fine to me. Just a few nitp

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

2019-01-29 Thread Guillaume Nault
On Tue, Jan 29, 2019 at 02:18:13PM +0800, Jacob Wen wrote: > Use pskb_may_pull() to make sure the optional fields are in skb linear > parts, so we can safely read them in l2tp_recv_common. > Looks fine to me. Just a few nitpicks. Not sure if they're worth a repost. But if you send a v4, you can:

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

2019-01-28 Thread Jacob Wen
Use pskb_may_pull() to make sure the optional fields are in skb linear parts, so we can safely read them in l2tp_recv_common. 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 reproduce