Skip to content

binfmt: fixes for kres reports

Christian Brauner bpf linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20260918-work-binfmt_misc-fixes-98c4fe6db27d

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2binfmt_misc: fix OOB read in bpf_binprm_select_interp()fs/binfmt_misc_bpf.c+14 -10 replies
2/2binfmt_misc: fix racy checks in bpf set_interp kfuncsfs/binfmt_misc_bpf.c+18 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKumar Kartikeya Dwivedi
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] binfmt: fixes for kres reports

I asked Chris to run his kres tooling on the binfmt with bpf changes merged for this cycle. It found two issues that are fixed in this series. I reproduced both of them.

---
Chris Mason (2):
binfmt_misc: fix OOB read in bpf_binprm_select_interp()
binfmt_misc: fix racy checks in bpf set_interp kfuncs

 fs/binfmt_misc_bpf.c | 35 ++++++++++++++++++++++++++++++++---
 1 file changed, 32 insertions(+), 3 deletions(-)

---
base-commit: 5179241521401ef364294128bb43cdbce7252457
change-id: 20260918-work-binfmt_misc-fixes-98c4fe6db27d