Re: [PATCH v3 6/9] module: switch to execmem API for remapping as RW and restoring ROX

2025-01-28 Thread Petr Pavlu
On 1/28/25 11:00, Mike Rapoport wrote: > On Mon, Jan 27, 2025 at 01:50:31PM +0100, Petr Pavlu wrote: >> On 1/26/25 08:47, Mike Rapoport wrote: >>> From: "Mike Rapoport (Microsoft)" >>> >>> Instead of using writable copy for module text sections, temporarily remap >>> the memory allocated from exec

Re: [PATCH v3 6/9] module: switch to execmem API for remapping as RW and restoring ROX

2025-01-28 Thread Mike Rapoport
On Mon, Jan 27, 2025 at 01:50:31PM +0100, Petr Pavlu wrote: > On 1/26/25 08:47, Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > > > Instead of using writable copy for module text sections, temporarily remap > > the memory allocated from execmem's ROX cache as writable and restore i

Re: [PATCH v3 6/9] module: switch to execmem API for remapping as RW and restoring ROX

2025-01-27 Thread Petr Pavlu
On 1/26/25 08:47, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" > > Instead of using writable copy for module text sections, temporarily remap > the memory allocated from execmem's ROX cache as writable and restore its > ROX permissions after the module is formed. > > This will allow

[PATCH v3 6/9] module: switch to execmem API for remapping as RW and restoring ROX

2025-01-25 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Instead of using writable copy for module text sections, temporarily remap the memory allocated from execmem's ROX cache as writable and restore its ROX permissions after the module is formed. This will allow removing nasty games with writable copy in alternativ