On 7/9/25 3:49 PM, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" <r...@kernel.org> > > Some callers of execmem_alloc() require the memory to be temporarily > writable even when it is allocated from ROX cache. These callers use > execemem_make_temp_rw() right after the call to execmem_alloc(). > > Wrap this sequence in execmem_alloc_rw() API. > > Signed-off-by: Mike Rapoport (Microsoft) <r...@kernel.org>
Reviewed-by: Petr Pavlu <petr.pa...@suse.com> > @@ -165,6 +149,28 @@ struct execmem_info *execmem_arch_setup(void); > */ > void *execmem_alloc(enum execmem_type type, size_t size); > > +/** > + * execmem_alloc_rw - allocate writatble executable memory Nit: writatble -> writable. -- Thanks, Petr