]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Remove invariant violation flags
authorPaul Chaignon <paul.chaignon@gmail.com>
Thu, 2 Apr 2026 15:12:48 +0000 (17:12 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 3 Apr 2026 01:23:25 +0000 (18:23 -0700)
commit7cbded6ed98f363cc7fa84304da1f03eefa03f67
treec3d3a2e0538b64a9ea27fcc87caac932aee713a7
parent2ba199067b89edcf4dcc760941b26753494eb668
selftests/bpf: Remove invariant violation flags

With the changes to the verifier in previous commits, we're not
expecting any invariant violations anymore. We should therefore always
enable BPF_F_TEST_REG_INVARIANTS to fail on invariant violations. Turns
out that's already the case and we've been explicitly setting this flag
in selftests when it wasn't necessary. This commit removes those flags
from selftests, which should hopefully make clearer that it's always
enabled.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Acked-by: Mykyta Yatsenko <yatsenko@meta.com>
Link: https://lore.kernel.org/r/9afce92510a7d44569dc3af63c9b8c608e69298a.1775142354.git.paul.chaignon@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_bounds.c