Thread (1 message) 1 message, 1 author, 2025-03-15

Re: [PATCH bpf-next 00/11] bpf: Mitigate Spectre v1 using barriers

From: Luis Gerhorst <hidden>
Date: 2025-03-15 15:20:51
Also in: bpf, linux-arm-kernel, linux-kselftest, lkml

Eduard Zingerman [off-list ref] writes:
I think it would be good to have some tests checking that nospec
instructions are inserted in expected locations.
Could you please take look at use of __xlated tag in e.g.
tools/testing/selftests/bpf/progs/verifier_sdiv.c ?
That looks very promising, I will look into it for v2. Thanks for the
pointer.

I guess it might be worth it to add __xlated to at least on test per
nospec-related code path. If there are other rewrites at play that will
make it harder to adapt the tests when the other rewrite is ever
changed, but it might also help in catching interactions between the
other rewrites and the nospec.

Also, thanks for the review of patches 2 and 3.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help