Commit a20eac0
selftests/bpf: Fix also no-alu32 strobemeta selftest
Previous fix aded bpf_clamp_umax() helper use to re-validate boundaries.
While that works correctly, it introduces more branches, which blows up
past 1 million instructions in no-alu32 variant of strobemeta selftests.
Switching len variable from u32 to u64 also fixes the issue and reduces
the number of validated instructions, so use that instead. Fix this
patch and bpf_clamp_umax() removed, both alu32 and no-alu32 selftests
pass.
Fixes: 0133c20 ("selftests/bpf: Fix strobemeta selftest regression")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211101230118.1273019-1-andrii@kernel.org1 parent ad10c38 commit a20eac0
1 file changed
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
| |||
366 | 358 | | |
367 | 359 | | |
368 | 360 | | |
369 | | - | |
| 361 | + | |
370 | 362 | | |
371 | 363 | | |
372 | 364 | | |
| |||
398 | 390 | | |
399 | 391 | | |
400 | 392 | | |
401 | | - | |
| 393 | + | |
402 | 394 | | |
403 | 395 | | |
404 | 396 | | |
| |||
421 | 413 | | |
422 | 414 | | |
423 | 415 | | |
424 | | - | |
425 | 416 | | |
426 | 417 | | |
427 | 418 | | |
| |||
439 | 430 | | |
440 | 431 | | |
441 | 432 | | |
442 | | - | |
443 | 433 | | |
444 | 434 | | |
445 | 435 | | |
446 | 436 | | |
447 | 437 | | |
448 | 438 | | |
449 | 439 | | |
450 | | - | |
451 | 440 | | |
452 | 441 | | |
453 | 442 | | |
| |||
0 commit comments