kernel_optimize_test/arch/arm64/include
Steve Capper 072b1b62a6 ARM64: mm: Make PAGE_NONE pages read only and no-execute.
If we consider the following code sequence:

	my_pte = pte_modify(entry, myprot);
	x = pte_write(my_pte);
	y = pte_exec(my_pte);

If myprot comes from a PROT_NONE page, then x and y will both be
true which is undesireable behaviour.

This patch sets the no-execute and read-only bits for PAGE_NONE
such that the code above will return false for both x and y.

Signed-off-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
2013-06-14 09:42:46 +01:00
..
asm ARM64: mm: Make PAGE_NONE pages read only and no-execute. 2013-06-14 09:42:46 +01:00
uapi/asm arm64: Add kvm_para.h and xor.h generic headers 2013-01-29 17:39:15 +00:00