Re: [PATCH v4 0/6] binfmt_elf: Support segments with 0 filesz and misaligned starts

2023-09-29 Thread Sebastian Ott
ther than VM_EXEC. Cc: Andrew Morton Cc: linux...@kvack.org Signed-off-by: Sebastian Ott --- mm/mmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index b56a7f0c9f85..7ed286662839 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -3143,13 +3143,13 @@ int

Re: [PATCH v3 0/4] binfmt_elf: Support segments with 0 filesz and misaligned starts

2023-09-28 Thread Sebastian Ott
On Tue, 26 Sep 2023, Kees Cook wrote: 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 - report padzero() errors when PROT_WRITE