diff options
author | Haimin Zhang <[email protected]> | 2021-09-03 10:37:06 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-09-22 10:33:09 -0400 |
commit | eb7511bf9182292ef1df1082d23039e856d1ddfb (patch) | |
tree | d9bf754f850145f0268049a1b291ab385f0005c8 /tools/perf/util/trace-event-scripting.c | |
parent | cd36ae8761775e78154ba6bd7a3bd2ab538c589f (diff) |
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 <[email protected]>
Signed-off-by: Haimin Zhang <[email protected]>
Message-Id: <[email protected]>
[Move the call towards the beginning of kvm_arch_init_vm. - Paolo]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions