summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJunseo Lim <zirajs7@gmail.com>2026-08-11 23:19:08 +0900
committerDaniel Borkmann <daniel@iogearbox.net>2026-08-17 11:33:29 +0200
commit6b0835ac79b2e43a7948c911add88246baea0a98 (patch)
treed56f3ff97587421ebd17de8a103fb7d2fd58016e /tools/perf/scripts/python
parent1b5aacd5b2419b0790e955e466d389a61c79b4b1 (diff)
selftests/bpf: Exercise negative optlen in cgroup getsockopt hook
Add a cgroup getsockopt selftest that sets ctx->optlen to -1. Use TCP_ZEROCOPY_RECEIVE to exercise the kernel-buffer getsockopt hook. The userspace-visible result is -EFAULT on both patched and unpatched kernels, so the return value alone cannot distinguish the bug. The test still exercises the kernel-buffer getsockopt path with a negative ctx->optlen, which reproduces the hardened usercopy warning on unpatched kernels. Signed-off-by: Junseo Lim <zirajs7@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/4dbdcda23b2f2be06c5659f8102cd6bd036825b3.1786448307.git.zirajs7@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions