diff options
| author | 2026-06-15 10:19:59 +0800 | |
|---|---|---|
| committer | 2026-06-14 21:30:21 -0700 | |
| commit | 70b139d0483cd42808326c36c4b63d5be4a3cccb (patch) | |
| tree | b0c88d547739abbb2cbc792edb146bd05712ff36 /tools/lib/python/kdoc/python_version.py | |
| parent | bpf, sockmap: fix integer overflow in bpf_msg_pop_data() bounds check (diff) | |
selftests/bpf: add test for bpf_msg_pop_data() overflow
Add a test in sockmap_basic.c that calls bpf_msg_pop_data() with a length
close to U32_MAX, which overflows the start + len bounds check. The sk_msg
program records the return value over a sendmsg and the test checks that
the call is rejected with -EINVAL.
Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Cc: Jiayuan Chen <jiayuan.chen@linux.dev>
Signed-off-by: Sechang Lim <rhkrqnwk98@gmail.com>
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Link: https://lore.kernel.org/r/20260615021959.140010-7-jiayuan.chen@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
