Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2463840yba; Mon, 15 Apr 2019 12:11:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAZCxlQeiZuoY6wbIoSNBYi0JwD7UohRtcCozw5uRv4K/C7AhEcW+uEFPJ7q5sl40CBCLm X-Received: by 2002:a63:550d:: with SMTP id j13mr71346652pgb.18.1555355466674; Mon, 15 Apr 2019 12:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555355466; cv=none; d=google.com; s=arc-20160816; b=s9EjKfs7hytqotQ+25ssOm/k2+YZ1l47wpgunn+YZr8DMwZUsmM5Sbv8v/xZ+EfAi4 aOd1pmLKM7HDizKqBvghcMy5/g46RmcGTR5Zela0fF33q/NUJiPpqVI3Y50yFoW74h4+ 1KYXypZtVc9A4f1o66iCNNtn9712OyKw8E+8EDlLVyJIOSO80Iq3XFsLLI00VgzPyDr6 bdNVkncxMBTd0yvFxnkqAd4d4TzU3w6M6m2q3aGjm092cXn183jVe6YixvSLYOZNam4N 1fcs7LCXniI76Y+htRjNsr8UKBqxOPhDGr3RCsibeF/tzCGdSK+DzxsMAFdUOUzyQSwp aLaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aRL5JnE3xW3G0+6vkDdP15KG2WT6c3Pbuk+42IPHXqM=; b=RuP4QGViwt0H7YmR+eagmHmpwY+vOmbjUE5xzPwTKIOk1JCUpjdEhyirVE+kRr/mnH PhlyahskEUOGShIW/I5Q9rKvZPEFdKhl7tRIpLGJ/6B2mc6HEgwMHCQLwcB6HgpTa7aC tEHgiFof/rPpCA6SnfVN6PIF+aZMoANE9v3ZzVp72SqkQ/LdXMf/41oSt5VToJ6/ZDF0 8LxjmaVaFLbm/IEdBcL9pxYRzPdMCrTs3mP8bggu0FQJi7PXpbVYqebDxGsuyTzpZ2wM EhXHDbhXPrn71FlP/+N00kUHjgMO8ktqCVs0RE5f90MEOnHrM3m7dMH4KVhOoR5E6TUx Ad6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="DTCr/Ml7"; 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 ci5si42232587plb.145.2019.04.15.12.10.50; Mon, 15 Apr 2019 12:11:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b="DTCr/Ml7"; 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 S1730749AbfDOTJb (ORCPT + 99 others); Mon, 15 Apr 2019 15:09:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:45206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730729AbfDOTJ1 (ORCPT ); Mon, 15 Apr 2019 15:09:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E530D20651; Mon, 15 Apr 2019 19:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355366; bh=A7Ui/SD/tqefETsYaRJrobK3ObaTe4rAJ6g3oyvZqXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DTCr/Ml7g0KoEp39f+ctkw1lvhI24TEp0zVUGUY3TaO6U4VgELUToLvjdme6OlmY2 BcLK6veJrICOeuyY1mJ9IS1bLRfBOgHINcD5bzuqsmkhjZClihE3bdUvoLSPt4i4rJ sYP8HOm6K6RfXKH1KFj5wN/2kJ4yUhm2wNsWEP/8= Date: Mon, 15 Apr 2019 21:00:54 +0200 From: Greg Kroah-Hartman To: Andrey Konovalov Cc: "Gustavo A. R. Silva" , Alan Stern , Kernel development list , USB list , syzkaller-bugs Subject: Re: INFO: task hung in usb_kill_urb Message-ID: <20190415190054.GA10359@kroah.com> References: <0000000000006f1596058653d991@google.com> <52ac871b-ac61-432e-3a85-47b8e97233d2@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52ac871b-ac61-432e-3a85-47b8e97233d2@embeddedor.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 01:39:57PM -0500, Gustavo A. R. Silva wrote: > > > On 4/15/19 12:48 PM, Andrey Konovalov wrote: > > On Fri, Apr 12, 2019 at 9:46 PM Alan Stern wrote: > >> > >> Andrey: > >> > >> It's really hard to tell just what's going on here. > >> > >> On Fri, 12 Apr 2019, syzbot wrote: > >> > >>> Hello, > >>> > >>> syzbot found the following crash on: > >>> > >>> HEAD commit: 9a33b369 usb-fuzzer: main usb gadget fuzzer driver > >>> git tree: https://github.com/google/kasan/tree/usb-fuzzer > >>> console output: https://syzkaller.appspot.com/x/log.txt?x=14c4c1af200000 > >>> kernel config: https://syzkaller.appspot.com/x/.config?x=23e37f59d94ddd15 > >>> dashboard link: https://syzkaller.appspot.com/bug?extid=d919b0f29d7b5a4994b9 > >>> compiler: gcc (GCC) 9.0.0 20181231 (experimental) > >>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14410dbb200000 > >>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f0acd3200000 > >>> > >>> IMPORTANT: if you fix the bug, please add the following tag to the commit: > >>> Reported-by: syzbot+d919b0f29d7b5a4994b9@syzkaller.appspotmail.com > >>> > >>> usb-fuzzer-gadget dummy_udc.0: failed to start USB fuzzer: -22 > >>> usb-fuzzer-gadget dummy_udc.0: failed to start USB fuzzer: -22 > >>> usb-fuzzer-gadget dummy_udc.0: failed to start USB fuzzer: -22 > >>> usb-fuzzer-gadget dummy_udc.0: failed to start USB fuzzer: -22 > >>> usb-fuzzer-gadget dummy_udc.0: failed to start USB fuzzer: -22 > >>> INFO: task kworker/0:2:532 blocked for more than 143 seconds. > >>> Not tainted 5.1.0-rc4-319354-g9a33b36 #3 > >>> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > >>> kworker/0:2 D26656 532 2 0x80000000 > >>> Workqueue: usb_hub_wq hub_event > >>> Call Trace: > >>> schedule+0x8f/0x180 kernel/sched/core.c:3562 > >>> usb_kill_urb drivers/usb/core/urb.c:695 [inline] > >>> usb_kill_urb+0x22a/0x2c0 drivers/usb/core/urb.c:687 > >>> usb_start_wait_urb+0x257/0x4d0 drivers/usb/core/message.c:63 > >>> usb_internal_control_msg drivers/usb/core/message.c:101 [inline] > >>> usb_control_msg+0x321/0x4a0 drivers/usb/core/message.c:152 > >> > >> It looks like something is stuck waiting for usb_kill_urb() to finish. > >> But what happened before that? > > > > This crash is somewhat special. It happens quite often during USB > > fuzzing, but at the same time it's a hang, which makes it a bit harder > > debug. I initially thought that is somehow related to my custom USB > > fuzzing kernel patches, but then I saw that someone else hit this > > issue while doing USB fuzzing in a completely different way that > > doesn't require kernel modifications. So it might be an actual issue > > in the kernel. > > > > The full console output is provided by the syzbot, but I guess it's > > not very useful in this case. I've just made sure that this issue is > > manually reproducible, so we can easily retest it with debug patches > > (syzbot should be also able to do that via the syz test command). Or > > is there a way to turn on some verbose mode to see some USB debug > > messages? > > > >> > >> I can't tell from the reproducer source, because it uses a bunch of > >> special stuff you added in your usb-fuzzer tree. > >> > >> Alan Stern > >> > > > > I understand, for now I guess the simpler way to debug this is to run > > the reproducer. I'll write you and Greg a separate email regarding all > > that special stuff that I added. > > > > Hi Andrey, > > Please, CC me on that email too. Please cc: all of linux-usb@vger.kernel.org, no need to keep anything private. thanks, greg k-h