diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-05-05 00:04:49 +0300 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2026-05-08 21:38:08 +0300 |
| commit | d73549b8bb7fa6147666c579d66f72bf076f719f (patch) | |
| tree | 671d11ee83bc7c94d524e581e0fd14b5c48af5e0 /include | |
| parent | 481c2265286ef302327c93403a8cf7b3fe4506d0 (diff) | |
| download | linux-d73549b8bb7fa6147666c579d66f72bf076f719f.tar.xz | |
selftest: bpf: Add test for bpf_tcp_sock() and RAW socket.
Let's extend sockopt_sk.c to cover bpf_tcp_sock() for the
wrong socket type.
Before:
# ./test_progs -t sockopt_sk
[ 151.948613] ==================================================================
[ 151.951376] BUG: KASAN: slab-out-of-bounds in sol_tcp_sockopt+0xc7/0x8e0
[ 151.954159] Read of size 8 at addr ffff88801083d760 by task test_progs/1259
...
run_test:FAIL:getsetsockopt unexpected error: -1 (errno 0)
#427 sockopt_sk:FAIL
After:
#427 sockopt_sk:OK
While at it, missing free() is fixed up.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260504210610.180150-3-kuniyu@google.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
