On Thu, 17 Oct 2024 14:25:05 +0300 Mike Rapoport <rppt@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx/ I'll be adding this to the next merge window. -- Steve