]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: vsie: Fix races with partial gmap invalidations
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 7 Apr 2026 16:17:21 +0000 (18:17 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 7 Apr 2026 16:20:58 +0000 (18:20 +0200)
commit3ffe5eb4a5f248c0d4b849f050af973396656f85
tree3a6b6c627f42ca059de23626f1d0d1ed2199ee0b
parentbfe62a454542cfad3379f6ef5680b125f41e20f4
KVM: s390: vsie: Fix races with partial gmap invalidations

Introduce a new boolean flag, used for shadow gmaps, to keep track of
whether the gmap has been invalidated, either partially or totally.

Use the new flag to check whether shadow gmap invalidations happened
during shadowing. In such cases, abort whatever was going on, return
-EAGAIN and let the caller try again.

Fixes: 19d6c5b80443 ("KVM: s390: vsie: Fix unshadowing while shadowing")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260407161721.247044-1-imbrenda@linux.ibm.com>
arch/s390/kvm/gaccess.c
arch/s390/kvm/gmap.c
arch/s390/kvm/gmap.h