diff options
author | Marc Zyngier <maz@kernel.org> | 2019-08-28 11:10:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:19:53 +0200 |
commit | a3a71b1e91614538eeb199c0a47ba4d0e7d8b8bf (patch) | |
tree | 417245055e9e22252fe21f772a043ae1b524a64d /kernel/task_work.c | |
parent | f35eb8a3aa3b492489116965558c3f2f7d641f31 (diff) | |
download | linux-stable-a3a71b1e91614538eeb199c0a47ba4d0e7d8b8bf.tar.gz linux-stable-a3a71b1e91614538eeb199c0a47ba4d0e7d8b8bf.tar.bz2 linux-stable-a3a71b1e91614538eeb199c0a47ba4d0e7d8b8bf.zip |
KVM: arm/arm64: vgic-v2: Handle SGI bits in GICD_I{S,C}PENDR0 as WI
[ Upstream commit 82e40f558de566fdee214bec68096bbd5e64a6a4 ]
A guest is not allowed to inject a SGI (or clear its pending state)
by writing to GICD_ISPENDR0 (resp. GICD_ICPENDR0), as these bits are
defined as WI (as per ARM IHI 0048B 4.3.7 and 4.3.8).
Make sure we correctly emulate the architecture.
Fixes: 96b298000db4 ("KVM: arm/arm64: vgic-new: Add PENDING registers handlers")
Cc: stable@vger.kernel.org # 4.7+
Reported-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/task_work.c')
0 files changed, 0 insertions, 0 deletions