Re: WARNING in usb_submit_urb

From: Greg KH
Date: Tue Nov 07 2017 - 11:35:51 EST


On Tue, Nov 07, 2017 at 08:11:13AM -0800, syzbot wrote:
> Hello,
>
> syzkaller hit the following crash on
> 36ef71cae353f88fd6e095e2aaa3e5953af1685d
> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
> compiler: gcc (GCC) 7.1.1 20170620
> .config is attached
> Raw console output is attached.
> C reproducer is attached
> syzkaller reproducer is attached. See https://goo.gl/kgGztJ
> for information about syzkaller reproducers

This is not a crash, you are doing a panic-on-warning, and you send
invalid data to the kernel and it warned about it properly and kept on
working :)

Perhaps maybe not a full WARN_ON() is to be done here?

thanks,

greg k-h