All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] Fix use-after-free related to binfmt-misc-bpf.c
@ 2026-09-16 18:33 Chris Mason
  2026-09-16 18:33 ` [PATCH RFC 1/2] bpf: fix UAF via trusted BTF walk after release Chris Mason
  2026-09-16 18:33 ` [PATCH RFC 2/2] selftests/bpf: test f_inode walk around bpf_put_file() Chris Mason
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Mason @ 2026-09-16 18:33 UTC (permalink / raw)
  To: mason, bpf; +Cc: ast, daniel, andrii, eddyz87, memxor, brauner

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(+)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-16 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 18:33 [PATCH RFC 0/2] Fix use-after-free related to binfmt-misc-bpf.c Chris Mason
2026-09-16 18:33 ` [PATCH RFC 1/2] bpf: fix UAF via trusted BTF walk after release Chris Mason
2026-09-16 18:46   ` Kumar Kartikeya Dwivedi
2026-09-16 19:19     ` Chris Mason
2026-09-16 18:33 ` [PATCH RFC 2/2] selftests/bpf: test f_inode walk around bpf_put_file() Chris Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.