selftest/bpf: Verifier tests for var-off access
authorAndrei Matei <andreimatei1@gmail.com>
Wed, 4 Aug 2021 17:09:17 +0000 (20:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Aug 2021 07:05:24 +0000 (09:05 +0200)
commit7254e2d9eb416fdfd57473c7e1d6393cdb1321a1
tree308ceca1a2bcee7740cc9c86661b646e0e15f2d0
parent30ea1c535291e88e41413464277fcf98a95cf8c6
selftest/bpf: Verifier tests for var-off access

commit 7a22930c4179b51352f2ec9feb35167cbe79afd9 upstream

Add tests for the new functionality - reading and writing to the stack
through a variable-offset pointer.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210207011027.676572-4-andreimatei1@gmail.com
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/verifier/var_off.c