Commit d65f376
bpf: Fix tailcall cases in test_bpf
Since f663a03 ("bpf, x64: Remove tail call detection"),
tail_call_reachable won't be detected in x86 JIT. And, tail_call_reachable
is provided by verifier.
Therefore, in test_bpf, the tail_call_reachable must be provided in test
cases before running.
Fix and test:
[ 174.828662] test_bpf: #0 Tail call leaf jited:1 170 PASS
[ 174.829574] test_bpf: #1 Tail call 2 jited:1 244 PASS
[ 174.830363] test_bpf: #2 Tail call 3 jited:1 296 PASS
[ 174.830924] test_bpf: #3 Tail call 4 jited:1 719 PASS
[ 174.831863] test_bpf: #4 Tail call load/store leaf jited:1 197 PASS
[ 174.832240] test_bpf: #5 Tail call load/store jited:1 326 PASS
[ 174.832240] test_bpf: #6 Tail call error path, max count reached jited:1 2214 PASS
[ 174.835713] test_bpf: #7 Tail call count preserved across function calls jited:1 609751 PASS
[ 175.446098] test_bpf: #8 Tail call error path, NULL target jited:1 472 PASS
[ 175.447597] test_bpf: #9 Tail call error path, index out of range jited:1 206 PASS
[ 175.448833] test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202406251415.c51865bc-oliver.sang@intel.com
Fixes: f663a03 ("bpf, x64: Remove tail call detection")
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Link: https://lore.kernel.org/r/20240625145351.40072-1-hffilwlqm@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent c73a968 commit d65f376
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15198 | 15198 | | |
15199 | 15199 | | |
15200 | 15200 | | |
| 15201 | + | |
15201 | 15202 | | |
15202 | 15203 | | |
15203 | 15204 | | |
| |||
15273 | 15274 | | |
15274 | 15275 | | |
15275 | 15276 | | |
| 15277 | + | |
15276 | 15278 | | |
15277 | 15279 | | |
15278 | 15280 | | |
| |||
15283 | 15285 | | |
15284 | 15286 | | |
15285 | 15287 | | |
| 15288 | + | |
15286 | 15289 | | |
15287 | 15290 | | |
15288 | 15291 | | |
| |||
15293 | 15296 | | |
15294 | 15297 | | |
15295 | 15298 | | |
| 15299 | + | |
15296 | 15300 | | |
15297 | 15301 | | |
15298 | 15302 | | |
| |||
15323 | 15327 | | |
15324 | 15328 | | |
15325 | 15329 | | |
| 15330 | + | |
15326 | 15331 | | |
15327 | 15332 | | |
15328 | 15333 | | |
| |||
15335 | 15340 | | |
15336 | 15341 | | |
15337 | 15342 | | |
| 15343 | + | |
15338 | 15344 | | |
15339 | 15345 | | |
15340 | 15346 | | |
| |||
15357 | 15363 | | |
15358 | 15364 | | |
15359 | 15365 | | |
| 15366 | + | |
15360 | 15367 | | |
15361 | 15368 | | |
15362 | 15369 | | |
| |||
15369 | 15376 | | |
15370 | 15377 | | |
15371 | 15378 | | |
| 15379 | + | |
15372 | 15380 | | |
15373 | 15381 | | |
15374 | 15382 | | |
| |||
15381 | 15389 | | |
15382 | 15390 | | |
15383 | 15391 | | |
| 15392 | + | |
15384 | 15393 | | |
15385 | 15394 | | |
15386 | 15395 | | |
| |||
15430 | 15439 | | |
15431 | 15440 | | |
15432 | 15441 | | |
| 15442 | + | |
15433 | 15443 | | |
15434 | 15444 | | |
15435 | 15445 | | |
| |||
0 commit comments