potential memleak and use after free in bpf verifier
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: Move bpf_prog_clone_free into filter.h fileinclude/ kernel/ | +16 | 1 reply | |
| 2/3 | bpf: Fix a memory leak in an error handling path in 'bpf_patch_insn_data()'kernel/ | +4 | 0 replies | |
| 3/3 | bpf: Fix a use after free in bpf_check()include/ kernel/ kernel/ +1 more | +49 | 8 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [bpf-next 0/3] potential memleak and use after free in bpf verifier
While reading the code of bpf verifier, I found these two issues. Patch 1 move the bpf_prog_clone_free function into filter.h, so we can use it in other file. Patch 2 fix memleak in an error handling path in bpf_patch_insn_data function.
Patch 3 fix a use after free in bpf_check function.
He Fengqing (3):
bpf: Move bpf_prog_clone_free into filter.h file
bpf: Fix a memory leak in an error handling path in
'bpf_patch_insn_data()'
bpf: Fix a use after free in bpf_check()
include/linux/filter.h | 17 ++++++++++++- kernel/bpf/core.c | 27 +++++--------------- kernel/bpf/verifier.c | 58 ++++++++++++++++++++++++++++++++---------- net/core/filter.c | 2 +- 4 files changed, 68 insertions(+), 36 deletions(-)
Signature · 1 line
2.25.1