Received: by 10.213.65.68 with SMTP id h4csp37045imn; Thu, 5 Apr 2018 17:14:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+m1FRwvHZzzLzA8VfvREaZ/USyyoNDu0E8k0h/0CfMMQeysMc6qtgKauAG+zXcmScFiql8 X-Received: by 2002:a17:902:828b:: with SMTP id y11-v6mr24848387pln.69.1522973692211; Thu, 05 Apr 2018 17:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522973692; cv=none; d=google.com; s=arc-20160816; b=XeefmGEbwUOyUAQkGgK9KeWHivI1aMXvEWYJmhNse68FzdGFHUpT2k/KEDS5t5Xuwl urfTMCUwR9u8MObDLymVUw/i1hPzynDS3q34ZAtdTYdYLekMTtTl9GI4oyd8eayqLupz Z2aXS35vEaGv+RLsECuT/vlOjfeV4IrCrwvh6QzEKWmarpuCNT44cBgTayu208h/fS3l Qg6k/GPGXxy+7tpbQAdUsngVeSI37T7D+Psf26mUKh4rUpByObkBYRKXhe4UQWlGDhKS y1H4DCG+cimjTLClv5b+8zMrpLl8arVuv0JPrtTdL26xIJ78B/Xf2sqQggLmnicjjZ8h 2+dA== 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:arc-authentication-results; bh=Do6lIrYKFmaLFjBOpv1YAzyXio3nPRW5MZJqxFc/xjU=; b=tAZBHIpODYiuWkZ8G5NJ5cor3nA4YfK4tCmDFh+gm1d+ZjDYk4qAq5SlbKxuR+Q1ja rv27QiGYytQdMrekUSXTTJQ45ko+Cx/r4ouB/yfjy6v5egZ62hJQDH1CPksgcsn8F46X S3vrpjBk9TsUOcgkqYKm1ZUElEebW2kFJo9ayir6Rbc1CnSn4jHKGMppL8/S2nhRLwhL 9N1GRUNicBrM3MKaER/H8F+ZY3y6UqLFpzq1ExZOIzd+1RQWRvMswPOExT0WJv7Ff1vA EzSirJNSatdCTSyM5e6lRAEuXwvtXvkuPYUCiPv6bKYNX58SNg9whT2MRwAlHwRD48bi kZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AeXobDVn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si6927464plk.51.2018.04.05.17.14.38; Thu, 05 Apr 2018 17:14:52 -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=@google.com header.s=20161025 header.b=AeXobDVn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751442AbeDFANb (ORCPT + 99 others); Thu, 5 Apr 2018 20:13:31 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34959 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbeDFAN3 (ORCPT ); Thu, 5 Apr 2018 20:13:29 -0400 Received: by mail-pf0-f193.google.com with SMTP id u86so9617214pfd.2 for ; Thu, 05 Apr 2018 17:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Do6lIrYKFmaLFjBOpv1YAzyXio3nPRW5MZJqxFc/xjU=; b=AeXobDVn9Iw7DDs8Z7RmJsUnq1SyeQ2hXGk2pFJSxQQIp+6zl7nVTb1fWduVC63Ovq dexYfDfRta2cvBQkMW1yqxLxg9M0Q5L/SPC8igruORdAOFEe9fZ2V+5OCCNg7vJzSNzP 3G+HRt7osTQFlfnvkss1/zJeapfbEeKUEAbCUFCUokLB3bEBKxbYURKJWqIIA+z1Orn5 LHWxis24LZ5pwM9ZGPbR3bxQ6gIOZauSZ6uBA+g/nndOlhXDKVtF2iucKGEIiDeLNHq6 xmqAu4D+xofz8P+8PYoUaY7ZVyUQ7czQjcb6uATHL1gS/XNbRJsSiwOb9P1D60wDYf5e SgXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Do6lIrYKFmaLFjBOpv1YAzyXio3nPRW5MZJqxFc/xjU=; b=TRfKHbglMU7HsnHMMtmyqi6F4HfvQFgWZyQ47c5F4sPRUgwqC8HA5zD4dr0LsrGUVK Ph9fnl2MoC1vap7fBuvl/hBgPV9g41cLtrYn0lECoA/1sD9dB+zJn0CCIz0ztZPNknas 7tCHlJ2oF6GtX9ghQO1MH6tBdCYT4KuO8KPXpyhMbWOQ8KzPm2O0cUHeuCJpUbxvGNBk VhxQSVfDjsTDWWbCQbghhoUL4+gTLGGNtvGKo/kB/pUV1NZsCa/LtjkiGBVlfljATSpt I2ZzCCWa4HkeZebnwhbnlWo7cIqu0abwKuTDLUbuIjNi5qaQV6ygJBgCk6A8BeH6E/k/ kDxw== X-Gm-Message-State: AElRT7EpgQ/q1vr38DMz7hUy12tQDMX3rV++B7SEMED/7V1zK5zUrgmB wPt/hQc1P7zHIoUnJVUVKtDzAw== X-Received: by 10.99.67.199 with SMTP id q190mr16228361pga.365.1522973608294; Thu, 05 Apr 2018 17:13:28 -0700 (PDT) Received: from google.com ([2620:15c:17:3:dc28:5c82:b905:e8a8]) by smtp.gmail.com with ESMTPSA id t14sm16872809pfa.74.2018.04.05.17.13.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Apr 2018 17:13:27 -0700 (PDT) Date: Thu, 5 Apr 2018 17:13:25 -0700 From: Eric Biggers To: Dave Chinner Cc: Matthew Wilcox , "Theodore Y. Ts'o" , Dmitry Vyukov , syzbot , linux-fsdevel , LKML , syzkaller-bugs@googlegroups.com, Al Viro Subject: Re: WARNING in up_write Message-ID: <20180406001325.GA133204@google.com> References: <001a1148578c10e4700568e814eb@google.com> <20180404193504.GA7715@bombadil.infradead.org> <20180405032200.GC22358@thunk.org> <20180405032454.GD9301@bombadil.infradead.org> <20180405223226.GA729@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405223226.GA729@dastard> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 06, 2018 at 08:32:26AM +1000, Dave Chinner wrote: > On Wed, Apr 04, 2018 at 08:24:54PM -0700, Matthew Wilcox wrote: > > On Wed, Apr 04, 2018 at 11:22:00PM -0400, Theodore Y. Ts'o wrote: > > > On Wed, Apr 04, 2018 at 12:35:04PM -0700, Matthew Wilcox wrote: > > > > On Wed, Apr 04, 2018 at 09:24:05PM +0200, Dmitry Vyukov wrote: > > > > > On Tue, Apr 3, 2018 at 4:01 AM, syzbot > > > > > wrote: > > > > > > DEBUG_LOCKS_WARN_ON(sem->owner != get_current()) > > > > > > WARNING: CPU: 1 PID: 4441 at kernel/locking/rwsem.c:133 up_write+0x1cc/0x210 > > > > > > kernel/locking/rwsem.c:133 > > > > > > Kernel panic - not syncing: panic_on_warn set ... > > > > > > > > Message-Id: <1522852646-2196-1-git-send-email-longman@redhat.com> > > > > > > > > > > We were way ahead of syzbot in this case. :-) > > > > Not really ... syzbot caught it Monday evening ;-) > > Rather than arguing over who reported it first, I think that time > would be better spent reflecting on why the syzbot report was > completely ignored until *after* Ted diagnosed the issue > independently and Waiman had already fixed it.... > > Clearly there is scope for improvement here. > > Cheers, > Well, ultimately a human needed to investigate the syzbot bug report to figure out what was really going on. In my view, the largest problem is that there are simply too many bugs, so many are getting ignored. If there were only a few bugs, then Dmitry would investigate each one and send a "real" bug report of better quality than the automated system can provide, or even send a fix directly. But in reality, on the same day this bug was reported, syzbot also found 10 other bugs, and in the previous 2 days it had found 38 more. No single person can keep up with that. You can see the current bug list, which has 172 open bugs, on the dashboard at https://syzkaller.appspot.com/. Yes, the kernel really is that broken. Though, of course most bugs are in specific modules, not the core kernel. And although quite a few of these bugs will end up to be duplicates or even already fixed, a human still has to look at each one to figure that out. (Though, I do think that syzbot should try to automatically detect when a reproducible bug was already fixed, via bisection. It would cause a few bugs to be incorrectly considered fixed, but it may be a worthwhile tradeoff.) These bugs are all over the kernel as well, so most developers don't see the big picture but rather just see a few bugs for "their" subsystem on "their" subsystem's mailing list and sometimes demand special attention. Of course, it's great when people suggest ways to improve the process. But it's not great when people just don't feel responsible for fixing bugs and wait for Someone Else to do it. I'm hoping that in the future the syzbot "team", which seems to actually be just Dmitry now, can get more resources towards helping fix the bugs. But either way, in the end Linux is a community effort. Note also that syzbot wasn't super useful in this particular case because people running xfstests came across the same bug. But, this is actually a rare case. Most syzbot bug reports have been for weird corner cases or races that no one ever thought of before, so there are no existing tests that find them. Thanks, Eric