diff options
| author | 2026-10-07 17:36:00 +0000 | |
|---|---|---|
| committer | 2026-10-15 17:47:39 -0700 | |
| commit | c7d8bc3dd511dac309754543d3063f3950b364c2 (patch) | |
| tree | 10cbbd5ee11e19a74bf9d1b42769f3b689201bda /scripts/Makefile.thinlto | |
| parent | net: dccp: uapi: clean up kernel-doc comments (diff) | |
net: skbuff: don't BUG() on bad arguments to pskb_expand_head()
pskb_expand_head() BUG()s if it is handed a negative nhead or a shared
skb. Both are bugs in the caller, and both keep getting hit: commit
2cbb259ec4f8 ("bpf: Reject negative head_room in __bpf_skb_change_head")
and commit 64e6a754d33d ("llc: do not use skb_get() before
dev_queue_xmit()") each fixed a crash here that took down the whole box.
The function already returns an error that every caller has to handle,
and at this point it hasn't touched the skb. Return -EINVAL instead of
crashing. The warning is DEBUG_NET_WARN_ON_ONCE(), so debug kernels
still point at the caller, while production kernels, including ones
running with panic_on_warn, just fail the call.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://patch.msgid.link/20261007-b4-skbuff-bug-on-v2-1-b9a5f732895b@toxicpanda.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
