]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kasan: Set TCR_EL1.TBID1 when KASAN_HW_TAGS is enabled
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 4 Jan 2021 12:15:41 +0000 (12:15 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 5 Jan 2021 17:52:19 +0000 (17:52 +0000)
commitebb61ec906c4d60d0bc809e65052ca3d1863ca79
treeb302d19c854faccbcdbf5d2ec373203491fd882c
parent9a0e62a61b5fcd995b8142a66e8c48ea7faf28e0
arm64: kasan: Set TCR_EL1.TBID1 when KASAN_HW_TAGS is enabled

Commit 615299b63bf7 ("kasan: arm64: set TCR_EL1.TBID1 when enabled") set
the TBID1 bit for the KASAN_SW_TAGS configuration, freeing up 8 bits to
be used by PAC. With in-kernel MTE now in mainline, also set this bit
for the KASAN_HW_TAGS configuration.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Peter Collingbourne <pcc@google.com>
Acked-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Andrey Konovalov <andreyknvl@google.com>
arch/arm64/mm/proc.S