diff options
| author | Oliver Upton <oupton@kernel.org> | 2026-07-01 16:16:19 -0700 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-07-06 17:17:38 +0100 |
| commit | 100baf0184896f859290a684f864b8200d8ac872 (patch) | |
| tree | c9a253fd7285bce23abd5d1b30e8fa92b2327322 /drivers/gpu/nova-core/fsp/hal/git@git.tavy.me:linux.git | |
| parent | 3a07249981629ace483ebbef81ef6b34c2d2afec (diff) | |
KVM: arm64: Ensure level is always initialized when relaxing perms
stage2_update_leaf_attrs() returns early before writing to @level if the
table walker returned an error. At the same time,
kvm_pgtable_stage2_relax_perms() uses the level as a TLBI TTL hint when the
error was EAGAIN, indicating the vCPU raced with a table update and the TLB
entry it hit is now stale.
Fall back to an unknown TTL if none was provided by the walk.
Cc: stable@vger.kernel.org
Fixes: be097997a273 ("KVM: arm64: Always invalidate TLB for stage-2 permission faults")
Signed-off-by: Oliver Upton <oupton@kernel.org>
Reviewed-by: Wei-Lin Chang <weilin.chang@arm.com>
Link: https://patch.msgid.link/20260701231620.3300204-2-oupton@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'drivers/gpu/nova-core/fsp/hal/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
