Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13750401ybl; Sun, 29 Dec 2019 19:54:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyX5ohAVp4c6S02nYnzomS6z8tbq9mv9ILsVS9ue8Foz+9R5RF5mT7PnJO9YX6VVThADQmL X-Received: by 2002:a9d:10b:: with SMTP id 11mr66128969otu.222.1577678055786; Sun, 29 Dec 2019 19:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577678055; cv=none; d=google.com; s=arc-20160816; b=uVpTExgAi201dHpaDZCIpADOKgy7ufvb/W62OSSfm8iIswXWFD8oVfluKP/UcugUMJ QOTQ1Vw4T1FVY7ki0BnacDAkzLJTPCvPN02WJXy6JIpGOJ8e0RkBhmpj4T3K9TNdEhsS JbAqZ4BSwglZ4riwDkaJ5+LLooRzBBbB8NF9WnWOptEBVHOZVfEBKY1w25ZIms4N+VXQ RzVDH31VYMu19RYyR6CNv9mJnC0BgxbHBdp3Z+lqbSeGOD2LPD1gLFzErDrvbl+9Di5O qVHAfPlV4mUUf4VUIyChW2f39PJtlzvlb/yehO9CsgqofHI9pxzbpWDEb4QQ7FqLkKyQ is1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version; bh=QFH+qW3J/16INYjNRxXbTehCb50b/OjjpTQl6yL7Mgw=; b=Cfo2jLZ51KnxHHAXt94GtVYggImBIWTUsLnkmOPkMFq6L1/Hn+ehw9q9rpJgRog9Nl 2w7WNjtTFneyMcLmg3P5wen6nSYInDtfg3CUhLQBmxVhSLo4VvoDCoHZfb1AQkAmo0Ti VOyNdWIQTUGHtfFT3l7JrrBojQWG7tOJceZKD5og7qNYyLmIuU5HT4Sv7fDYMr2MFico Xtx44ziW0uwx/rQ5PiUduFPsAMwGfh7x4qjPB2NbVthNuBvPu46k/tsybAikhMgVcHuW YjpWLbCY3ROIFCjC27i7VtiRQNy+4aD2lEvDpi0ydVK5zDZTDsaaT6ILx20GtEEnVJ55 mkaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si21131902oto.255.2019.12.29.19.54.03; Sun, 29 Dec 2019 19:54:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727138AbfL3DxM (ORCPT + 99 others); Sun, 29 Dec 2019 22:53:12 -0500 Received: from mail-il1-f198.google.com ([209.85.166.198]:47750 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbfL3DxM (ORCPT ); Sun, 29 Dec 2019 22:53:12 -0500 Received: by mail-il1-f198.google.com with SMTP id x69so28315485ill.14 for ; Sun, 29 Dec 2019 19:53:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=QFH+qW3J/16INYjNRxXbTehCb50b/OjjpTQl6yL7Mgw=; b=XBhR7poFWvmXrU9JJq5yCAscTSvCs2pt5qkLKhP7N1J3Q0XfXvjdSH5N10QEmHfFlL llUCf1XH/UgiOFRgsX0jt9adIHnTcdLleKAl5Tw1s6N1x3MV4MkfO0UnOfM5vPXc+2sw 0p0K37SPx5Hv/llxiSs8sixn7KmdXgEOWt+JEoiXl3HSaWYob0muuyci3kC4rurMIrm+ ubwREOmuz1z34EQul87aX78okfb4JF0eVyAaQrvskh+zhbxcunl3+j8hifsQvj7ZhcMr CofGbZ/HxPCRJs1ttoqLW5W/HsK/3UsjO/t9MC9LpQTQR/ENLzexlkIoaCyZsPJo3UoS 2pGw== X-Gm-Message-State: APjAAAU3dFs13BTYDkPOgGwKc8Ys0a667c5VowifK5LJXiNSbaX/H6+2 NJGtNWlhynNC2wdRwyUkE1aF+7WWeBCOFniG8YtO6ZyOWgat MIME-Version: 1.0 X-Received: by 2002:a02:9503:: with SMTP id y3mr49704411jah.14.1577677991682; Sun, 29 Dec 2019 19:53:11 -0800 (PST) Date: Sun, 29 Dec 2019 19:53:11 -0800 In-Reply-To: <000000000000e906be059580f8cd@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000043a9a3059ae3c8ef@google.com> Subject: Re: WARNING in usbhid_raw_request/usb_submit_urb (2) From: syzbot To: andreyknvl@google.com, gregkh@linuxfoundation.org, gustavo@embeddedor.com, ingrassia@epigenesys.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following crash on: HEAD commit: ecdf2214 usb: gadget: add raw-gadget interface git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=17416885e00000 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) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13598885e00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+10e5f68920f13587ab12@syzkaller.appspotmail.com ------------[ cut here ]------------ usb 1-1: BOGUS urb xfer, pipe 2 != type 2 WARNING: CPU: 0 PID: 2388 at drivers/usb/core/urb.c:478 usb_submit_urb+0x1188/0x13b0 drivers/usb/core/urb.c:478 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 2388 Comm: syz-executor.0 Not tainted 5.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 panic+0x2aa/0x6e1 kernel/panic.c:221 __warn.cold+0x2f/0x30 kernel/panic.c:582 report_bug+0x27b/0x2f0 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:174 [inline] fixup_bug arch/x86/kernel/traps.c:169 [inline] do_error_trap+0x12b/0x1e0 arch/x86/kernel/traps.c:267 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:usb_submit_urb+0x1188/0x13b0 drivers/usb/core/urb.c:478 Code: 4d 85 ed 74 2c e8 78 90 e7 fd 4c 89 f7 e8 70 2c 1d ff 41 89 d8 44 89 e1 4c 89 ea 48 89 c6 48 c7 c7 80 59 15 86 e8 20 ad bc fd <0f> 0b e9 20 f4 ff ff e8 4c 90 e7 fd 4c 89 f2 48 b8 00 00 00 00 00 RSP: 0018:ffff8881cf197b30 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81295dad RDI: ffffed1039e32f58 RBP: 0000000000000000 R08: ffff8881cfe6b100 R09: fffffbfff11f1ebe R10: fffffbfff11f1ebd R11: ffffffff88f8f5ef R12: 0000000000000002 R13: ffff8881da370d80 R14: ffff8881d01e90a0 R15: ffff8881cfe18e00 usb_start_wait_urb+0x108/0x2b0 drivers/usb/core/message.c:57 usb_internal_control_msg drivers/usb/core/message.c:101 [inline] usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:152 usbhid_set_raw_report drivers/hid/usbhid/hid-core.c:917 [inline] usbhid_raw_request+0x21f/0x640 drivers/hid/usbhid/hid-core.c:1265 hid_hw_raw_request include/linux/hid.h:1079 [inline] hidraw_send_report+0x296/0x500 drivers/hid/hidraw.c:151 hidraw_write+0x34/0x50 drivers/hid/hidraw.c:164 __vfs_write+0x76/0x100 fs/read_write.c:494 vfs_write+0x262/0x5c0 fs/read_write.c:558 ksys_write+0x127/0x250 fs/read_write.c:611 do_syscall_64+0xb6/0x5c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a919 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f181187dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a919 RDX: 0000000000000002 RSI: 0000000020000040 RDI: 0000000000000007 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f181187e6d4 R13: 00000000004cbe90 R14: 00000000004e5ce0 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..