Commit be6ba7d
bpf: correct stack liveness for tail calls
This updates bpf_insn_successors() reflecting that control flow might
jump over the instructions between tail call and function exit, verifier
might assume that some writes to parent stack always happen, which is
not the case.
Signed-off-by: Eduard Zingerman <[email protected]>
Signed-off-by: Martin Teichmann <[email protected]>1 parent 61654df commit be6ba7d
3 files changed
+34
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
| |||
550 | 549 | | |
551 | 550 | | |
552 | 551 | | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
| |||
669 | 670 | | |
670 | 671 | | |
671 | 672 | | |
| 673 | + | |
672 | 674 | | |
673 | 675 | | |
674 | | - | |
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
489 | | - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
490 | 491 | | |
491 | 492 | | |
492 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3555 | 3555 | | |
3556 | 3556 | | |
3557 | 3557 | | |
3558 | | - | |
| 3558 | + | |
3559 | 3559 | | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
3560 | 3564 | | |
3561 | 3565 | | |
3562 | 3566 | | |
| |||
18150 | 18154 | | |
18151 | 18155 | | |
18152 | 18156 | | |
| 18157 | + | |
| 18158 | + | |
| 18159 | + | |
| 18160 | + | |
| 18161 | + | |
| 18162 | + | |
| 18163 | + | |
| 18164 | + | |
| 18165 | + | |
| 18166 | + | |
| 18167 | + | |
| 18168 | + | |
| 18169 | + | |
| 18170 | + | |
| 18171 | + | |
| 18172 | + | |
| 18173 | + | |
| 18174 | + | |
| 18175 | + | |
18153 | 18176 | | |
18154 | 18177 | | |
18155 | 18178 | | |
| |||
18210 | 18233 | | |
18211 | 18234 | | |
18212 | 18235 | | |
| 18236 | + | |
| 18237 | + | |
18213 | 18238 | | |
18214 | 18239 | | |
18215 | 18240 | | |
| |||
21471 | 21496 | | |
21472 | 21497 | | |
21473 | 21498 | | |
21474 | | - | |
| 21499 | + | |
21475 | 21500 | | |
21476 | 21501 | | |
21477 | 21502 | | |
| |||
0 commit comments