Re: [PATCH net-next 8/9] net: skbuff: don't BUG() on a missing head_frag in skb_zerocopy()
From: Mina Almasry
Date: Fri Oct 09 2026 - 12:19:30 EST
On Tue, Oct 6, 2026 at 10:10 AM Josef Bacik <josef@xxxxxxxxxxxxxx> wrote:
>
> skb_zerocopy() BUG()s if @from has no head_frag and the caller passed
> hlen == 0, meaning the caller didn't ask for the head to be copied and
> the head can't be referenced as a page either. The check runs before
> anything is touched, and skb_zerocopy() already documents -EFAULT for
> bad skb geometry. Warn once and return that.
>
> Assisted-by: LLM
> Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
Reviewed-by: Mina Almasry <almasrymina@xxxxxxxxxx>
--
Thanks,
Mina