selftests/bpf: Add test for Spectre v1 mitigation
authorLuis Gerhorst <luis.gerhorst@fau.de>
Tue, 3 Jun 2025 21:28:14 +0000 (23:28 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 10 Jun 2025 03:11:10 +0000 (20:11 -0700)
commit4a8765d9a5278a9ff9341678ae60eb4f8d0f5d8c
tree0c6a53af50759602c897860dc8a6fa992d317264
parentd6f1c85f22534d2d9fea9b32645da19c91ebe7d2
selftests/bpf: Add test for Spectre v1 mitigation

This is based on the gadget from the description of commit 9183671af6db
("bpf: Fix leakage under speculation on mispredicted branches").

Signed-off-by: Luis Gerhorst <luis.gerhorst@fau.de>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250603212814.338867-1-luis.gerhorst@fau.de
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_unpriv.c