]> www.infradead.org Git - users/hch/misc.git/commit
KVM: s390: pv: fix race when making a page secure
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 12 Mar 2025 18:49:12 +0000 (19:49 +0100)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Fri, 14 Mar 2025 14:24:19 +0000 (15:24 +0100)
commitd8dfda5af0be6e48178b6f4b46c6af30b06335b2
treeafbb2f7efaac2f2770faaf37a8c0ab701a1e3d70
parent695caca9345a160ecd9645abab8e70cfe849e9ff
KVM: s390: pv: fix race when making a page secure

Holding the pte lock for the page that is being converted to secure is
needed to avoid races. A previous commit removed the locking, which
caused issues. Fix by locking the pte again.

Fixes: 5cbe24350b7d ("KVM: s390: move pv gmap functions into kvm")
Reported-by: David Hildenbrand <david@redhat.com>
Tested-by: David Hildenbrand <david@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
[david@redhat.com: replace use of get_locked_pte() with folio_walk_start()]
Link: https://lore.kernel.org/r/20250312184912.269414-2-imbrenda@linux.ibm.com
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20250312184912.269414-2-imbrenda@linux.ibm.com>
arch/s390/include/asm/gmap.h
arch/s390/include/asm/uv.h
arch/s390/kernel/uv.c
arch/s390/kvm/gmap.c
arch/s390/kvm/kvm-s390.c
arch/s390/mm/gmap.c