Commit 4f02588
selftests/bpf: Fix SPEC_V1/V4 for other archs
Currently, SPEC_V1/V4 is not defined for architectures except x86/arm64
even though bpf_jit_bypass_spec_v1/v4 is usually false (the default)
there.
To avoid triggering tests failures on these other archs when adding the
missing SPEC_V1-ifdefs, set it there (and on all other archs) to put it
in sync with bpf_jit_bypass_spec_v1/v4.
For PowerPC, setting the value correctly is complicated because it
depends on the exact CPU and security config. Instead, skip unpriv tests
there.
Signed-off-by: Luis Gerhorst <[email protected]>1 parent caedc19 commit 4f02588
File tree
2 files changed
+13
-2
lines changed- tools/testing/selftests/bpf
- progs
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
262 | 266 | | |
263 | 267 | | |
264 | 268 | | |
265 | | - | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
| |||
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| 117 | + | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| |||
0 commit comments