arm64: convert protection key into vm_flags and pgprot values
authorJoey Gouly <joey.gouly@arm.com>
Thu, 22 Aug 2024 15:10:57 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 11:52:41 +0000 (12:52 +0100)
commitb3c03fe13766f0455c4c77817a2aa385ed89937d
tree49f252af52e93580593f4202bcd6deac6fb5f52a
parentb66db4f3ccde2fe960ff2d7bb64fe8933e2db7b3
arm64: convert protection key into vm_flags and pgprot values

Modify arch_calc_vm_prot_bits() and vm_get_page_prot() such that the pkey
value is set in the vm_flags and then into the pgprot value.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20240822151113.1479789-15-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mman.h
arch/arm64/mm/mmap.c