Re: [PATCH v2] KVM: x86: Handle SRCU initialization failure during page track init

From: Jarkko Sakkinen
Date: Fri Sep 03 2021 - 02:59:17 EST


On Fri, 2021-09-03 at 10:37 +0800, tcs.kernel@xxxxxxxxx wrote:
> From: Haimin Zhang <tcs_kernel@xxxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Haimin Zhang <tcs_kernel@xxxxxxxxxxx>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
> Reported-by: TCS Robot <tcs_robot@xxxxxxxxxxx>

I'd drop reported-by. It's not a person (I guess) and the desc
is self-contained already.

Anyway,

Acked-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>

/Jarkko