linux/tools/include
David S. Miller e07b98d9bf 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 <davem@davemloft.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
2017-05-11 14:19:00 -04:00
..
asm tools: Provide a definition of WARN_ON 2017-01-27 21:29:39 -05:00
asm-generic tools include: Provide gcc based cmpxchg fallback for !x86 2017-03-03 19:07:14 -03:00
linux tools include: Include missing headers for fls() and types in linux/log2.h 2017-04-19 13:01:49 -03:00
tools tools: add more endian.h macros 2014-09-26 11:03:01 +02:00
uapi bpf: Add strict alignment flag for BPF_PROG_LOAD. 2017-05-11 14:19:00 -04:00