Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5542964ybh; Wed, 7 Aug 2019 07:40:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUuretlG5S1w3y+OGk4kw9rNIkrr1xI0S7QjuQlmuftGg43eZYZhyzqfuRgJduj3x8ZmJe X-Received: by 2002:a63:2006:: with SMTP id g6mr7854382pgg.287.1565188805663; Wed, 07 Aug 2019 07:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565188805; cv=none; d=google.com; s=arc-20160816; b=upcJAnBo033NoGw4Wod859WJaiGOMBSmoab/opl5eQygk0jHnpOzjMD9uBV34KXOhc WqWaSawDR7BytWbRIqQDToGThI0HIFQeG7vng3E1IMO+hAt5jdY5G0mN6rpRZCtbyAm/ Na5zcBfo95w7NC0gV71QsbgclOn2IcjSIdY7U3/ghOxoQEtzLeoL1nk+W/MBrBKSnTV9 Hk12/+08BMhJSGDCnqhNne+ZCKtibpxByrEg02ZL2ciaW1X7rg+fzD+i+PuwWog74iG/ WhgZ+BkK39x4f/hMzRRYfNtbNk+MXsyIaTbVEYJkDlLNYEatDJAKbJIQJQDQtqSolHll t/bg== 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=ZwYLIwa+OZnqnnWXpfuf0KkRH4kgrgnSLc614JWEldw=; b=rhcPP/fE6vzUTW6xKCVhkYIJom9X52jZEfZktbH9FkfqOZ1200qPEytEY2Ndb/yv5k Kz/2AxsMipbkwB6tY7uO9Qv6rtWsBuuEAFC5gHpMCz2XauhOgvHkTyjESQix6YJZS9lA V29sulq3hhRAzrRcS7rlxRdynPMeOfyhXEdL3J+e1Z5gfHUHxl1FKtt7NEMiZ/S5gBm8 oemzoW1peU76XwAprYz++EhW7m7RdCST+N9ikfdpTtZWLrSWDp7FS/cwKVUNVXUEVfTc yUDqhpjVBbmRBroWgOqy8K8uxg4KM3fw+qfaZ1ZMzp0elNyVvVm0KFQnOHFd6obwqKqV zRNA== 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 72si45018874plc.415.2019.08.07.07.39.50; Wed, 07 Aug 2019 07:40:05 -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 S2387815AbfHGOHR (ORCPT + 99 others); Wed, 7 Aug 2019 10:07:17 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:42466 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726773AbfHGOHR (ORCPT ); Wed, 7 Aug 2019 10:07:17 -0400 Received: (qmail 2698 invoked by uid 2102); 7 Aug 2019 10:07:16 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Aug 2019 10:07:16 -0400 Date: Wed, 7 Aug 2019 10:07:16 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Oliver Neukum cc: syzbot , , , , , , , Subject: Re: possible deadlock in open_rio In-Reply-To: <1565185044.15973.0.camel@suse.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 Wed, 7 Aug 2019, Oliver Neukum wrote: > Am Dienstag, den 06.08.2019, 15:13 -0400 schrieb Alan Stern: > > 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. > > Hi, > > technically yes. However in practical terms the straight revert I sent > out yesterday should fix it. I didn't see the revert, and it doesn't appear to have reached the mailing list archive. Can you post it again? Alan Stern PS: syzbot reported a similar lock inversion problem (involving two mutexes rather than just one) in drivers/usb/misc/iowarrior.c. Probably the two drivers need similar fixes.