OrangePi_CM5/tools/include/uapi/linux
Jakub Sitnicki 042fb1c281 selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads
commit 8f50f16ff39dd4e2d43d1548ca66925652f8aff7 upstream.

Add coverage to the verifier tests and tests for reading bpf_sock fields to
ensure that 32-bit, 16-bit, and 8-bit loads from dst_port field are allowed
only at intended offsets and produce expected values.

While 16-bit and 8-bit access to dst_port field is straight-forward, 32-bit
wide loads need be allowed and produce a zero-padded 16-bit value for
backward compatibility.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/r/20220130115518.213259-3-jakub@cloudflare.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
[OP: backport to 5.10: adjusted context in sock_fields.c]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-11 13:06:44 +02:00
..
tc_act
…
bpf.h selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads 2022-08-11 13:06:44 +02:00
bpf_common.h
…
bpf_perf_event.h
…
btf.h
…
const.h tools headers UAPI: Sync linux/const.h with the kernel headers 2021-01-06 14:56:51 +01:00
erspan.h
…
ethtool.h
…
fadvise.h
…
fcntl.h
…
filter.h
…
fs.h
…
fscrypt.h tools headers UAPI: Sync linux/fscrypt.h with the kernel sources 2021-01-17 14:17:06 +01:00
hw_breakpoint.h
…
if_link.h
…
if_tun.h
…
if_xdp.h
…
in.h tools headers UAPI: Sync linux/in.h copy with the kernel sources 2021-06-23 14:42:54 +02:00
kcmp.h
…
kvm.h tools kvm headers: Update KVM headers from the kernel sources 2020-11-03 08:46:30 -03:00
lirc.h
…
mman.h tools UAPI: Update copy of linux/mman.h from the kernel sources 2020-11-03 08:36:51 -03:00
mount.h tools include UAPI: Update linux/mount.h copy 2020-11-03 08:52:11 -03:00
netlink.h
…
openat2.h
…
perf_event.h tools headers UAPI: Update tools's copy of linux/perf_event.h 2020-11-03 08:49:59 -03:00
pkt_cls.h
…
pkt_sched.h
…
prctl.h tools headers UAPI: Sync prctl.h with the kernel sources 2020-11-03 08:34:58 -03:00
sched.h
…
seg6.h
…
seg6_local.h
…
stat.h
…
tls.h
…
types.h
…
usbdevice_fs.h
…
vhost.h tools kvm headers: Update KVM headers from the kernel sources 2020-11-03 08:46:30 -03:00