Re: [PATCH v2 0/1] binfmt_elf: seal address zero

2024-12-13 Thread Kees Cook
Sorry for the delay in my reply -- I've been trying to catch up on stuff after 2 weeks off. On Tue, Dec 03, 2024 at 02:13:45PM +, Lorenzo Stoakes wrote: > On Wed, Aug 14, 2024 at 09:59:47AM -0700, Kees Cook wrote: > > On Tue, 06 Aug 2024 21:49:26 +, jef...@chromium.org wrote: > > > From: J

Re: [PATCH v2 0/1] binfmt_elf: seal address zero

2024-12-03 Thread Lorenzo Stoakes
On Wed, Aug 14, 2024 at 09:59:47AM -0700, Kees Cook wrote: > On Tue, 06 Aug 2024 21:49:26 +, jef...@chromium.org wrote: > > From: Jeff Xu > > > > In load_elf_binary as part of the execve(), when the current > > task’s personality has MMAP_PAGE_ZERO set, the kernel allocates > > one page at ad

Re: [PATCH v2 0/1] binfmt_elf: seal address zero

2024-08-14 Thread Kees Cook
On Tue, 06 Aug 2024 21:49:26 +, jef...@chromium.org wrote: > From: Jeff Xu > > In load_elf_binary as part of the execve(), when the current > task’s personality has MMAP_PAGE_ZERO set, the kernel allocates > one page at address 0. According to the comment: > > /* Why this, you ask??? Well

[PATCH v2 0/1] binfmt_elf: seal address zero

2024-08-06 Thread jeffxu
From: Jeff Xu In load_elf_binary as part of the execve(), when the current task’s personality has MMAP_PAGE_ZERO set, the kernel allocates one page at address 0. According to the comment: /* Why this, you ask??? Well SVr4 maps page 0 as read-only, and some applications "depend" upon this b