arm64: cpufeature: Account min_field_value when cheking secondaries for PAuth
authorVladimir Murzin <vladimir.murzin@arm.com>
Thu, 24 Feb 2022 12:49:50 +0000 (12:49 +0000)
committerWill Deacon <will@kernel.org>
Fri, 25 Feb 2022 13:38:51 +0000 (13:38 +0000)
commitda844beb6d9f97cb6fe4b443f9610a9fcc534f9d
tree92eed7f9f1cb8c019b0ffdd9e8c3f6dca3f90b9d
parentdfd42facf1e4ada021b939b4e19c935dcdd55566
arm64: cpufeature: Account min_field_value when cheking secondaries for PAuth

In case, both boot_val and sec_val have value below min_field_value we
would wrongly report that address authentication is supported. It is
not a big issue because we enable address authentication based on boot
cpu (and check there is correct).

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220224124952.119612-2-vladimir.murzin@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c