Add some 'malloc' failure checks
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest4 patches 6 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | selftests/bpf: Add some null pointer checkstools/ | +7 | 3 replies | |
| 2/4 | selftests/bpf/sockopt: Add a null pointer check for the run_testtools/ | +6 | 1 reply | |
| 3/4 | selftests/bpf: Add a null pointer check for the load_btf_spectools/ | +2 | 1 reply | |
| 4/4 | selftests/bpf: Add a null pointer check for the serial_test_tp_attach_querytools/ | +3 | 1 reply |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Muhammad Usama Anjum |
|---|---|
| 1/4 | |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next v2 0/4] Add some 'malloc' failure checks
From: Kunwu Chan <[email protected]>
The "malloc" call may not be successful.Add the malloc failure checking to avoid possible null dereference.
Changes since v1 [1]:
- As Daniel Borkmann suggested, change patch 4/4 only
- Other 3 patches no changes.
[1] https://lore.kernel.org/all/[email protected]/
Kunwu Chan (4):
selftests/bpf: Add some null pointer checks selftests/bpf/sockopt: Add a null pointer check for the run_test selftests/bpf: Add a null pointer check for the load_btf_spec selftests/bpf: Add a null pointer check for the
serial_test_tp_attach_query
tools/testing/selftests/bpf/prog_tests/sockopt.c | 6 ++++++ tools/testing/selftests/bpf/prog_tests/tp_attach_query.c | 3 +++ tools/testing/selftests/bpf/test_progs.c | 7 +++++++ tools/testing/selftests/bpf/test_verifier.c | 2 ++ 4 files changed, 18 insertions(+)
Signature · 1 line
2.40.1