Commit 275a82e
bpf: clean-up bounds checking in __bpf_get_stack
Clean-up bounds checking for trace->nr in
__bpf_get_stack by limiting it only to
max_depth.
Signed-off-by: Arnaud Lecomte <[email protected]>
Cc: Song Lui <[email protected]>
Acked-by: Song Liu <[email protected]>1 parent 845d3cb commit 275a82e
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
| 468 | + | |
468 | 469 | | |
469 | | - | |
| 470 | + | |
470 | 471 | | |
471 | 472 | | |
| 473 | + | |
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
| |||
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
480 | | - | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
| |||
0 commit comments