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

2017-08-22 Thread Alex Williamson
On Tue, 22 Aug 2017 15:39:04 +0200 Paolo Bonzini wrote: > On 22/08/2017 03:07, 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 > > >

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

2017-08-22 Thread Alex Williamson
On Tue, 22 Aug 2017 15:39:04 +0200 Paolo Bonzini wrote: > On 22/08/2017 03:07, 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: > > int

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

2017-08-22 Thread Paolo Bonzini
On 22/08/2017 03:07, 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: > int irq_bypass_register_producer(struct irq_bypass_producer *producer) > { >

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

2017-08-22 Thread Paolo Bonzini
On 22/08/2017 03:07, 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: > int irq_bypass_register_producer(struct irq_bypass_producer *producer) > { >

[PATCH] virt/lib avoids oops by adding parameter checking

2017-08-21 Thread nixiaoming
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: int irq_bypass_register_producer(struct irq_bypass_producer *producer) { if (!producer->token) /* oops if producer ==

[PATCH] virt/lib avoids oops by adding parameter checking

2017-08-21 Thread nixiaoming
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: int irq_bypass_register_producer(struct irq_bypass_producer *producer) { if (!producer->token) /* oops if producer ==