linux-stable/arch/x86/include
Haimin Zhang eb7511bf91 KVM: x86: Handle SRCU initialization failure during page track init
Check the return of init_srcu_struct(), which can fail due to OOM, when
initializing the page track mechanism.  Lack of checking leads to a NULL
pointer deref found by a modified syzkaller.

Reported-by: TCS Robot <tcs_robot@tencent.com>
Signed-off-by: Haimin Zhang <tcs_kernel@tencent.com>
Message-Id: <1630636626-12262-1-git-send-email-tcs_kernel@tencent.com>
[Move the call towards the beginning of kvm_arch_init_vm. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-09-22 10:33:09 -04:00
..
asm KVM: x86: Handle SRCU initialization failure during page track init 2021-09-22 10:33:09 -04:00
uapi/asm KVM: x86: implement KVM_GUESTDBG_BLOCKIRQ 2021-08-20 16:06:37 -04:00