]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: test rejection of a packet-modifying SK_SKB stream parser
authorSechang Lim <rhkrqnwk98@gmail.com>
Sat, 20 Jun 2026 02:44:18 +0000 (02:44 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Jun 2026 00:42:02 +0000 (17:42 -0700)
commit05fb34384d20c49d596de34a47429e73ffb14959
treeba2f2c047ada3b47ce56f1cdb8af30c6523113c2
parent31e2f36d3821811c03bddf5fd99ed8fc884fd222
selftests/bpf: test rejection of a packet-modifying SK_SKB stream parser

Verify that attaching an SK_SKB stream parser that can modify the packet
is rejected, while a read-only parser still attaches.

Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Signed-off-by: Sechang Lim <rhkrqnwk98@gmail.com>
Link: https://lore.kernel.org/r/20260620024423.4141004-4-rhkrqnwk98@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_strp.c
tools/testing/selftests/bpf/progs/test_sockmap_strp.c