Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2773572pxk; Sun, 27 Sep 2020 22:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUJS2k2to4nxxfywFBxGq9zxHYXr2+XglE6CBbIBsPkj15w8oeE0JF54l2BQ3bBC5/7xVS X-Received: by 2002:aa7:d144:: with SMTP id r4mr13893012edo.303.1601270150823; Sun, 27 Sep 2020 22:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601270150; cv=none; d=google.com; s=arc-20160816; b=rlAXlGlNftRmTh+mYCnT1ZKcDbBr92XxSKQqjOaACyyvdx45e8l+Nox/rnHpTb0u+1 wzGyzh/eyb2ZaG8Hae2SVxBrteKAIBZFOAhprsaGxd04tjgeiPG9rzIa+us5E5fXKT42 MWFOJwdwjaUheIFzPXrtPtk8xY10yBtFPq24PX4ANwcehJhpP8n7/m76xs76kCUQojEk RINzAGeAizuotxLbb1A3Y/vtB1BE01CfFWOwyKblk7wKeIXMhZeWZmrYZ2yoxtCOKe4a lvapKsqypoEgscsFEzOXN5Dv7IS7LkxZuQT8AWDV7d8cjQrSQZCU3LnBwQJS6gdeko+S H69A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VlMjWdTSP4HviN0so4jvAwCqJvrMDP53UXwYxfndYEI=; b=AxapHwsP5X9bUGSRq062KEmbVBHSpdq339k3Hd6oWzS7lexMhBaxwSUyMjuTwxqQ8c +YM8CZWUXmODuNBFe1Cr5RXZiiRO/W+6QaLKkWFhhV7+8Fgzw1Nf9swmaHXLTxoaotzY tT3AYelpDBfUZEfSNeVVZ/CknOdezBtE52wwTL5lbzxcwQ7YBPhEp/Ef1pZjppgaaEu1 1nuqlSGCeI9j+GYe3N96S1n2PJRVA8xaZ9ZIhoazw/Hx+4sIRyrFC+ofog4SsxfVBoes YDLe65LthB8W+r72sp2JvJdO0ahBOKUiiDhUVbOMxoLzehti6qhDyMI5qs14h/Tbetxq dw8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Dn/d+8Gl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g23si6993831edm.130.2020.09.27.22.15.26; Sun, 27 Sep 2020 22:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Dn/d+8Gl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725308AbgI1FMN (ORCPT + 99 others); Mon, 28 Sep 2020 01:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725287AbgI1FMN (ORCPT ); Mon, 28 Sep 2020 01:12:13 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44AD9C0613CE for ; Sun, 27 Sep 2020 22:12:13 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id r8so7202484qtp.13 for ; Sun, 27 Sep 2020 22:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VlMjWdTSP4HviN0so4jvAwCqJvrMDP53UXwYxfndYEI=; b=Dn/d+8GlDku+z+Zg/e84kp9PvTrhxJpf8eqvrZ+AUb/OotOcg11WcaGmRwn1I6zDTu QAvvS4GIuJ5SkBHKgfiAGpCHL9LSsxd9PsTOOITZtvo26UfRf2RuuLdb2bGRt4+rUi1o f0FQFOQ0EowmS0Tvy0SlWe/3ql5U+hVBK2Pprl6psYxi7gzonC0KDWSxLib/a8xDFu43 6L5ppe19G8hAsPQWY/o30smk9F/F6h6zEvyfoqvaVbu6JFR0LoAtn2X7+zqr3AJeZL9u PTG8y9g1UsybnkyWy+zl/QdPXVYugrM+xTlRySkvlCzJm91bCzIUwT9Oe5MzvRWBm/JU Lu1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VlMjWdTSP4HviN0so4jvAwCqJvrMDP53UXwYxfndYEI=; b=kxtpe7YWJFbPj5qyQ+MBEIBg2WhHJ+gWEFcu4UmgK0NsQTadjHA7ln+aHULx4mJaJz lal9NL3UL03U0hcSrJ/IFGHplFzOm5YiHTkvB05ep1A1gXePvQ2UvNfHS77UaDC1HnGZ Msj/d3gr7QceOWEXJYg0eAUxNrVyk01LKpqK083UYTGtbDDSPbuU5CYv5LIIGZBTjZ8c YywtoGeq9Or9zWFANlvYajLviABbaqU2RUL0D6gsfSzBf74a+Ic0Bx2gqIolKKwGoLFj zvtUhD+od/1pBlvaS0KGL65IL0wxCXtvEhb1Oh57NE6lXRutGyJ0rEAtZSiYCjcUS9SG yzoA== X-Gm-Message-State: AOAM532iSl5ejkoskGHBhB2QmFlDDsyPiX4KVdz9aQdy49dppnLdEpOO Fgkny8E3MczuvaBkmiNwkmRgtjEhe7qULWweTTdL/A== X-Received: by 2002:ac8:5215:: with SMTP id r21mr10885089qtn.257.1601269931666; Sun, 27 Sep 2020 22:12:11 -0700 (PDT) MIME-Version: 1.0 References: <1595640639-9310-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <384ce711-25c5-553b-8d22-965847132fbd@i-love.sakura.ne.jp> <0f7233f7-a04a-e9c9-7920-3a170cc97e4b@i-love.sakura.ne.jp> <20200916115057.GO2674@hirez.programming.kicks-ass.net> <72b034b7-f9ff-c744-5307-6fd84f38ae26@i-love.sakura.ne.jp> In-Reply-To: <72b034b7-f9ff-c744-5307-6fd84f38ae26@i-love.sakura.ne.jp> From: Dmitry Vyukov Date: Mon, 28 Sep 2020 07:12:00 +0200 Message-ID: Subject: Re: [PATCH v2] lockdep: Allow tuning tracing capacity constants. To: Tetsuo Handa Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Andrew Morton , LKML , syzkaller Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 2:24 AM Tetsuo Handa wrote: > > On 2020/09/16 21:14, Dmitry Vyukov wrote: > > On Wed, Sep 16, 2020 at 1:51 PM wrote: > >> > >> On Wed, Sep 16, 2020 at 01:28:19PM +0200, Dmitry Vyukov wrote: > >>> On Fri, Sep 4, 2020 at 6:05 PM Tetsuo Handa > >>> wrote: > >>>> > >>>> Hello. Can we apply this patch? > >>>> > >>>> This patch addresses top crashers for syzbot, and applying this patch > >>>> will help utilizing syzbot's resource for finding other bugs. > >>> > >>> Acked-by: Dmitry Vyukov > >>> > >>> Peter, do you still have concerns with this? > >> > >> Yeah, I still hate it with a passion; it discourages thinking. A bad > >> annotation that blows up the lockdep storage, no worries, we'll just > >> increase this :/ > >> > >> IIRC the issue with syzbot is that the current sysfs annotation is > >> pretty terrible and generates a gazillion classes, and syzbot likes > >> poking at /sys a lot and thus floods the system. > >> > >> I don't know enough about sysfs to suggest an alternative, and haven't > >> exactly had spare time to look into it either :/ > >> > >> Examples of bad annotations is getting every CPU a separate class, that > >> leads to nr_cpus! chains if CPUs arbitrarily nest (nr_cpus^2 if there's > >> only a single nesting level). > > > > Maybe on "BUG: MAX_LOCKDEP_CHAINS too low!" we should then aggregate, > > sort and show existing chains so that it's possible to identify if > > there are any worst offenders and who they are. > > > > Currently we only have a hypothesis that there are some worst > > offenders vs lots of normal load. And we can't point fingers which > > means that, say, sysfs, or other maintainers won't be too inclined to > > fix anything. > > > > If we would know for sure that lock class X is guilty. That would make > > the situation much more actionable. > > > > Dmitry is thinking that we need to use CONFIG_LOCKDEP=n temporary until lockdep > problems are resolved. ( https://github.com/google/syzkaller/issues/2140 ) > > But I think it is better to apply this patch (and revert this patch when it became > possible to identify if there are any worst offenders and who they are) than using > CONFIG_LOCKDEP=n. > > CONFIG_LOCKDEP=n causes "#syz test" request to cause false response regarding locking > related issues, for we are not ready to enforce "retest without proposed patch > when test with proposed patch did not reproduce the crash". FWIW patch testing for previously reported bugs should still work because it uses the kernel config associated with the bug report. > I think that "not detecting lock related problems introduced by new patches" costs > more than "postpone fixing lock related problems in existing code".