Thread (27 messages) 27 messages, 6 authors, 2024-10-24

Re: [PATCH v6 6/8] x86/module: prepare module loading for ROX allocations of text

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2024-10-17 15:34:46
Also in: bpf, linux-alpha, linux-arch, linux-m68k, linux-mips, linux-mm, linux-modules, linux-riscv, linux-sh, linux-um, linuxppc-dev, lkml, loongarch, sparclinux

On Thu, 17 Oct 2024 14:25:05 +0300
Mike Rapoport [off-list ref] wrote:
With this series the module text is allocated as ROX at the first place, so
the modifications ftrace does to module text have to either use text poking
even before complete_formation() or deal with a writable copy like I did
for relocations and alternatives.

I've been carrying the ftrace changes from a very old prototype and
didn't pay enough attention to them them until Steve's complaint.

I'll look into it.
I just posted a patch where you can see the effects of these changes with
respect to ftrace patching times.

  https://lore.kernel.org/all/20241017113105.1edfa943@gandalf.local.home/ (local)

I'll be adding this to the next merge window.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help