diff options
| author | Paul Chaignon <[email protected]> | 2025-08-01 09:49:44 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-08-01 21:47:39 +0000 |
| commit | d8d2d9d12f141302aaec3ff9a3a8cbed4ac0546c (patch) | |
| tree | 34f31c251bb0a900926a740a3ec5f811a207f1b6 /tools/lib/bpf/libbpf.c | |
| parent | bpf: Improve ctx access verifier error message (diff) | |
| download | kernel-d8d2d9d12f141302aaec3ff9a3a8cbed4ac0546c.tar.gz kernel-d8d2d9d12f141302aaec3ff9a3a8cbed4ac0546c.zip | |
selftests/bpf: Test for unaligned flow_dissector ctx access
This patch adds tests for two context fields where unaligned accesses
were not properly rejected.
Note the new macro is similar to the existing narrow_load macro, but we
need a different description and access offset. Combining the two
macros into one is probably doable but I don't think it would help
readability.
vmlinux.h is included in place of bpf.h so we have the definition of
struct bpf_nf_ctx.
Signed-off-by: Paul Chaignon <[email protected]>
Tested-by: Eduard Zingerman <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/bf014046ddcf41677fb8b98d150c14027e9fddba.1754039605.git.paul.chaignon@gmail.com
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
