Re: [PATCH 2/5] hurd: Map brk non-executable

2023-07-02 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev via Libc-alpha, le lun. 26 juin 2023 02:17:48 +0300, a ecrit: > The rest of the heap (backed by individual pages) is already mapped RW. > Mapping these pages RWX presents a security hazard. > > Also, in another branch memory gets allocated using vm_allocate, which >

[PATCH 2/5] hurd: Map brk non-executable

2023-06-25 Thread Sergey Bugaev
The rest of the heap (backed by individual pages) is already mapped RW. Mapping these pages RWX presents a security hazard. Also, in another branch memory gets allocated using vm_allocate, which sets memory protection to VM_PROT_DEFAULT (which is RW). The mismatch between protections prevents Mach