linux/tools/testing
Kuniyuki Iwashima d73549b8bb 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
2026-05-08 11:38:08 -07:00
..
crypto/chacha20-s390
cxl Merge branch 'for-7.1/cxl-region-refactor' into cxl-for-next 2026-04-03 12:30:57 -07:00
fault-injection
ktest ktest: Store failure logs also in fatal paths 2026-03-18 16:00:54 -04:00
kunit linux_kselftest-kunit-7.1-rc1 2026-04-14 17:39:42 -07:00
memblock mm: move free_reserved_area() to mm/memblock.c 2026-04-01 11:19:46 +03:00
nvdimm
radix-tree maple_tree: use maple copy node for mas_wr_split() 2026-04-05 13:52:56 -07:00
rbtree
scatterlist
selftests selftest: bpf: Add test for bpf_tcp_sock() and RAW socket. 2026-05-08 11:38:08 -07:00
shared tools: Update context analysis macros in compiler_types.h 2026-01-28 09:25:45 +01:00
vma mm: add mmap_action_map_kernel_pages[_full]() 2026-04-05 13:53:45 -07:00
vsock vsock/test: fix send_buf()/recv_buf() EINTR handling 2026-04-06 18:46:03 -07:00