diff options
| author | Alexei Starovoitov <[email protected]> | 2023-04-03 21:50:25 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-04-04 16:57:16 -0700 |
| commit | 91571a515d1bcdc280bb46423bb697ea7eb42ff3 (patch) | |
| tree | 636320a1ffcdd78b5091e70cca1f5f1353472aef /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 63260df1396578226ac3134cf7f764690002e70e (diff) | |
bpf: Teach verifier that certain helpers accept NULL pointer.
bpf_[sk|inode|task|cgrp]_storage_[get|delete]() and bpf_get_socket_cookie() helpers
perform run-time check that sk|inode|task|cgrp pointer != NULL.
Teach verifier about this fact and allow bpf programs to pass
PTR_TO_BTF_ID | PTR_MAYBE_NULL into such helpers.
It will be used in the subsequent patch that will do
bpf_sk_storage_get(.., skb->sk, ...);
Even when 'skb' pointer is trusted the 'sk' pointer may be NULL.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: David Vernet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions