KVM: arm64: Fix ptrauth ID register masking logic
authorKristina Martsenko <kristina.martsenko@arm.com>
Wed, 1 May 2019 16:10:08 +0000 (17:10 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 1 May 2019 16:21:51 +0000 (17:21 +0100)
commit9eecfc22e0bfc7a4c8ca007f083f0ae492d6e891
tree7730fa1763162addd11d3391482f16601b18614d
parent21137301de5a5bd8be7b0de7896c3f139b7eb859
KVM: arm64: Fix ptrauth ID register masking logic

When a VCPU doesn't have pointer auth, we want to hide all four pointer
auth ID register fields from the guest, not just one of them.

Fixes: 384b40caa8af ("KVM: arm/arm64: Context-switch ptrauth registers")
Reported-by: Andrew Murray <andrew.murray@arm.com>
Fscked-up-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Andrew Murray <andrew.murray@arm.com>
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/sys_regs.c