Re: [PATCH] net: Fix potential out of bound write in skb_try_coalesce()

2020-08-06 Thread linmiaohe
Eric Dumazet wrote: >On Tue, Aug 4, 2020 at 4:46 AM linmiaohe wrote: >> >> From: Miaohe Lin >> >> The head_frag of skb would occupy one extra skb_frag_t. Take it into >> account or out of bound write to skb frags may happen. >> > >Please share a stack trace if this was a real bug spotted in the

Re: [PATCH] net: Fix potential out of bound write in skb_try_coalesce()

2020-08-04 Thread Eric Dumazet
On Tue, Aug 4, 2020 at 4:46 AM linmiaohe wrote: > > From: Miaohe Lin > > The head_frag of skb would occupy one extra skb_frag_t. Take it into > account or out of bound write to skb frags may happen. > > Signed-off-by: Miaohe Lin Please share a stack trace if this was a real bug spotted in the w

[PATCH] net: Fix potential out of bound write in skb_try_coalesce()

2020-08-04 Thread linmiaohe
From: Miaohe Lin The head_frag of skb would occupy one extra skb_frag_t. Take it into account or out of bound write to skb frags may happen. Signed-off-by: Miaohe Lin --- net/core/skbuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c