Thread (4 messages) flat view 4 messages, 3 authors, 2017-09-03

Re: [PATCH] virt/kvm avoids oops by adding parameter checking

From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2017-08-22 13:37:19
Also in: kvm, lkml

On 22/08/2017 03:09, nixiaoming wrote:
The error parameter passed through the external interface causes the system oops.
So it is necessary to increase the parameter check for all EXPORT_SYMBOL_GPL

example:
 void kvm_get_kvm(struct kvm *kvm)
 {
        refcount_inc(&kvm->users_count); /*oops if kvm == NULL */
 }
 EXPORT_SYMBOL_GPL(kvm_get_kvm);

Signed-off-by: nixiaoming <redacted>
No.  It's simply a precondition that kvm != NULL in this case.

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help