diff options
author | Marc Zyngier <maz@kernel.org> | 2021-05-14 09:05:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-10 13:37:15 +0200 |
commit | f82030a586a1045d09845a173d19c1d3246aac25 (patch) | |
tree | a1a0c6f612a10bd205e5a0337829c557f72c26f4 /arch/arm/kernel/unwind.c | |
parent | 2295e87a5e395604d943ea9d78986cff7ddf69e8 (diff) | |
download | linux-stable-f82030a586a1045d09845a173d19c1d3246aac25.tar.gz |
KVM: arm64: Fix debug register indexing
commit cb853ded1d25e5b026ce115dbcde69e3d7e2e831 upstream.
Commit 03fdfb2690099 ("KVM: arm64: Don't write junk to sysregs on
reset") flipped the register number to 0 for all the debug registers
in the sysreg table, hereby indicating that these registers live
in a separate shadow structure.
However, the author of this patch failed to realise that all the
accessors are using that particular index instead of the register
encoding, resulting in all the registers hitting index 0. Not quite
a valid implementation of the architecture...
Address the issue by fixing all the accessors to use the CRm field
of the encoding, which contains the debug register index.
Fixes: 03fdfb2690099 ("KVM: arm64: Don't write junk to sysregs on reset")
Reported-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/kernel/unwind.c')
0 files changed, 0 insertions, 0 deletions