Re: [PATCH net] net: adjust skb->truesize in ___pskb_trim()

2017-04-28 Thread David Miller
From: Eric Dumazet Date: Wed, 26 Apr 2017 09:07:46 -0700 > From: Eric Dumazet > > Andrey found a way to trigger the WARN_ON_ONCE(delta < len) in > skb_try_coalesce() using syzkaller and a filter attached to a TCP > socket. > > As we did recently in commit 158f323b9868 ("net: adjust skb->truesi

Re: [PATCH net] net: adjust skb->truesize in ___pskb_trim()

2017-04-27 Thread Willem de Bruijn
On Wed, Apr 26, 2017 at 1:08 PM, Andrey Konovalov wrote: > On Wed, Apr 26, 2017 at 6:07 PM, Eric Dumazet wrote: >> From: Eric Dumazet >> >> Andrey found a way to trigger the WARN_ON_ONCE(delta < len) in >> skb_try_coalesce() using syzkaller and a filter attached to a TCP >> socket. >> >> As we d

Re: [PATCH net] net: adjust skb->truesize in ___pskb_trim()

2017-04-26 Thread Andrey Konovalov
On Wed, Apr 26, 2017 at 6:07 PM, Eric Dumazet wrote: > From: Eric Dumazet > > Andrey found a way to trigger the WARN_ON_ONCE(delta < len) in > skb_try_coalesce() using syzkaller and a filter attached to a TCP > socket. > > As we did recently in commit 158f323b9868 ("net: adjust skb->truesize in >

[PATCH net] net: adjust skb->truesize in ___pskb_trim()

2017-04-26 Thread Eric Dumazet
From: Eric Dumazet Andrey found a way to trigger the WARN_ON_ONCE(delta < len) in skb_try_coalesce() using syzkaller and a filter attached to a TCP socket. As we did recently in commit 158f323b9868 ("net: adjust skb->truesize in pskb_expand_head()") we can adjust skb->truesize from ___pskb_trim(