diff options
author | Mark Rutland <mark.rutland@arm.com> | 2017-02-09 16:19:20 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-02-15 13:20:29 +0100 |
commit | 521c646108ed199d19c5c73978aaca3e18ca8f81 (patch) | |
tree | 1ec326a30049bf907bd669bbc3c69cb3acbec7c9 /drivers/media/pci/pluto2/pluto2.c | |
parent | arm64: traps: correctly handle MRS/MSR with XZR (diff) | |
download | linux-521c646108ed199d19c5c73978aaca3e18ca8f81.tar.xz linux-521c646108ed199d19c5c73978aaca3e18ca8f81.zip |
arm64: cpufeature: correctly handle MRS to XZR
In emulate_mrs() we may erroneously write back to the user SP rather
than XZR if we trap an MRS instruction where Xt == 31.
Use the new pt_regs_write_reg() helper to handle this correctly.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Fixes: 77c97b4ee21290f5 ("arm64: cpufeature: Expose CPUID registers by emulation")
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/media/pci/pluto2/pluto2.c')
0 files changed, 0 insertions, 0 deletions