]> Gentwo Git Trees - linux/.git/commit
bpf: Add selftest to check the verifier's abstract multiplication
authorNandakumar Edamana <nandakumar@nandakumar.co.in>
Tue, 26 Aug 2025 03:45:24 +0000 (09:15 +0530)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 27 Aug 2025 22:00:31 +0000 (15:00 -0700)
commit2660b9d477501c3dbb09705640b70d0a80072f0c
treeea09ad0d76a3193e9add86a6841039005dbb041c
parent1df7dad4d5c49335b72e26d833def960b2de76e3
bpf: Add selftest to check the verifier's abstract multiplication

Add new selftest to test the abstract multiplication technique(s) used
by the verifier, following the recent improvement in tnum
multiplication (tnum_mul). One of the newly added programs,
verifier_mul/mul_precise, results in a false positive with the old
tnum_mul, while the program passes with the latest one.

Signed-off-by: Nandakumar Edamana <nandakumar@nandakumar.co.in>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20250826034524.2159515-2-nandakumar@nandakumar.co.in
tools/testing/selftests/bpf/prog_tests/verifier.c
tools/testing/selftests/bpf/progs/verifier_mul.c [new file with mode: 0644]