diff options
author | Vincenzo Frascino <vincenzo.frascino@arm.com> | 2021-10-06 16:47:49 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-10-07 09:21:57 +0100 |
commit | d73c162e073376dd207d716cb4b9cfc809be7e80 (patch) | |
tree | 0744ad38c277d4d6453faded585b7951b73078e6 /mm/kasan | |
parent | ba1a98e8b1720f7a78154e0020c77dbc2b34d0ce (diff) |
arm64: mte: CPU feature detection for Asymm MTE
Add the cpufeature entries to detect the presence of Asymmetric MTE.
Note: The tag checking mode is initialized via cpu_enable_mte() ->
kasan_init_hw_tags() hence to enable it we require asymmetric mode
to be at least on the boot CPU. If the boot CPU does not have it, it is
fine for late CPUs to have it as long as the feature is not enabled
(ARM64_CPUCAP_BOOT_CPU_FEATURE).
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20211006154751.4463-4-vincenzo.frascino@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'mm/kasan')
0 files changed, 0 insertions, 0 deletions