Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp306546ybl; Fri, 9 Aug 2019 06:21:29 -0700 (PDT) X-Received: by 2002:a17:902:ab83:: with SMTP id f3mr19007167plr.122.1565356859087; Fri, 09 Aug 2019 06:20:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+Dl5VPMnApHVe5ojLDy5SM6B82+qTJw6L/MawjIkihacW1bS9vQu8wmLnHYpHMUIVQR40 X-Received: by 2002:a17:902:ab83:: with SMTP id f3mr19007098plr.122.1565356858314; Fri, 09 Aug 2019 06:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565356858; cv=none; d=google.com; s=arc-20160816; b=AB4QsDKekBreJvoT81uOW+nQ4THdisYklos+g2RyEfPtfrHxYoISink3mRwBnsLE6M kZ5OJ55I8iQrzslGC/j2f4f1XUicIR6/7YEGf2WleEoq8XNIaGL7G6DsprX5aMa44ccz dn6QU3fstmKcAjP70QPbhBstU3Rl5xJwwfYa3dGx9ROx0Cj3MZyysLgrKmdBxIFDJM7y Ke+C4jA38tCQfA1gAZbVpPAagPM8lrB0p1fGDV8wWuhxF6Ho5AmEVpGZmzLQkAZ39lxP lWVe3bDKAo47IxOgjo2aa66IyNSeCSiv++N5gzb7NWWivFSdpeoo9/HFt6ekn2SNJIVJ yFIA== 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:date :mime-version; bh=nWHe0S+V90Nx6X3NKPT0jWYFZ1rMcSIf8jk+Kp2biVo=; b=bwEnaK/7KKyR5IbtwpXK7iYv1RizFrLuBiG5pTT0KDmREIwdXDCwxXpBJtzNH+FR63 02SvgF29BDmDyQRYpsBsHOh1lpsggh3ImNDOsL7+yZDxNV/aeynOQYN+aM79cguAuDlq 2k37LYOsDOSymAlSotaIsexTRDFZQ74ngkFAYrS50Y64OP05xUrYD/AahZj/8luat2Ur ZWcvYuVRFK4TMWdx3P4Fs7HjPHsClLyE2xckuLYKASGn+FIjNX44WaFSzOFrH+PeNqQL QwoyOSm+8ahDW6vkGWfZ4UFCrKjp8NAVc0uLSwfT8NnzJaq/hVhkaQz4tTKQGWOvs9T4 NotQ== 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 v11si4483718pjn.44.2019.08.09.06.20.41; Fri, 09 Aug 2019 06:20:58 -0700 (PDT) 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 S2436467AbfHINS0 (ORCPT + 99 others); Fri, 9 Aug 2019 09:18:26 -0400 Received: from mail-ot1-f71.google.com ([209.85.210.71]:55441 "EHLO mail-ot1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406863AbfHINSI (ORCPT ); Fri, 9 Aug 2019 09:18:08 -0400 Received: by mail-ot1-f71.google.com with SMTP id p7so68712043otk.22 for ; Fri, 09 Aug 2019 06:18:07 -0700 (PDT) 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:message-id:subject:from:to; bh=nWHe0S+V90Nx6X3NKPT0jWYFZ1rMcSIf8jk+Kp2biVo=; b=d8QA12E+msG7nLFKbRcsOdajcESh4lhWPhQuYXh6WHQCr76epFoFu2KKvhWrAM1byp Lem1raww6yCRHuIdacRHDUBduFwPUnoY6ERAGZkeP+W5J2UnQ5rUSNhs9uUDq+Z50Vs0 qHulv1w8IFIrfiXZbunm3SR98+62g0m8aon1YC2lcUfvtQW/wJAv9XYWyfHymVeS3u+B CJjVNgTevPF3vGhp1EeN/OhPNjKze+NbSzulKSMPoeQBu7ej9ZNotHeqvbZGw+ksYftq qRSQGgNfrP5uke3Q39qYYPe4Md9ywvf/vUVLmqggGBjVH8tSvlDTU0SDMyAoR6uP9lYn o3GQ== X-Gm-Message-State: APjAAAVPCAoQunsfzo4y+44+wl6bfF2ZvGdy72aatxRnaRtcUMHDwJOe 3w1rr0UAbEHTlH+cOeQVMQFUQMYizsBH4BaA7bOk5y62U64L MIME-Version: 1.0 X-Received: by 2002:a05:6602:104:: with SMTP id s4mr20896182iot.200.1565356687343; Fri, 09 Aug 2019 06:18:07 -0700 (PDT) Date: Fri, 09 Aug 2019 06:18:07 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004bcc0d058faf01c4@google.com> Subject: WARNING in em28xx_usb_disconnect From: syzbot To: andreyknvl@google.com, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-usb@vger.kernel.org, mchehab@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 Hello, syzbot found the following crash on: HEAD commit: e96407b4 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=15ef3cba600000 kernel config: https://syzkaller.appspot.com/x/.config?x=cfa2c18fb6a8068e dashboard link: https://syzkaller.appspot.com/bug?extid=b7f57261c521087d89bb compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16ceae36600000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12816f26600000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+b7f57261c521087d89bb@syzkaller.appspotmail.com usb 1-1: USB disconnect, device number 2 em28xx 1-1:1.153: Disconnecting em28xx #1 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 12 at kernel/workqueue.c:3031 __flush_work.cold+0x2c/0x36 kernel/workqueue.c:3031 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.3.0-rc2+ #25 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xca/0x13e lib/dump_stack.c:113 panic+0x2a3/0x6da kernel/panic.c:219 __warn.cold+0x20/0x4a kernel/panic.c:576 report_bug+0x262/0x2a0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x12b/0x1e0 arch/x86/kernel/traps.c:272 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:291 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1026 RIP: 0010:__flush_work.cold+0x2c/0x36 kernel/workqueue.c:3031 Code: 9a 22 00 48 c7 c7 20 e4 c5 85 e8 d9 3a 0d 00 0f 0b 45 31 e4 e9 98 86 ff ff e8 51 9a 22 00 48 c7 c7 20 e4 c5 85 e8 be 3a 0d 00 <0f> 0b 45 31 e4 e9 7d 86 ff ff e8 36 9a 22 00 48 c7 c7 20 e4 c5 85 RSP: 0018:ffff8881da20f720 EFLAGS: 00010286 RAX: 0000000000000024 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8128a0fd RDI: ffffed103b441ed6 RBP: ffff8881da20f888 R08: 0000000000000024 R09: fffffbfff11acd9a R10: fffffbfff11acd99 R11: ffffffff88d66ccf R12: 0000000000000000 R13: 0000000000000001 R14: ffff8881c6685df8 R15: ffff8881d2a85b78 flush_request_modules drivers/media/usb/em28xx/em28xx-cards.c:3325 [inline] em28xx_usb_disconnect.cold+0x280/0x2a6 drivers/media/usb/em28xx/em28xx-cards.c:4023 usb_unbind_interface+0x1bd/0x8a0 drivers/usb/core/driver.c:423 __device_release_driver drivers/base/dd.c:1120 [inline] device_release_driver_internal+0x404/0x4c0 drivers/base/dd.c:1151 bus_remove_device+0x2dc/0x4a0 drivers/base/bus.c:556 device_del+0x420/0xb10 drivers/base/core.c:2288 usb_disable_device+0x211/0x690 drivers/usb/core/message.c:1237 usb_disconnect+0x284/0x8d0 drivers/usb/core/hub.c:2199 hub_port_connect drivers/usb/core/hub.c:4949 [inline] hub_port_connect_change drivers/usb/core/hub.c:5213 [inline] port_event drivers/usb/core/hub.c:5359 [inline] hub_event+0x1454/0x3640 drivers/usb/core/hub.c:5441 process_one_work+0x92b/0x1530 kernel/workqueue.c:2269 process_scheduled_works kernel/workqueue.c:2331 [inline] worker_thread+0x7ab/0xe20 kernel/workqueue.c:2417 kthread+0x318/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This bug is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches