]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftest/bpf: Add test for var-offset stack access
authorAndrei Matei <andreimatei1@gmail.com>
Sun, 7 Feb 2021 01:10:27 +0000 (20:10 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Feb 2021 19:05:34 +0000 (11:05 -0800)
commit0fd7562af1cd21fce4c1011825e18de1cfa97baa
tree93a8834f71d6cab87fdaabd0eace79d096388f6a
parent7a22930c4179b51352f2ec9feb35167cbe79afd9
selftest/bpf: Add test for var-offset stack access

Add a higher-level test (C BPF program) for the new functionality -
variable access stack reads and writes.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210207011027.676572-5-andreimatei1@gmail.com
tools/testing/selftests/bpf/prog_tests/stack_var_off.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_stack_var_off.c [new file with mode: 0644]