Re: [PATCH v1 1/1] KVM: s390: Fix a deadlock

From: Christoph Schlameuss

Date: Wed Mar 04 2026 - 03:12:37 EST


On Tue Mar 3, 2026 at 6:52 PM CET, Claudio Imbrenda wrote:
> In some scenarios, a deadlock can happen, involving _do_shadow_pte().
>
> Convert all usages of pgste_get_lock() to pgste_get_trylock() in
> _do_shadow_pte() and return -EAGAIN. All callers can already deal with
> -EAGAIN being returned.
>
> Signed-off-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>
> Fixes: e38c884df921 ("KVM: s390: Switch to new gmap")
Reviewed-by: Christoph Schlameuss <schlameuss@xxxxxxxxxxxxx>