Re: WARNING in usbhid_raw_request/usb_submit_urb (2)

From: Alan Stern
Date: Fri Jan 03 2020 - 12:01:47 EST


On Fri, 3 Jan 2020, syzbot wrote:

> Hello,
>
> syzbot has tested the proposed patch and the reproducer did not trigger
> crash:
>
> Reported-and-tested-by:
> syzbot+10e5f68920f13587ab12@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> Tested on:
>
> commit: ecdf2214 usb: gadget: add raw-gadget interface
> git tree: https://github.com/google/kasan.git
> kernel config: https://syzkaller.appspot.com/x/.config?x=b06a019075333661
> dashboard link: https://syzkaller.appspot.com/bug?extid=10e5f68920f13587ab12
> compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> patch: https://syzkaller.appspot.com/x/patch.diff?x=177f06e1e00000
>
> Note: testing is done by a robot and is best-effort only.

Andrey:

Clearly something strange is going on here. First, the patch should
not have changed the behavior; all it did was add some log messages.
Second, I don't see how the warning could have been triggered at all --
it seems to be complaining that 2 != 2.

Does the reproducer really work?

Alan Stern