[RFC PATCH 3/6] arm64: mm: fix restoring linear map permissions on execmem cache clean
Mike Rapoport
rppt at kernel.org
Mon Jul 6 04:35:14 PDT 2026
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
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.
> Does this sound like a good path forward?
>
> Thanks,
> Adrian
--
Sincerely yours,
Mike.
More information about the linux-arm-kernel
mailing list