Re: [PATCH] kprobes: Enable tracing for mololithic kernel images

From
Christoph Hellwig <hch@lst.de>
Date
2022-06-09 03:49:10
Also in
linux-mips, linux-riscv, linux-s390, linuxppc-dev, lkml, sparclinux
Reply to
Luis Chamberlain, 2022-06-08
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.
Thread (28 messages) 28 messages, 10 authors, last reply 2022-06-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help