]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftest/bpf: Verifier tests for var-off access
authorAndrei Matei <andreimatei1@gmail.com>
Wed, 4 Aug 2021 17:09:17 +0000 (20:09 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 20 Sep 2021 13:42:40 +0000 (15:42 +0200)
commitd2c660be68c1fb2bdaf01c57e09866d898c7cd87
treea038a239982884a7edb207c7ff9be5813dbd558b
parenta3e7496201e09bd852eb127cba64f68a898c6c83
selftest/bpf: Verifier tests for var-off access

BugLink: https://bugs.launchpad.net/bugs/1942123
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/testing/selftests/bpf/verifier/var_off.c