binfmt_elf: Support segments with 0 filesz and misaligned starts
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest6 patches 11 repliesIn review
- v34 patches 4 repliesSuperseded
Changes in v4 from the cover letter
- refactor load_elf_library() too
- don't refactor padzero(), just test in the only remaining caller
- drop now-unused vm_brk()
v3: https://lore.kernel.org/all/[email protected]
v2: https://lore.kernel.org/lkml/[email protected]
v1: https://lore.kernel.org/lkml/[email protected]
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | binfmt_elf: Support segments with 0 filesz and misaligned startsfs/ | +48 | 2 replies | |
| 2/6 | binfmt_elf: elf_bss no longer used by load_elf_binary()fs/ | +1 | 0 replies | |
| 3/6 | binfmt_elf: Use elf_load() for interpreterfs/ | +1 | 0 replies | |
| 4/6 | binfmt_elf: Use elf_load() for libraryfs/ | +4 | 3 replies | |
| 5/6 | binfmt_elf: Only report padzero() errors when PROT_WRITEfs/ | +23 | 0 replies | |
| 6/6 | mm: Remove unused vm_brk()include/ mm/ mm/ | +1 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Pedro Falcato | Kees Cook |
|---|---|---|
| Series | T-b | R-b |
| 1/6 | ||
| 2/6 | ||
| 3/6 | ||
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/6] binfmt_elf: Support segments with 0 filesz and misaligned starts
Hi,
This is the continuation of the work Eric started for handling "p_memsz > p_filesz" in arbitrary segments (rather than just the last, BSS, segment). I've added the suggested changes:
- drop unused "elf_bss" variable
- refactor load_elf_interp() to use elf_load()
- refactor load_elf_library() to use elf_load()
- report padzero() errors when PROT_WRITE is present
- drop vm_brk()
Thanks!
-Kees
v4:
- refactor load_elf_library() too
- don't refactor padzero(), just test in the only remaining caller
- drop now-unused vm_brk()
v3: https://lore.kernel.org/all/[email protected]
v2: https://lore.kernel.org/lkml/[email protected]
v1: https://lore.kernel.org/lkml/[email protected]
Eric W. Biederman (1):
binfmt_elf: Support segments with 0 filesz and misaligned starts
Kees Cook (5):
binfmt_elf: elf_bss no longer used by load_elf_binary()
binfmt_elf: Use elf_load() for interpreter
binfmt_elf: Use elf_load() for library
binfmt_elf: Only report padzero() errors when PROT_WRITE
mm: Remove unused vm_brk()
fs/binfmt_elf.c | 214 ++++++++++++++++----------------------------- include/linux/mm.h | 3 +- mm/mmap.c | 6 -- mm/nommu.c | 5 -- 4 files changed, 76 insertions(+), 152 deletions(-)
Signature · 1 line
2.34.1