Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp339159pxb; Wed, 18 Nov 2020 06:02:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl4olSonIWWhxjnQBN4IvJMbKtBRdIivxWReV/i8T8tx+dOh89SKlPzWCg7AblkmMqEhLM X-Received: by 2002:a17:906:37cb:: with SMTP id o11mr2817708ejc.10.1605708146737; Wed, 18 Nov 2020 06:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605708146; cv=none; d=google.com; s=arc-20160816; b=SJlS1X8BMSjvKA9SBc/10iz0akmZkKvbnMozvnaEBP/uqQ5q7NmDZosael5LxTbKK5 6tbQyhj/LLz5oLfvr27YE/qnK1brwWhKJ3fNpuenQ2MlhJnroQ0uZ2eyBvTaLijgNESw ga6bdG3Qt5Rt3H+9WVD7MDWC+rdeQD0GM01LRE7v06Dol/XyOe3IBWezrcSgWDMMhbmB yrfhM7Z8flgQPHk/V7gIy4fWRH5Dzz3F4wGkUJZCJcIG6HaZMZ2MkZXTVRBDTiyoufrB NMlLEQlRhU7ueav0xO4/ffkvZh2iJs/6B8E8yEG1FWCBYp9Ouq6cPEu1YMZ+BkFIOu4P HSHg== 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:references:cc :to:from:subject; bh=LMd6oIHflqcB8ZfwZ1Af9idrOnpTQyncafXtlIteLB8=; b=bs3NLoD2bqzxZxoHYF/OP7XGqRzGxlgwFlbB8YA2pKYhokYpzlbHBl5sFkgsBzmAk8 cTdvgZKbvLDGJC9H4/+gAh1qrxc0AkRH9nVOBT3CHp1sbm7ifELQTOtWmO8coVpEV3mr venf1iS2y1UCo0Wz0levKBsJbyLa1CffseGgqjIgoTGjcm9M+fcp6LF++9LWQvJ7Ts3z w3MFWFsYk52Bmj2ox+eIX06af2r054F567LQ9N04lQHNagoK+RsQxaLE6RZ0is/0MjSA 25IEUNmMgRJGEJIKZupWuhbAQYXQwnMXtCw7Rb+sBLkEPfgdu4bPvJB/SDJO7ywGLD7e RcQw== 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 z20si825980edq.601.2020.11.18.06.02.03; Wed, 18 Nov 2020 06:02:26 -0800 (PST) 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 S1726314AbgKRN5g (ORCPT + 99 others); Wed, 18 Nov 2020 08:57:36 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:57889 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbgKRN5g (ORCPT ); Wed, 18 Nov 2020 08:57:36 -0500 Received: from fsav110.sakura.ne.jp (fsav110.sakura.ne.jp [27.133.134.237]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 0AIDv8Au020864; Wed, 18 Nov 2020 22:57:08 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav110.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav110.sakura.ne.jp); Wed, 18 Nov 2020 22:57:08 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav110.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 0AIDv8Pa020860 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Wed, 18 Nov 2020 22:57:08 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH v3] lockdep: Allow tuning tracing capacity constants. From: Tetsuo Handa To: Peter Zijlstra , Ingo Molnar , Will Deacon Cc: Andrew Morton , linux-kernel@vger.kernel.org, Dmitry Vyukov , Linus Torvalds References: <1595640639-9310-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <384ce711-25c5-553b-8d22-965847132fbd@i-love.sakura.ne.jp> <0eb519fa-e77b-b655-724a-4e9eecc64626@i-love.sakura.ne.jp> <6933e938-f219-5e13-aee6-fe4de87eb43e@i-love.sakura.ne.jp> Message-ID: <81ab0ffd-6e80-c96c-053a-b1b4fe8694c1@i-love.sakura.ne.jp> Date: Wed, 18 Nov 2020 22:57:08 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <6933e938-f219-5e13-aee6-fe4de87eb43e@i-love.sakura.ne.jp> 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 Peter, do you have a plan to make this problem actionable? On 2020/10/18 22:02, Tetsuo Handa wrote: > Peter, what do you think? Can we apply this patch? > > A potential for-now workaround for syzkaller would be to allow syzkaller > not to encounter the BUG: message (by masking BUG: message on the kernel > side) when hitting these limits, for continue testing until the kernel > crashes (due to other bugs like UAF) would be to some degree useful. > > On 2020/10/10 21:58, Tetsuo Handa wrote: >> Since syzkaller continues various test cases until the kernel crashes, >> syzkaller tends to examine more locking dependencies than normal systems. >> As a result, syzbot is reporting that the fuzz testing was terminated >> due to hitting upper limits lockdep can track [1] [2] [3]. >> >> Peter Zijlstra does not want to allow tuning these limits via kernel >> config options, for such change discourages thinking. But currently we >> are not actionable, for lockdep does not report the culprit for hitting >> these limits [4]. >> >> Therefore, I propose this patch again, with a caveat that this patch is >> expected to be reverted after lockdep becomes capable of reporting the >> culprit, for I consider that "postpone fixing lock related problems in >> existing code" is less painful than "not detecting lock related problems >> introduced by new patches". >> >> [1] https://syzkaller.appspot.com/bug?id=3d97ba93fb3566000c1c59691ea427370d33ea1b >> [2] https://syzkaller.appspot.com/bug?id=381cb436fe60dc03d7fd2a092b46d7f09542a72a >> [3] https://syzkaller.appspot.com/bug?id=a588183ac34c1437fc0785e8f220e88282e5a29f >> [4] https://lkml.kernel.org/r/CACT4Y+agTiEF-1i9LbAgp-q_02oYF0kAPZGAAJ==-wx2Xh7xzQ@mail.gmail.com >> >> Reported-by: syzbot >> Reported-by: syzbot >> Reported-by: syzbot >> Signed-off-by: Tetsuo Handa >> Acked-by: Dmitry Vyukov >> --- >> kernel/locking/lockdep.c | 2 +- >> kernel/locking/lockdep_internals.h | 8 +++--- >> lib/Kconfig.debug | 40 ++++++++++++++++++++++++++++++ >> 3 files changed, 45 insertions(+), 5 deletions(-)