aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2017-05-10 18:38:07 +0000
committerDavid S. Miller <[email protected]>2017-05-11 18:19:00 +0000
commite07b98d9bffe410019dfcf62c3428d4a96c56a2c (patch)
tree52a3aede39b1bac6a409586bcdd272d9aa958868 /tools/lib/bpf/bpf.c
parentbpf: Do per-instruction state dumping in verifier when log_level > 1. (diff)
downloadkernel-e07b98d9bffe410019dfcf62c3428d4a96c56a2c.tar.gz
kernel-e07b98d9bffe410019dfcf62c3428d4a96c56a2c.zip
bpf: Add strict alignment flag for BPF_PROG_LOAD.
Add a new field, "prog_flags", and an initial flag value BPF_F_STRICT_ALIGNMENT. When set, the verifier will enforce strict pointer alignment regardless of the setting of CONFIG_EFFICIENT_UNALIGNED_ACCESS. The verifier, in this mode, will also use a fixed value of "2" in place of NET_IP_ALIGN. This facilitates test cases that will exercise and validate this part of the verifier even when run on architectures where alignment doesn't matter. Signed-off-by: David S. Miller <[email protected]> Acked-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions