[email protected]>, Will Deacon <[email protected]>, Masahiro Yamada <[email protected]>, Jarkko Sakkinen <[email protected]>, Sami Tolvanen <[email protected]>, "Naveen N. Rao" <[email protected]>, Marco Elver <[email protected]>, Kees Cook <[email protected]>, Steven Rostedt <[email protected]>, Nathan Chancellor <[email protected]>, "Russell King \(Oracle\)" <[email protected]>, Mark Brown <[email protected]>, Borislav Petkov <[email protected]>, Alexander Egorenkov <[email protected]>, Thomas Bogendoerfer <[email protected]>, Parisc List <[email protected]>, Nathaniel McCallum <[email protected]>, Dmitry Torokhov <[email protected]>, "David S. Miller" <[email protected]>, "Kirill A. Shutemov" <[email protected]>, Tobias Huschle <[email protected]>, "Peter Zijlstra \(Intel\)" <[email protected]>, "H. Peter Anvin" <[email protected]>, sparclinux <[email protected]>, Tiezhu Yang <yangtiezhu@loongs on.cn>, Miroslav Benes <[email protected]>, Chen Zhongjin <[email protected]>, Ard Biesheuvel <[email protected]>, the arch/x86 maintainers <[email protected]>, Russell King <[email protected]>, linux-riscv <[email protected]>, Ingo Molnar <[email protected]>, Aaron Tomlin <[email protected]>, Albert Ou <[email protected]>, Heiko Carstens <[email protected]>, Liao Chang <[email protected]>, Paul Walmsley <[email protected]>, Josh Poimboeuf <[email protected]>, Thomas Richter <[email protected]>, "open list:BROADCOM NVRAM DRIVER" <[email protected]>, Changbin Du <[email protected]>, Palmer Dabbelt <[email protected]>, linuxppc-dev <[email protected]>, [email protected] Errors-To: [email protected] Sender: "Linuxppc-dev" <[email protected]>
On Wed, Jun 08, 2022 at 01:26:19PM -0700, Luis Chamberlain wrote: > No, that was removed because it has only one user. That is only part of the story. The other part is that the overall kernel simply does not have any business allocating exutable memory. Executable memory is a very special concept for modules or module-like code like kprobes, and should not be exposed as a general concept. Especially as executable memory really should not also be writable for security reasons. In other words, we should actually never allocate executable memory, every. We might seal memory and then mark it executable after having written to it, which is how modules and kprobes are implemented on all modern Linux ports anyway.
