Thread (14 messages) 14 messages, 5 authors, 2020-06-27

Re: [PATCH 1/3] x86/hyperv: allocate the hypercall page with only read and execute bits

From: Wei Liu <wei.liu@kernel.org>
Date: 2020-06-18 11:47:37
Also in: linux-hyperv, linux-mm, lkml

On Thu, Jun 18, 2020 at 08:43:05AM +0200, Christoph Hellwig wrote:
Avoid a W^X violation cause by the fact that PAGE_KERNEL_EXEC includes the
writable bit.

For this resurrect the removed PAGE_KERNEL_RX definitіon, but as
PAGE_KERNEL_ROX to match arm64 and powerpc.

Fixes: 78bb17f76edc ("x86/hyperv: use vmalloc_exec for the hypercall page")
Reported-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Wei Liu <wei.liu@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help