Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull kvm fixes from Paolo Bonzini:
"Two small fixes for x86:

- lockdep WARN due to missing lock nesting annotation

- NULL pointer dereference when accessing debugfs"

* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: x86: Check for rmaps allocation
KVM: SEV: Mark nested locking of kvm->lock

+4 -1
+3
arch/x86/kvm/debugfs.c
··· 95 95 unsigned int *log[KVM_NR_PAGE_SIZES], *cur; 96 96 int i, j, k, l, ret; 97 97 98 + if (!kvm_memslots_have_rmaps(kvm)) 99 + return 0; 100 + 98 101 ret = -ENOMEM; 99 102 memset(log, 0, sizeof(log)); 100 103 for (i = 0; i < KVM_NR_PAGE_SIZES; i++) {
+1 -1
arch/x86/kvm/svm/sev.c
··· 1565 1565 r = -EINTR; 1566 1566 if (mutex_lock_killable(&dst_kvm->lock)) 1567 1567 goto release_src; 1568 - if (mutex_lock_killable(&src_kvm->lock)) 1568 + if (mutex_lock_killable_nested(&src_kvm->lock, SINGLE_DEPTH_NESTING)) 1569 1569 goto unlock_dst; 1570 1570 return 0; 1571 1571