linux-stable/arch/arm64
Catalin Marinas 34bfeea4a9 arm64: mte: Clear the tags when a page is mapped in user-space with PROT_MTE
Pages allocated by the kernel are not guaranteed to have the tags
zeroed, especially as the kernel does not (yet) use MTE itself. To
ensure the user can still access such pages when mapped into its address
space, clear the tags via set_pte_at(). A new page flag - PG_mte_tagged
(PG_arch_2) - is used to track pages with valid allocation tags.

Since the zero page is mapped as pte_special(), it won't be covered by
the above set_pte_at() mechanism. Clear its tags during early MTE
initialisation.

Co-developed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
2020-09-04 12:46:06 +01:00
..
boot arm64: dts: k3-am65: Update the RM resource types 2020-08-16 22:01:20 +01:00
configs ARM: SoC driver updates for v5.9 2020-08-03 19:30:59 -07:00
crypto crypto: arm64/gcm - use inline helper to suppress indirect calls 2020-07-09 22:14:32 +10:00
include arm64: mte: Clear the tags when a page is mapped in user-space with PROT_MTE 2020-09-04 12:46:06 +01:00
kernel arm64: mte: Clear the tags when a page is mapped in user-space with PROT_MTE 2020-09-04 12:46:06 +01:00
kvm arm64: kvm: mte: Hide the MTE CPUID information from the guests 2020-09-04 12:45:44 +01:00
lib arm64: mte: Clear the tags when a page is mapped in user-space with PROT_MTE 2020-09-04 12:46:06 +01:00
mm arm64: mte: Handle synchronous and asynchronous tag check faults 2020-09-04 12:46:06 +01:00
net bpf, arm64: Add BPF exception tables 2020-07-31 00:43:40 +02:00
xen
Kbuild
Kconfig KVM/arm64 updates for Linux 5.9: 2020-08-09 12:58:23 -04:00
Kconfig.debug arm64: remove TEXT_OFFSET randomization 2020-06-15 13:10:59 +01:00
Kconfig.platforms ARM: new SoC support for v5.9 2020-08-03 19:38:30 -07:00
Makefile arm64: vdso32: make vdso32 install conditional 2020-08-28 13:18:48 +01:00