KVM: x86: Handle SRCU initialization failure during page track init
stable inclusion from stable-v5.10.71 commit deb2949417677649e2413266d7ce8c2ff73952b4 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9RFI8 CVE: CVE-2021-47407 -------------------------------- commit eb7511bf upstream. 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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>
Loading
Please sign in to comment