aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2026-10-07 17:36:05 +0000
committerJakub Kicinski <kuba@kernel.org>2026-10-15 17:47:40 -0700
commit417261779eab5e2be1cfe60e1018ba9612a410e0 (patch)
treebdfc1cb1bd78b06395761d216f09151177294f8d /scripts/Makefile.thinlto
parentnet: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev() (diff)
net: skbuff: don't BUG() on leftover length in skb_copy_and_csum_bits()
skb_copy_and_csum_bits() has the same check as skb_checksum(): it BUG()s if it runs out of skb before it runs out of @len. This one gets hit: commit 7d63b6712538 ("icmp: guard against too small mtu") and commit f99cd56230f5 ("net: Remove acked SYN flag from packet in the transmit queue correctly") each fixed a crash here from icmp_glue_bits(). It can't just return, though. Its callers copy into a buffer that is about to go out on the wire, an ICMP error quoting the offending packet for example, so bailing out early would send whatever was left in the rest of that buffer. Zero the part of the buffer we didn't fill and return 0, with a DEBUG_NET_WARN_ON_ONCE() for debug kernels. As with skb_checksum(), the checksum usually won't match the data, so the receiver will usually drop the packet, but either way it carries nothing it shouldn't. @len is an int, so only zero when it is positive; a negative @len from a broken caller must not turn into a huge memset(). Signed-off-by: Josef Bacik <josef@toxicpanda.com> Link: https://patch.msgid.link/20261007-b4-skbuff-bug-on-v2-6-b9a5f732895b@toxicpanda.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions