selftests/bpf: Test rejection of pkt args to mutating subprogs

Add a selftests that ensures that PTR_TO_PACKET arguments can
only be passed to subprogs that will never adjust the underlying
packet memory, and are rejected otherwise.

Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20260922172028.6269-7-emil@etsalapatis.com
This commit is contained in:
Emil Tsalapatis 2026-09-22 17:20:23 +00:00 • committed by Alexei Starovoitov
commit 1ed69a54d3
No known key found for this signature in database