Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5542718ybh; Wed, 7 Aug 2019 07:39:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7qAkEbYawNMY+8314ZSBn3H5dQszG+wQWLDwiMR0j1eoLvnqWwHf+GcMGpmEVrcNDlbwQ X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr8449184plb.283.1565188791299; Wed, 07 Aug 2019 07:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565188791; cv=none; d=google.com; s=arc-20160816; b=HRprHmS5F66fiQzNfOQGzB+HFYClOtJcEnH3rb580u1Q3zwhwtKY5KQltXI4dw/9iL uqLBFsqeBfoYk1IJ7yGAngfiAuFBWMspn24TOIWmYRSNkoXbz00VrawTk33S0PqxRi4I 9wNU5/X4PU9jhR3AKuaxP7CvZKdWNnnehSgXcEoekWhRGOoOee0Q72BKMnugWXR2G1s2 ZRNueaVU21du1P3pN4uxxcWeNdpmT9x9NZZCmE7ahL/OBWz0qM8VpHhCYfvOwsTgyKEK yLFbV7EsAQNUr99fo9gl6Mfg1sKjSmgeHOncRPel+DsfUpH6j4sWen1B1K+wGRoor8hG HJ1A== 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=omw0Qz9NDwuEB8M+2APQkLeHoLxI23HISlb/nYte6Q4=; b=ioeLPlVmGitbsbJCNptkn6+0FMq8RP/NZObQG7DUxbjZn2sG/1PinIXHr8enzdm8XA hbabMExUqHlf6F5X7CBf9r0A3knd5VIbnwHUXdRZ2+olncbAI7JCU5sEfFH9m5w/QKEE aSf58r/29qI24QGVbE/2xXLurO3FjNoLxNv0d/incR5reeVHD0CS70WkGMugKFupEa6T GvCYQOwUnOsiCSHB+HG7dbB671wBKVOhENnYac60yOLEgEANaDNfOWwNH9f7ewjDYClg wMpqlgS0SQIPT2ojD1SJi+8Vcoc26Q/Y6j5CQH2DOeP2DxgxAjs7Kcv4djaqr+SjnkDU /Zdg== 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 l21si28772424pgk.259.2019.08.07.07.39.35; Wed, 07 Aug 2019 07:39:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387888AbfHGOB5 (ORCPT + 99 others); Wed, 7 Aug 2019 10:01:57 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:42412 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S2387739AbfHGOB4 (ORCPT ); Wed, 7 Aug 2019 10:01:56 -0400 Received: (qmail 2128 invoked by uid 2102); 7 Aug 2019 10:01:55 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Aug 2019 10:01:55 -0400 Date: Wed, 7 Aug 2019 10:01:55 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Andrey Konovalov cc: syzbot , Greg Kroah-Hartman , LKML , USB list , Cesar Miquel , , syzkaller-bugs Subject: Re: possible deadlock in open_rio In-Reply-To: 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 Wed, 7 Aug 2019, Andrey Konovalov wrote: > On Tue, Aug 6, 2019 at 9:13 PM Alan Stern wrote: > > > > On Thu, 1 Aug 2019, syzbot wrote: > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit: 7f7867ff 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=136b6aec600000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=792eb47789f57810 > > > dashboard link: https://syzkaller.appspot.com/bug?extid=7bbcbe9c9ff0cd49592a > > > 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+7bbcbe9c9ff0cd49592a@syzkaller.appspotmail.com > > > > > > ====================================================== > > > WARNING: possible circular locking dependency detected > > > 5.3.0-rc2+ #23 Not tainted > > > ------------------------------------------------------ > > > > Andrey: > > > > This should be completely reproducible, since it's a simple ABBA > > locking violation. Maybe just introducing a time delay (to avoid races > > and give the open() call time to run) between the gadget creation and > > gadget removal would be enough to do it. > > I've tried some simple approaches to reproducing this, but failed. > Should this require two rio500 devices to trigger? No, one device should be enough. Just plug it in and then try to open the character device file. Alan Stern > > Is there any way you can test this? > > Not yet. > > > > > Alan Stern