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

2023-09-29 Thread Eric W. Biederman
Pedro Falcato writes: > On Fri, Sep 29, 2023 at 4:24 AM Kees Cook wrote: >> >> From: "Eric W. Biederman" >> >> Implement a helper elf_load() that wraps elf_map() and performs all >> of the necessary work to ensure that when "memsz > filesz" the bytes >> described by "memsz > filesz" are zeroed.

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

2023-09-29 Thread Pedro Falcato
On Fri, Sep 29, 2023 at 4:24 AM Kees Cook wrote: > > From: "Eric W. Biederman" > > Implement a helper elf_load() that wraps elf_map() and performs all > of the necessary work to ensure that when "memsz > filesz" the bytes > described by "memsz > filesz" are zeroed. > > An outstanding issue is if

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

2023-09-28 Thread Kees Cook
From: "Eric W. Biederman" Implement a helper elf_load() that wraps elf_map() and performs all of the necessary work to ensure that when "memsz > filesz" the bytes described by "memsz > filesz" are zeroed. An outstanding issue is if the first segment has filesz 0, and has a randomized location. B