diff options
| author | Paul Chaignon <[email protected]> | 2025-08-01 09:48:15 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-08-01 16:22:44 +0000 |
| commit | 9e6448f7b1efb27f8d508b067ecd33ed664a4246 (patch) | |
| tree | a18226d02e40d0e1ccd0c10282e2f694844cdf3a /tools/lib/bpf/libbpf.c | |
| parent | bpf: Check flow_dissector ctx accesses are aligned (diff) | |
| download | kernel-9e6448f7b1efb27f8d508b067ecd33ed664a4246.tar.gz kernel-9e6448f7b1efb27f8d508b067ecd33ed664a4246.zip | |
bpf: Check netfilter ctx accesses are aligned
Similarly to the previous patch fixing the flow_dissector ctx accesses,
nf_is_valid_access also doesn't check that ctx accesses are aligned.
Contrary to flow_dissector programs, netfilter programs don't have
context conversion. The unaligned ctx accesses are therefore allowed by
the verifier.
Fixes: fd9c663b9ad6 ("bpf: minimal support for programs hooked into netfilter framework")
Signed-off-by: Paul Chaignon <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/853ae9ed5edaa5196e8472ff0f1bb1cc24059214.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
