Files
linux/arch
Peter Collingbourne 94a1374da0 UPSTREAM: kasan: arm64: set TCR_EL1.TBID1 when enabled
[ Upstream commit 49b3cf035e ]

On hardware supporting pointer authentication, we previously ended up
enabling TBI on instruction accesses when tag-based ASAN was enabled,
but this was costing us 8 bits of PAC entropy, which was unnecessary
since tag-based ASAN does not require TBI on instruction accesses. Get
them back by setting TCR_EL1.TBID1.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@google.com>
Link: https://lore.kernel.org/r/20f64e26fc8a1309caa446fffcb1b4e2fe9e229f.1605952129.git.pcc@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Bug: 172318110
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Change-Id: I610653f7fead6fea2a32fb7f90d8e604743bb981
2021-01-19 21:47:26 -08:00
..
2021-01-19 18:49:54 +01:00
2021-01-13 10:29:42 +01:00
2021-01-13 10:29:42 +01:00
2021-01-19 09:33:21 +01:00
2021-01-19 18:49:54 +01:00
2021-01-13 10:29:42 +01:00
2021-01-13 10:29:42 +01:00
2021-01-10 12:19:03 +01:00
2021-01-19 18:49:54 +01:00
2021-01-13 10:29:42 +01:00
2021-01-19 09:33:21 +01:00