]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: s390: Fix unlikely race in try_get_locked_pte()
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 11 Jun 2026 10:48:47 +0000 (12:48 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 11 Jun 2026 11:50:09 +0000 (13:50 +0200)
commit5670b7f927f8d98685f3f5873dbf9f8d7a5a63f3
tree2787b55e8c89b7e97f6f9741310e204b87048b42
parentf79413b2dde10829a1b526543e725dd5c1847e9a
KVM: s390: Fix unlikely race in try_get_locked_pte()

Fix an unlikely race in try_get_locked_pte(), which could have happened
if puds or pmds get unmapped between the p?dp_get() and p?d_offset()
functions.

Fixes: 89fa757931dc ("KVM: s390: Avoid potentially sleeping while atomic when zapping pages")
CC: stable@vger.kernel.org # 7.1
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260611104850.110313-3-imbrenda@linux.ibm.com>
arch/s390/mm/gmap_helpers.c