summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorShihuang Liu <shlomojune6@gmail.com>2026-09-19 21:36:04 +0800
committerJakub Kicinski <kuba@kernel.org>2026-09-23 17:41:22 -0700
commit3b4e0b0c008a8c1b474730248cd5b873026c74bd (patch)
treef7343f0009d9747f9459665880ed6a1f70c69e76 /tools/perf/scripts/python/stackcollapse.py
parent7104a370714346b667712913dc16abf14bbc97ed (diff)
net: skbuff: fix pull-bound underflow in skb_checksum_setup_ipv6()
skb_maybe_pull_tail() subtracts skb_headlen(skb) from the unsigned max argument and passes the result to __pskb_pull_tail() as a signed int. The function does not ensure that max is at least skb_headlen(skb). This can happen while parsing IPv6 extension headers when an skb already has a linear area larger than MAX_IPV6_HDR_LEN. Once the parser needs data beyond the linear area, max - skb_headlen(skb) wraps and is converted to a negative delta. __pskb_pull_tail() then passes that negative length to skb_copy_bits(), where it can become a very large copy length. Pass the requested length itself as the pull bound at the three extension-header call sites, so the delta can no longer go negative. Fixes: 1431fb31ecba ("xen-netback: fix fragment detection in checksum setup") Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Shihuang Liu <shlomojune6@gmail.com> Link: https://patch.msgid.link/20260919133604.50948-1-shlomojune6@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions