]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bpf, selftests: Adjust few selftest result_unpriv outcomes
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 4 May 2021 08:58:25 +0000 (08:58 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 20 Sep 2021 16:50:12 +0000 (18:50 +0200)
commit3b463947e621558218f814ec5d15299cbcda2e83
treee5d43639f7c2b99fb77856c5a14d8d1af4207f42
parent4e780374f124f7cad7426be9265a0502d92d1115
bpf, selftests: Adjust few selftest result_unpriv outcomes

BugLink: https://bugs.launchpad.net/bugs/1941798
commit 1bad6fd52be4ce12d207e2820ceb0f29ab31fc53 upstream.

Given we don't need to simulate the speculative domain for registers with
immediates anymore since the verifier uses direct imm-based rewrites instead
of having to mask, we can also lift a few cases that were previously rejected.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
[OP: backport to 5.4, small context adjustment in stack_ptr.c]
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: Kelsey Skunberg <kelsey.skunberg@canonical.com>
tools/testing/selftests/bpf/verifier/stack_ptr.c
tools/testing/selftests/bpf/verifier/value_ptr_arith.c