Re: [PATCH v5 4/8] module: prepare to handle ROX allocations for text

2024-10-10 Thread Song Liu
On Wed, Oct 9, 2024 at 10:47 PM Mike Rapoport wrote: > > On Wed, Oct 09, 2024 at 03:23:40PM -0700, Song Liu wrote: > > On Wed, Oct 9, 2024 at 11:10 AM Mike Rapoport wrote: > > [...] > > > diff --git a/include/linux/module.h b/include/linux/module.h > > > index 88ecc5e9f523..7039f609c6ef 100644 >

Re: [PATCH v5 4/8] module: prepare to handle ROX allocations for text

2024-10-09 Thread Mike Rapoport
On Wed, Oct 09, 2024 at 03:23:40PM -0700, Song Liu wrote: > On Wed, Oct 9, 2024 at 11:10 AM Mike Rapoport wrote: > [...] > > diff --git a/include/linux/module.h b/include/linux/module.h > > index 88ecc5e9f523..7039f609c6ef 100644 > > --- a/include/linux/module.h > > +++ b/include/linux/module.h >

Re: [PATCH v5 4/8] module: prepare to handle ROX allocations for text

2024-10-09 Thread Song Liu
On Wed, Oct 9, 2024 at 11:10 AM Mike Rapoport wrote: [...] > diff --git a/include/linux/module.h b/include/linux/module.h > index 88ecc5e9f523..7039f609c6ef 100644 > --- a/include/linux/module.h > +++ b/include/linux/module.h > @@ -367,6 +367,8 @@ enum mod_mem_type { > > struct module_memory { >

[PATCH v5 4/8] module: prepare to handle ROX allocations for text

2024-10-09 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" In order to support ROX allocations for module text, it is necessary to handle modifications to the code, such as relocations and alternatives patching, without write access to that memory. One option is to use text patching, but this would make module loading e