Ubuntu-focal-kernel/tools/testing/selftests/bpf
Lorenz Bauer ad1b4339da selftests/bpf: check that modifier resolves after pointer
BugLink: https://bugs.launchpad.net/bugs/2023601

[ Upstream commit dfdd608c3b365f0fd49d7e13911ebcde06b9865b ]

Add a regression test that ensures that a VAR pointing at a
modifier which follows a PTR (or STRUCT or ARRAY) is resolved
correctly by the datasec validator.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/r/20230306112138.155352-3-lmb@isovalent.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-07-10 17:22:03 +02:00
..
gnu
include/uapi/linux
map_tests
prog_tests selftests/bpf: Fix error return code in run_getsockopt_test() 2021-01-20 14:24:19 +01:00
progs selftests/bpf: fix btf_dump/btf_dump due to recent clang change 2022-08-26 11:07:28 +02:00
verifier selftests/bpf: Verify copy_register_state() preserves parent/live fields 2023-04-18 17:21:02 +02:00
.gitignore
Makefile selftests/bpf: Fix broken riscv build 2021-01-20 14:25:44 +01:00
bpf_endian.h
bpf_helpers.h libbpf: Fix BTF-defined map's __type macro handling of arrays 2020-02-04 09:18:40 +00:00
bpf_rand.h
bpf_rlimit.h
bpf_util.h
cgroup_helpers.c selftests/bpf: Correct path to include msg + path 2020-01-06 08:14:59 -06:00
cgroup_helpers.h
config selftests/bpf: CONFIG_IPV6_SEG6_BPF required for test_seg6_loop.o 2020-08-08 01:53:12 -04:00
flow_dissector_load.c
flow_dissector_load.h
get_cgroup_id_user.c
netcnt_common.h
tcp_client.py
tcp_server.py
test_align.c
test_bpftool_build.sh
test_btf.c selftests/bpf: check that modifier resolves after pointer 2023-07-10 17:22:03 +02:00
test_btf.h
test_btf_dump.c
test_cgroup_attach.c
test_cgroup_storage.c
test_dev_cgroup.c
test_flow_dissector.c
test_flow_dissector.sh selftests/bpf: Set rp_filter in test_flow_dissector 2019-10-08 23:59:22 +02:00
test_hashmap.c
test_iptunnel_common.h
test_kmod.sh
test_libbpf.sh
test_libbpf_open.c
test_lirc_mode2.sh selftests/bpf/test_lirc_mode2.sh: Exit with proper code 2022-05-20 15:19:05 +02:00
test_lirc_mode2_user.c
test_lpm_map.c
test_lru_map.c
test_lwt_ip_encap.sh selftests/bpf: Make test_lwt_ip_encap more stable and faster 2022-05-20 15:19:02 +02:00
test_lwt_seg6local.sh
test_maps.c selftests/bpf: Enlarge select() timeout for test_maps 2021-10-12 16:31:37 -06:00
test_maps.h
test_netcnt.c
test_offload.py tweewide: Fix most Shebang lines 2021-06-18 15:02:27 +02:00
test_progs.c selftests/bpf: Fix fclose/pclose mismatch in test_progs 2022-01-13 18:42:28 +01:00
test_progs.h
test_queue_stack_map.h
test_section_names.c
test_select_reuseport.c UBUNTU: SAUCE: selftests: fix undefined macro RET_IF() build error 2020-02-25 14:49:43 +01:00
test_select_reuseport_common.h
test_skb_cgroup_id.sh
test_skb_cgroup_id_user.c
test_sock.c
test_sock_addr.c
test_sock_addr.sh
test_sock_fields.c
test_socket_cookie.c
test_sockmap.c selftests: bpf: Use a temporary file in test_sockmap 2020-02-17 10:57:54 +01:00
test_sockmap_kern.h
test_stub.c
test_sysctl.c bpf: Allow narrow loads of bpf_sysctl fields with offset > 0 2019-10-30 12:49:13 -07:00
test_tag.c
test_tc_edt.sh selftests/bpf: More compatible nc options in test_tc_edt 2019-10-18 22:33:57 +02:00
test_tc_tunnel.sh selftests, bpf: Fix test_tc_tunnel hanging 2020-01-06 08:16:46 -06:00
test_tcp_check_syncookie.sh
test_tcp_check_syncookie_user.c
test_tcpbpf.h selftests/bpf: De-flake test_tcpbpf 2020-11-09 14:47:25 +01:00
test_tcpbpf_user.c selftests/bpf: De-flake test_tcpbpf 2020-11-09 14:47:25 +01:00
test_tcpnotify.h
test_tcpnotify_user.c
test_tunnel.sh selftest/bpf: Add missed ip6ip6 test back 2021-01-20 14:25:40 +01:00
test_verifier.c bpf, selftests: Adjust few selftest outcomes wrt unreachable code 2021-09-20 18:49:57 +02:00
test_verifier_log.c
test_xdp_meta.sh
test_xdp_redirect.sh
test_xdp_veth.sh selftests/bpf: Fix xdp_tx.c prog section name 2021-10-12 16:31:34 -06:00
test_xdp_vlan.sh
test_xdp_vlan_mode_generic.sh
test_xdp_vlan_mode_native.sh
test_xdping.sh
trace_helpers.c
trace_helpers.h
urandom_read.c
with_addr.sh
with_tunnels.sh
xdping.c selftests: bpf: correct perror strings 2019-12-05 16:30:14 -06:00
xdping.h