diff options
| author | 2026-10-07 17:36:06 +0000 | |
|---|---|---|
| committer | 2026-10-15 17:47:40 -0700 | |
| commit | 433380f5ab8f1b6bd6f10284c77c8a8031f68f6e (patch) | |
| tree | ad37ed0073db69560815b7004f27eb278701f63e /scripts/Makefile.thinlto | |
| parent | net: skbuff: don't BUG() on leftover length in skb_copy_and_csum_bits() (diff) | |
net: skbuff: don't BUG() on a missing head_frag in skb_zerocopy()
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. Return that, with a DEBUG_NET_WARN_ON_ONCE() for
debug kernels.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://patch.msgid.link/20261007-b4-skbuff-bug-on-v2-7-b9a5f732895b@toxicpanda.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
