Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2666814pxk; Sun, 27 Sep 2020 17:28:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7YFcclDSzrFb3iZs2tiLfXoP8atfugdJpFb+9tIKot5y2/YLdx1dF1XM/4A7MnUhI3i+4 X-Received: by 2002:a05:6402:3075:: with SMTP id bs21mr13200856edb.236.1601252932275; Sun, 27 Sep 2020 17:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601252932; cv=none; d=google.com; s=arc-20160816; b=eWjLXOFJbmSZK9MBtnBovS1WdI96SjZ0PdaESI5/YIGmjSzRpjrojt7TYb93ajHQqG qLioG0hTHskJJjztQsFjR88zMm/jzKgxsYT0XnzVWUnksPJYQV4rhHv2v+ilenfPBCUr gkI6WnZWDLqUyy1fVIeEss+VDJxtThtjLdh09G8jiGe4AnDc7ciJKkAg5c7YeAam8+iF WI/R0pijKGdl1bUcMDsCnsamSOg/NhabaRuoMU4U9pXheX67EVQ5JTMeKwKqgY8V9Wbj l0O7YAn+pEWswKFAcG9QeEUyCIl+TKqr4RsCI5Z5ecjRXYSNYMgGIOw15xSJfaxXz9Go n4rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/MvoLZK8efZkEs3Cs4il336c/7TK9EopbZZCi/HLMqI=; b=ema/0MXpEz/KR1IXoFey2vi8mUCTdOahe2rvvszS9lVxRnvMpwL8aW/2lQ100dZVAS 2/xbRl+mC8xt9VkXHzlM6ZsPAPQSjii/jdsbnWkZV/AQnW0bRdeQfd/lc6/vYovTqEBm KxxHNClqPBxzuhdFv8KRd1j8wcD6H6qTZaqqGa9teumTbCBFUjTVgzmMbBa7nlg1vuPz h9u45hxD4KrS7q73mmtFZv4/36KEt8LayDTqh5U3eJ2FE7e2yONQLBdX+1JxIg186iPQ pdq9YltF8ktwZmIpNkaX4ztiCXG90v0Z/49ntqra1vBLMLnPw8p2q6ei7NzGI6nllFS3 9WLQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gc10si6371935ejb.614.2020.09.27.17.28.15; Sun, 27 Sep 2020 17:28:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726444AbgI1AZP (ORCPT + 99 others); Sun, 27 Sep 2020 20:25:15 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:51903 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbgI1AZO (ORCPT ); Sun, 27 Sep 2020 20:25:14 -0400 Received: from fsav105.sakura.ne.jp (fsav105.sakura.ne.jp [27.133.134.232]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 08S0Ojt1060573; Mon, 28 Sep 2020 09:24:45 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav105.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav105.sakura.ne.jp); Mon, 28 Sep 2020 09:24:45 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav105.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 08S0OjNX060563 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Sep 2020 09:24:45 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH v2] lockdep: Allow tuning tracing capacity constants. To: Dmitry Vyukov , Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Andrew Morton , LKML , syzkaller 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> From: Tetsuo Handa Message-ID: <72b034b7-f9ff-c744-5307-6fd84f38ae26@i-love.sakura.ne.jp> Date: Mon, 28 Sep 2020 09:24:44 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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". I think that "not detecting lock related problems introduced by new patches" costs more than "postpone fixing lock related problems in existing code".