aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorPaul Chaignon <[email protected]>2025-07-22 14:33:37 +0000
committerMartin KaFai Lau <[email protected]>2025-07-24 02:35:56 +0000
commitba578b87fe2beef95b37264f8a98c0b505b93de9 (patch)
tree712d3d17bf1d7b9fe8afd37d8a0eff096d017ed2 /net/core/dev.c
parentbpf: Reject narrower access to pointer ctx fields (diff)
downloadkernel-ba578b87fe2beef95b37264f8a98c0b505b93de9.tar.gz
kernel-ba578b87fe2beef95b37264f8a98c0b505b93de9.zip
selftests/bpf: Test invalid narrower ctx load
This patch adds selftests to cover invalid narrower loads on the context. These used to cause kernel warnings before the previous patch. To trigger the warning, the load had to be aligned, to read an affected context field (ex., skb->sk), and not starting at the beginning of the field. The nine new cases all fail without the previous patch. Suggested-by: Eduard Zingerman <[email protected]> Signed-off-by: Paul Chaignon <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Acked-by: Eduard Zingerman <[email protected]> Link: https://patch.msgid.link/44cd83ea9c6868079943f0a436c6efa850528cc1.1753194596.git.paul.chaignon@gmail.com
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions