Re: [PATCH] usb: core: Null deref in kernel with USB webcams.

From: John Boero
Date: Thu Nov 12 2020 - 13:15:24 EST


Then why does line 278 right below it check for NULL?

On Thu, Nov 12, 2020 at 5:56 PM Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, Nov 12, 2020 at 05:13:30PM +0000, John Boero wrote:
> > Yes the patch is backwards sorry. Testing alt proposal from
> > stern@xxxxxxxxxxxxxxxxxxx. It may be a buggy driver
> > but it would be nice if a buggy driver couldn't bring down
> > the entire usb core. lsusb hangs until reboot or reset of usb.
>
> buggy kernel drivers can do anything, including deleting the contents of
> your disk. We don't protect the kernel from itself, sorry :)
>
> good luck!
>
> greg k-h