Re: [PATCH 1/5] net: Fix potential deadloop in skb_copy_ubufs()

From: linmiaohe
Date: Sat Aug 15 2020 - 22:28:38 EST


Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
>On Fri, Aug 14, 2020 at 12:14 AM linmiaohe <linmiaohe@xxxxxxxxxx> wrote:
>>
>> Willem de Bruijn <willemdebruijn.kernel@xxxxxxxxx> wrote:
>>
>> Since we always call skb_orphan_frags in skb_clone, is it unnecessary to call skb_orphan_frags in pskb_expand_head when skb is cloned ?
>
>Please give us a real case.
>
>I fear that your patches are coming directly from some kind of automated tool, that really misses how the code is really used from _current_ code base, not _hypothetical_ one.
>
>This is very time consuming. Please provide evidence first.
>
>Thank you.

I'am sorry about it. I do this mainly through code review and do some test code. So the problem codepath may not exist from current code base, but may
happen when we do not take care of it in the future use. We may forget same assumption. And make these assumptions clear seems not a bad thing.
But I'am going to just drop this patch. I believe you all can handle the things correctly.

Many thanks.