Commit 182f7df
bpf: attribute __arg_untrusted for global function parameters
Add support for PTR_TO_BTF_ID | PTR_UNTRUSTED global function
parameters. Anything is allowed to pass to such parameters, as these
are read-only and probe read instructions would protect against
invalid memory access.
Suggested-by: Alexei Starovoitov <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent f1f5d6f commit 182f7df
2 files changed
+39
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7646 | 7646 | | |
7647 | 7647 | | |
7648 | 7648 | | |
7649 | | - | |
7650 | | - | |
7651 | | - | |
7652 | | - | |
7653 | | - | |
| 7649 | + | |
| 7650 | + | |
| 7651 | + | |
| 7652 | + | |
| 7653 | + | |
| 7654 | + | |
7654 | 7655 | | |
7655 | 7656 | | |
7656 | 7657 | | |
| |||
7758 | 7759 | | |
7759 | 7760 | | |
7760 | 7761 | | |
| 7762 | + | |
| 7763 | + | |
7761 | 7764 | | |
7762 | 7765 | | |
7763 | 7766 | | |
| |||
7818 | 7821 | | |
7819 | 7822 | | |
7820 | 7823 | | |
| 7824 | + | |
| 7825 | + | |
| 7826 | + | |
| 7827 | + | |
| 7828 | + | |
| 7829 | + | |
| 7830 | + | |
| 7831 | + | |
| 7832 | + | |
| 7833 | + | |
| 7834 | + | |
| 7835 | + | |
| 7836 | + | |
| 7837 | + | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
| 7841 | + | |
| 7842 | + | |
| 7843 | + | |
| 7844 | + | |
| 7845 | + | |
| 7846 | + | |
| 7847 | + | |
| 7848 | + | |
7821 | 7849 | | |
7822 | 7850 | | |
7823 | 7851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10437 | 10437 | | |
10438 | 10438 | | |
10439 | 10439 | | |
| 10440 | + | |
| 10441 | + | |
| 10442 | + | |
| 10443 | + | |
| 10444 | + | |
| 10445 | + | |
10440 | 10446 | | |
10441 | 10447 | | |
10442 | 10448 | | |
| |||
0 commit comments