Re: [PATCH 2/2] mm: don't allow executable ioremap mappings
From: Christoph Hellwig
Date: Thu Aug 26 2021 - 01:37:27 EST
On Thu, Aug 26, 2021 at 12:46:34PM +1000, Nicholas Piggin wrote:
> I can't see why this is a problem. powerpcs can but it seems like a bad
> idea anyway.
>
> Any point to a WARN_ON or return -EINVAL? Hmm, maybe that doesn't work
> for archs that don't support NX. We could add a check for ones that do
> support it though... But that's for another patch.
This is the same as we do for regular vmap. I can't remember why we
decided on this particular approach, as it's been a while.