Bug 215720
Summary: | brk() regression on AArch64 on static-pie binary -- issue with ASLR and a guard page? | ||
---|---|---|---|
Product: | Memory Management | Reporter: | Victor Stinner (vstinner) |
Component: | Other | Assignee: | Andrew Morton (akpm) |
Status: | NEW --- | ||
Severity: | normal | CC: | dominik, fweimer |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.17.0 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | empty.c reproducer |
Description
Victor Stinner
2022-03-22 02:24:57 UTC
See also the binutils issue: "p_align in ELF program headers should not exceed section alignment" https://sourceware.org/bugzilla/show_bug.cgi?id=28689 See also this old (kernel 4.18) fixed x86-64 kernel bug: "kernel: brk can grow the heap into the area reserved for the stack" https://bugzilla.redhat.com/show_bug.cgi?id=1749633 Apparently the revert made it into v5.18-rc3: commit 354e923df042a11d1ab8ca06b3ebfab3a018a4ec Author: Andrew Morton <akpm@linux-foundation.org> Date: Thu Apr 14 19:13:55 2022 -0700 revert "fs/binfmt_elf: fix PT_LOAD p_align values for loaders" Commit 925346c129da11 ("fs/binfmt_elf: fix PT_LOAD p_align values for loaders") was an attempt to fix regressions due to 9630f0d60fec5f ("fs/binfmt_elf: use PT_LOAD p_align values for static PIE"). commit aeb7923733d100b86c6bc68e7ae32913b0cec9d8 Author: Andrew Morton <akpm@linux-foundation.org> Date: Thu Apr 14 19:13:58 2022 -0700 revert "fs/binfmt_elf: use PT_LOAD p_align values for static PIE" It was Cc:ed to <stable@vger.kernel.org>, so hopefully it will make it into a 5.17.z kernel, too. |