All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Konovalov <andreyknvl@google.com>
To: syzbot <syzbot+db339689b2101f6f6071@syzkaller.appspotmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	ingrassia@epigenesys.com, LKML <linux-kernel@vger.kernel.org>,
	USB list <linux-usb@vger.kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	syzkaller-bugs <syzkaller-bugs@googlegroups.com>
Subject: Re: WARNING in usbhid_raw_request/usb_submit_urb (3)
Date: Thu, 2 Apr 2020 17:57:00 +0200	[thread overview]
Message-ID: <CAAeHK+wpZ3t-1WFr9Tyt51HFP+m=umFz_=EKcNAGif1Ekyf=gQ@mail.gmail.com> (raw)
In-Reply-To: <000000000000c3793205a250cb6a@google.com>

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

On Thu, Apr 2, 2020 at 5:53 PM syzbot
<syzbot+db339689b2101f6f6071@syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot has tested the proposed patch and the reproducer did not trigger crash:
>
> Reported-and-tested-by: syzbot+db339689b2101f6f6071@syzkaller.appspotmail.com
>
> Tested on:
>
> commit:         0fa84af8 Merge tag 'usb-serial-5.7-rc1' of https://git.ker..
> git tree:       https://github.com/google/kasan.git
> kernel config:  https://syzkaller.appspot.com/x/.config?x=6b9c154b0c23aecf
> dashboard link: https://syzkaller.appspot.com/bug?extid=db339689b2101f6f6071
> compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> patch:          https://syzkaller.appspot.com/x/patch.diff?x=143c2c63e00000
>
> Note: testing is done by a robot and is best-effort only.

Let's try this once again, maybe the reproducer is extremely unreliable.

#syz test: https://github.com/google/kasan.git 0fa84af8

[-- Attachment #2: usb.patch --]
[-- Type: text/x-patch, Size: 789 bytes --]

Index: usb-devel/drivers/usb/core/urb.c
===================================================================
--- usb-devel.orig/drivers/usb/core/urb.c
+++ usb-devel/drivers/usb/core/urb.c
@@ -475,8 +475,9 @@ int usb_submit_urb(struct urb *urb, gfp_
 
 	/* Check that the pipe's type matches the endpoint's type */
 	if (usb_urb_ep_type_check(urb))
-		dev_WARN(&dev->dev, "BOGUS urb xfer, pipe %x != type %x\n",
-			usb_pipetype(urb->pipe), pipetypes[xfertype]);
+		dev_WARN(&dev->dev, "BOGUS urb xfer, pipe %x != type %x, ep addr 0x%02x, pipe 0x%x, xfertype %d\n",
+			usb_pipetype(urb->pipe), pipetypes[xfertype],
+			ep->desc.bEndpointAddress, urb->pipe, xfertype);
 
 	/* Check against a simple/standard policy */
 	allowed = (URB_NO_TRANSFER_DMA_MAP | URB_NO_INTERRUPT | URB_DIR_MASK |

  reply	other threads:[~2020-04-02 15:57 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-14 13:04 WARNING in usbhid_raw_request/usb_submit_urb (3) syzbot
2020-04-01 20:49 ` syzbot
2020-04-02 15:35   ` Alan Stern
2020-04-02 15:53     ` syzbot
2020-04-02 15:57       ` Andrey Konovalov [this message]
2020-04-02 17:22         ` syzbot
2020-04-02 19:00           ` Alan Stern
2020-04-02 21:25             ` syzbot
2020-04-23  1:18               ` Alan Stern
2020-04-23  1:36                 ` syzbot
2020-04-23 16:37                   ` Alan Stern
2020-04-23 17:20                     ` syzbot
2020-04-23 18:54                       ` Alan Stern
2020-04-23 20:37                         ` syzbot
2020-04-23 21:09                           ` Alan Stern
2020-04-23 21:51                             ` syzbot
2020-04-24  1:00                               ` Alan Stern
2020-04-24  1:19                                 ` syzbot
2020-04-24  1:39                                   ` Alan Stern
2020-04-24  2:10                                     ` syzbot
2020-04-24 12:20                                       ` Alan Stern
2020-04-24 12:32                                         ` syzbot
2020-04-24 15:20                                           ` Alan Stern
2020-04-24 15:34                                             ` syzbot
2020-04-24 19:14                                               ` Alan Stern
2020-04-24 19:32                                                 ` syzbot
2020-04-25 20:25                                                   ` Alan Stern
2020-04-25 21:21                                                     ` syzbot
2020-04-29 20:11                                                       ` Alan Stern
2020-04-29 20:30                                                         ` syzbot
2020-04-29 23:41                                                           ` Alan Stern
2020-04-29 23:59                                                             ` syzbot
2020-04-30 14:58                                                               ` Alan Stern
2020-04-30 15:18                                                                 ` syzbot
2020-05-01 20:07                                                                   ` [PATCH] USB: core: Fix misleading driver bug report Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeHK+wpZ3t-1WFr9Tyt51HFP+m=umFz_=EKcNAGif1Ekyf=gQ@mail.gmail.com' \
    --to=andreyknvl@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=ingrassia@epigenesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=syzbot+db339689b2101f6f6071@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.