bpf: Enforce NULL check on new _OR_NULL return types
Status from this message: This series was applied to bpf/bpf.git (refs/heads/master):
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: Enforce id generation for all may-be-null register typekernel/ | +5 | 1 reply | Applied |
| 2/3 | bpf: selftest: Ensure the return value of bpf_skc_to helpers must be checkedtools/ | +25 | 0 replies | Applied |
| 3/3 | bpf: selftest: Ensure the return value of the bpf_per_cpu_ptr() must be checkedtools/ tools/ | +70 | 1 reply | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH bpf 0/3] bpf: Enforce NULL check on new _OR_NULL return types
This set enforces NULL check on the new helper return types, RET_PTR_TO_BTF_ID_OR_NULL and RET_PTR_TO_MEM_OR_BTF_ID_OR_NULL.
Martin KaFai Lau (3):
bpf: Enforce id generation for all may-be-null register type
bpf: selftest: Ensure the return value of bpf_skc_to helpers must be
checked
bpf: selftest: Ensure the return value of the bpf_per_cpu_ptr() must
be checked
kernel/bpf/verifier.c | 11 ++-- .../selftests/bpf/prog_tests/ksyms_btf.c | 57 +++++++++++++------ .../bpf/progs/test_ksyms_btf_null_check.c | 31 ++++++++++ tools/testing/selftests/bpf/verifier/sock.c | 25 ++++++++ 4 files changed, 100 insertions(+), 24 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/test_ksyms_btf_null_check.c
Signature · 1 line
2.24.1