Re: [PATCH] Added ability to vmalloc executable memory

From: Christoph Hellwig
Date: Mon Dec 12 2022 - 03:41:16 EST


On Fri, Dec 09, 2022 at 02:10:52PM +0100, Xander Moerkerken wrote:
> From: Xander Moerkerken <xander.moerkerken@xxxxxxxxx>
>
> Since release 5.8-rc1 the pgprot got removed from __vmalloc
> because the only usage was PAGE_KERNEL as argument.
> However, this removes the ability to input other arguments
> such as 'PAGE_KERNEL_EXEC', which can be used to allocate
> memory in which you can execute.

.. which is very much intentional.