summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2026-10-17 23:09:48 +0000
committerAlexei Starovoitov <ast@kernel.org>2026-10-18 00:36:44 +0000
commit1db084f42884c5af881fedf3df4777fe2095b20b (patch)
tree4a85bfb90b14fc6175bb50180af40e4c54a1d061 /tools/perf/scripts/python/bin/stackcollapse-report
parent1c19f2b3b2f3b55c8017092257634cb8229b7d97 (diff)
bpf: Use memmove() to store bytes in an skb
Through bpf_dynptr_write() and bpf_dynptr_copy() the source of bpf_skb_store_bytes() can be a slice of the same skb which overlaps the destination. memcpy() then reads bytes which it has overwritten already. On x86 with FSRM it repeats the first bytes of the source instead of copying it. Local, ringbuf and skb metadata dynptrs are written with memmove() for that reason. Fixes: 2012c867c800 ("bpf: verifier: Accept dynptr mem as mem in helpers") Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261017230950.802052-15-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions