RFC Fix use-after-free related to binfmt-misc-bpf.c
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: fix UAF via trusted BTF walk after releasekernel/ | +16 | 2 replies | |
| 2/2 | selftests/bpf: test f_inode walk around bpf_put_file()tools/ tools/ | +53 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RFC 0/2] Fix use-after-free related to binfmt-misc-bpf.c
Hi everyone,
Christian asked me to run the recent binfmt_misc_bpf.c changes through reviews and this bug popped out. The bug is reproduced, but I'm not at all confident in the fix.
-chris
Chris Mason (2):
bpf: fix UAF via trusted BTF walk after release selftests/bpf: test f_inode walk around bpf_put_file()
kernel/bpf/verifier.c | 16 +++++++++++ .../selftests/bpf/progs/verifier_vfs_accept.c | 26 ++++++++++++++++++ .../selftests/bpf/progs/verifier_vfs_reject.c | 27 +++++++++++++++++++ 3 files changed, 69 insertions(+)
Signature · 1 line
2.54.0