summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@linux.ibm.com>2026-08-05 13:04:53 +0200
committerClaudio Imbrenda <imbrenda@linux.ibm.com>2026-08-11 10:45:27 +0200
commita4e482def8533ebace517d9f67f1465841b1f982 (patch)
tree83812fce51c680ca2f361f7af76143b9b93f07ea /scripts/const_structs.checkpatch
parentaa9c8e8baf1e765fa65b93212522c636f25d846f (diff)
downloadlinux-a4e482def8533ebace517d9f67f1465841b1f982.tar.gz
linux-a4e482def8533ebace517d9f67f1465841b1f982.zip
KVM: s390: Take srcu when importing watchpoint data
__import_wp_info() backs up the original guest memory contents of a watchpoint with read_guest_abs(), which is kvm_read_guest() and therefore resolves the memslot via __kvm_memslots(). That requires kvm->srcu (or kvm->slots_lock) to be held, otherwise a concurrent memslot update can free the memslots array under us once its SRCU grace period has elapsed. As this is not fast path, following lock ordering (mutex first, then srcu) take the big hammer and hold the srcu for the full import. Fixes: 27291e2165b6 ("KVM: s390: hardware support for guest debugging") Cc: stable@vger.kernel.org Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-ID: <20260805110455.7200-7-borntraeger@linux.ibm.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions