Re: [PATCH v2 00/10] x86/module: rework ROX cache to avoid writable copy

2025-01-22 Thread Peter Zijlstra
On Tue, Jan 21, 2025 at 01:36:47PM +0100, Peter Zijlstra wrote: > On Tue, Jan 21, 2025 at 11:57:29AM +0200, Mike Rapoport wrote: > > > Kirill A. Shutemov (1): > > x86/mm/pat: restore large ROX pages after fragmentation > > The duplication between pmd and pud collapse is a bit annoying, but so >

Re: [PATCH v2 00/10] x86/module: rework ROX cache to avoid writable copy

2025-01-21 Thread Peter Zijlstra
On Tue, Jan 21, 2025 at 11:57:29AM +0200, Mike Rapoport wrote: > Kirill A. Shutemov (1): > x86/mm/pat: restore large ROX pages after fragmentation The duplication between pmd and pud collapse is a bit annoying, but so be it. > Mike Rapoport (Microsoft) (9): > x86/mm/pat: cpa-test: fix length

[PATCH v2 00/10] x86/module: rework ROX cache to avoid writable copy

2025-01-21 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Hi, Following Peter's comments [1] these patches rework handling of ROX caches for module text allocations. Instead of using a writable copy that really complicates alternatives patching, temporarily remap parts of a large ROX page as RW for the time of module