Commit 5ca3ac4
bpf: Add bpf_has_frame_pointer()
Introduce a bpf_has_frame_pointer() helper that uwninders can call to
determine whether a given instruction pointer is within the valid frame
pointer region of a BPF JIT program or trampoline (i.e., after the
prologue, before the epilogue).
This will enable livepatch (with the ORC unwinder) to reliably unwind
through BPF JIT frames.
Signed-off-by: Josh Poimboeuf <[email protected]>
Acked-by: Song Liu <[email protected]>1 parent 52f5a27 commit 5ca3ac4
File tree
3 files changed
+29
-0
lines changed- arch/x86/net
- include/linux
- kernel/bpf
3 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1681 | 1684 | | |
1682 | 1685 | | |
1683 | 1686 | | |
| |||
2736 | 2739 | | |
2737 | 2740 | | |
2738 | 2741 | | |
| 2742 | + | |
| 2743 | + | |
2739 | 2744 | | |
2740 | 2745 | | |
2741 | 2746 | | |
| |||
3325 | 3330 | | |
3326 | 3331 | | |
3327 | 3332 | | |
| 3333 | + | |
| 3334 | + | |
3328 | 3335 | | |
3329 | 3336 | | |
3330 | 3337 | | |
| |||
3462 | 3469 | | |
3463 | 3470 | | |
3464 | 3471 | | |
| 3472 | + | |
3465 | 3473 | | |
| 3474 | + | |
| 3475 | + | |
3466 | 3476 | | |
3467 | 3477 | | |
3468 | 3478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
1286 | 1288 | | |
1287 | 1289 | | |
1288 | 1290 | | |
| |||
1511 | 1513 | | |
1512 | 1514 | | |
1513 | 1515 | | |
| 1516 | + | |
1514 | 1517 | | |
1515 | 1518 | | |
1516 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
763 | 779 | | |
764 | 780 | | |
765 | 781 | | |
| |||
0 commit comments