Thread (17 messages) 17 messages, 6 authors, 28d ago

Re: [RFC PATCH 6/9] arm64: Enable the execmem ROX cache for module text

From: Adrian Barnaś <hidden>
Date: 2026-08-23 16:47:02
Also in: linux-mm, linux-modules, linux-trace-kernel, lkml

On Sat, Aug 22, 2026 at 03:53:28PM +0200, Ard Biesheuvel wrote:
From: Ard Biesheuvel <ardb@kernel.org>

Wire up the existing support for the execmem ROX cache on arm64, so that
it will be used for module .text and .init.text regions. This will be
relied upon by a subsequent patch in order to allocate those regions
from a single chunk of memory.
Until Mike lands his changes [1] on set_direct_map, enabling ROX_CACHE on  
ARM64 would cause a permission fault when the same part of the direct map is
used again (the RO flag is not properly stripped off after an execmem cache
clean).                                                                    
                                                                            
[1]: https://lore.kernel.org/all/20260823-execmem-set-vm-perms-v0-2-v2-0-b013a37d84b3@kernel.org/ (local)
                                                                            
Best regards,                                                              
Adrian  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help