]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: ucontrol: Add missing locking around gmap_remove_child()
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Mon, 3 Aug 2026 12:40:36 +0000 (14:40 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Mon, 3 Aug 2026 14:51:34 +0000 (16:51 +0200)
commitdab62d218754e00a22aff45d2b0116c5ee30cbd2
tree7893d2f9930b1d4b1c3d7bd0c289649b1dc7754c
parentec215346270512db60478e45e8dff2de950225aa
KVM: s390: ucontrol: Add missing locking around gmap_remove_child()

gmap_remove_child() needs to be called while holding the children_lock
of the parent gmap. This was not the case in the error handling path of
kvm_arch_vcpu_create() for UCONTROL guests.

Fix by adding the missing lock.

Fixes: e38c884df921 ("KVM: s390: Switch to new gmap")
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260803124040.126471-10-imbrenda@linux.ibm.com>
arch/s390/kvm/kvm-s390.c