]> www.infradead.org Git - nvme.git/commit
arm64: set POR_EL0 for kernel threads
authorJoey Gouly <joey.gouly@arm.com>
Tue, 1 Oct 2024 13:36:17 +0000 (14:36 +0100)
committerWill Deacon <will@kernel.org>
Mon, 14 Oct 2024 16:22:47 +0000 (17:22 +0100)
commite3e85271330b18f487ab3032ea9ca0601efeafaf
tree0ff5a0449c5c9b99ed840aba998c4d999f519003
parent13f8f1e05f1dc36dbba6cba0ae03354c0dafcde7
arm64: set POR_EL0 for kernel threads

Restrict kernel threads to only have RWX overlays for pkey 0.  This matches
what arch/x86 does, by defaulting to a restrictive PKRU.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Kevin Brodsky <Kevin.Brodsky@arm.com>
Link: https://lore.kernel.org/r/20241001133618.1547996-2-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/process.c