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

Steven Rostedt rostedt at goodmis.org
Thu Oct 17 08:35:02 PDT 2024


On Thu, 17 Oct 2024 14:25:05 +0300
Mike Rapoport <rppt at kernel.org> 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/

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

-- Steve



More information about the linux-um mailing list