Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2089798ybv; Fri, 21 Feb 2020 08:42:07 -0800 (PST) X-Google-Smtp-Source: APXvYqy/RW0UDziE2oX27C25EUGvUEbt+kkd/IQkCZsKcsIF0jzYvzBP7AZdEsxMR3PRXmbEDs7W X-Received: by 2002:a9d:7ac9:: with SMTP id m9mr27905067otn.80.1582303327308; Fri, 21 Feb 2020 08:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582303327; cv=none; d=google.com; s=arc-20160816; b=jOPN6ndzu/RZ9ej+fTKgn746+tTZnmZrSTfZNNr+IDiV1IvHTZFw4YpTOWnP9/WKFp +aghigeliEJuk7kqFaFQEFxZyweU/AR2iYGyY6SZCBB4zVuP1ghhAAZzgdYVSa5u9/wQ sQDPCnsYkzEHhSNxDFewslWz2PxjzJJU8lSe1HHrCZxbmuQ56N4asR9BeCnZk2i7cnDW 3FE7HSQp8qTlvWiaD63eTxs233Mvgmfddxd6+duh6qKenD34g0jcYuJQFLbV/ieUeKmB OLErn7HzduuCF/HilMeso7VtE2fJiNoTOy7Mqs2OBycOPC5depJhusEeWTYuqYgmTXHs fX2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=UDQEQ2NvxUZiKnRw6m3ClCJdYBLrJjJD2z0DlTbK4AM=; b=dORSqnG1ybFXkXCJGd23sQ7jTTH4UQTZYJulawmlZoe/mCq9ins5IrwUlFeM0sx5RN qx8zNvbyKR5vl06ily2N0hgrEkdyDA9txpCS84vWm3QZjCd9QeEg/O8V0c7FHL0gG/no t0wKyR8E1dduOM6cJxceVkFeaNoKLrlpGEsx9nOqy1hvVV3sOCmO69kuaevizDmRA4Uz 1XlXIlD5AHz/Etz5SF9t0BfNuGwd1Jl0336jVnBR2h56o4l7zeI/ERS08EGxKW/PQXzK 32rpxrbVjiJrc2KzaBfHykGIKHmZd5g/gcQ7IkSEsGNpPkUwhJuegZPLPiIS/z1f4j/i USiA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t26si1600481otq.264.2020.02.21.08.41.54; Fri, 21 Feb 2020 08:42:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbgBUQl3 (ORCPT + 99 others); Fri, 21 Feb 2020 11:41:29 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:54178 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726758AbgBUQl3 (ORCPT ); Fri, 21 Feb 2020 11:41:29 -0500 Received: (qmail 4340 invoked by uid 2102); 21 Feb 2020 11:41:28 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 21 Feb 2020 11:41:28 -0500 Date: Fri, 21 Feb 2020 11:41:28 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: syzbot cc: andreyknvl@google.com, , , , , , Subject: Re: WARNING in dummy_free_request In-Reply-To: <000000000000058a87059f1882b9@google.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Feb 2020, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit: 7f0cd6c7 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=17b58e5ee00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f10b12ae04e03319 > dashboard link: https://syzkaller.appspot.com/bug?extid=55ae006e0a1feae5aeab > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > Unfortunately, I don't have any reproducer for this crash yet. > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+55ae006e0a1feae5aeab@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 19332 at drivers/usb/gadget/udc/dummy_hcd.c:679 dummy_free_request+0x6c/0x80 drivers/usb/gadget/udc/dummy_hcd.c:679 > Kernel panic - not syncing: panic_on_warn set ... > CPU: 1 PID: 19332 Comm: syz-executor.5 Not tainted 5.6.0-rc1-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:dummy_free_request+0x6c/0x80 drivers/usb/gadget/udc/dummy_hcd.c:679 > Code: c5 75 22 e8 26 06 96 fd 48 89 ef e8 3e 54 be fd 5b 5d e9 17 06 96 fd e8 12 06 96 fd 0f 0b 5b 5d e9 09 06 96 fd e8 04 06 96 fd <0f> 0b eb d5 48 89 ef e8 08 ae be fd eb c2 66 0f 1f 44 00 00 41 56 > RSP: 0018:ffff8881c9eafdd8 EFLAGS: 00010016 > RAX: 0000000000040000 RBX: ffff8881d0d5aa10 RCX: ffffc900012a0000 > RDX: 000000000000012f RSI: ffffffff83a95c1c RDI: ffff8881d4d501c8 > RBP: ffff8881d0d5aa00 R08: ffff8881d0f9b100 R09: ffffed103b666a84 > R10: ffffed103b666a83 R11: ffff8881db33541b R12: 0000000000000212 > R13: ffff8881ca832008 R14: 0000000000000000 R15: ffff8881ca832180 > raw_ioctl_ep_disable drivers/usb/gadget/legacy/raw_gadget.c:814 [inline] > raw_ioctl+0x1281/0x19e0 drivers/usb/gadget/legacy/raw_gadget.c:1031 Andrey: This could be a bug in your raw_gadget driver. This particular WARN is triggered when a gadget driver tries to call usb_ep_free_request() for a request that is still in flight. Alan Stern