Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2564780pxu; Sun, 18 Oct 2020 07:09:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIbqiLoYHjB0CYYa90v/eN0JHJAWquTLmf94i7pQG7ljkWAsKMi7IINNOkjKmYfh3CVikX X-Received: by 2002:a17:906:354e:: with SMTP id s14mr12918509eja.192.1603030199025; Sun, 18 Oct 2020 07:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603030199; cv=none; d=google.com; s=arc-20160816; b=TLnuyTw9h/u4KcMeu8OU3SNj+j6rnYHI5ERuC2mDa+4h/T1qi3wWuASmICeKKsRxHf 8VkkG134/yokyzmjrVRk6TSiRLBcg4IAzjwTDbPgzRjlQ3PJm+7hpFKt/xYAHMqfvpDD X0ziR7Z89Bc9f14xyI0I5FsQnR0lxKB0OBKiF5xkHv/cV5q0YkPmVJjSDJJdvo+MOfDh Y84j9n3UWeEvQsRyYNPKbgd0J9RNfT6I4f8j3K0Ec6uQq+w5amIDNEFCVkM6stRpKN2v TO4+tpMKR2xForO8Y/+15FDeVbYGSAuqyNCAH6GXZmqZLZz9RlRWUbdZKOS2HdsWVFME JhGw== 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=mBRmstCmWoTYENW23GTyMord9yqdCpIF8UQ7pv4jhvY=; b=yleZvMyAg3uyrCDQkStiRTRFlnFjbzIx63gkjmWrFMW9lOVUrtztXFzruP3TTnkCsz 3nBGzCx42GxX61KBL5ixV9IVB7tOYMA0IaovOMjxVdUx9paJD2zEY6Uk54ZIOyK42HrU LrvbobibH7D2FNzow+DCyffrl2QdLrIccX6hiKkoGX/nbMO3uVcGclDVxsOn7cInfT3d AOqaT369RiDHgwP/81KI71oa8UhP5GvHaFETQAi2MJRSbMaWgZgE4CBjvH0yO//TQTrB dmFgsSxl1c0UKNfCSE54xvzOoZdg3BR4NIp8/auqDhqv9FcoVFd/dOBzi4Kq5R4T4g+4 bSnA== 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 u10si5600862edd.315.2020.10.18.07.09.36; Sun, 18 Oct 2020 07:09:59 -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 S1726551AbgJRNDA (ORCPT + 99 others); Sun, 18 Oct 2020 09:03:00 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:53657 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbgJRNC7 (ORCPT ); Sun, 18 Oct 2020 09:02:59 -0400 Received: from fsav102.sakura.ne.jp (fsav102.sakura.ne.jp [27.133.134.229]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 09ID2Uma037582; Sun, 18 Oct 2020 22:02:30 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav102.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav102.sakura.ne.jp); Sun, 18 Oct 2020 22:02:30 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav102.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 09ID2M1L037395 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Oct 2020 22:02:30 +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> Message-ID: <6933e938-f219-5e13-aee6-fe4de87eb43e@i-love.sakura.ne.jp> Date: Sun, 18 Oct 2020 22:02:19 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <0eb519fa-e77b-b655-724a-4e9eecc64626@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, 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(-)