[RFC PATCH 3/6] arm64: mm: fix restoring linear map permissions on execmem cache clean

Adrian Barnaś abarnas at google.com
Mon Jul 6 05:47:02 PDT 2026


On Mon, Jul 06, 2026 at 02:35:14PM +0300, Mike Rapoport wrote:
>Hi Adrian,
>
>On Wed, Jun 17, 2026 at 03:18:27PM +0000, Adrian Barnaś wrote:
>>
>> Following your suggestion, I can put together a preparatory patch series to
>> refactor the set_direct_map_* APIs to accept a nr_pages parameter. This
>> refactoring would also allow us to drop the redundant set_area_direct_map
>> helper. I could then rebase the rox_cache series on top of that.
>
>I've been looking at something related and I was already half way through
>adding numpages to set_direct_map when I remembered this conversation :)
>
>Here's what I have for now:
>
>https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/log/?h=direct-map/v0
>
                                                                            
I did roughly the same on my local tree.                                   
                                                                            
>This is only lightly build tested for arm64 and x86.                      
>                                                                          
>As this is WIP, things may change there, but I hope it can save you some  
>time with your arm64 ROX cache work.                                   

I will fetch your commits and I will keep an eye on your tree if anything  
changes.                                                                   

Thanks,
Adrian                                                                                           



More information about the linux-arm-kernel mailing list