Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2533902pxa; Mon, 3 Aug 2020 19:38:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0nK3/WNZIVbAjJjYhImh22en97Zir0q4D7gUktYq+Rmm4D8UWJvcgMdkt3moR1C1Dyy5o X-Received: by 2002:a05:6402:cb:: with SMTP id i11mr18019264edu.372.1596508685653; Mon, 03 Aug 2020 19:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596508685; cv=none; d=google.com; s=arc-20160816; b=Nw9M2x0lfryWUvB0iMvRGVa1rScj5yQRBwvG9tE543NmlYuIoOnuDYUtlAFRSnm6ET sZVHEhIwkWwKPabbn5CegbYIPgWfaykNhoK+QsmUiDWeVn102MFuzxyjPVKZo1/PcJQV MfSn870jtb1rRykkjDWp1jK4YLyNVGLvjN+BvYFmp7Z6CYooBZeDdffNGFdQKDZjMxbF xLmZbHruRIRb1plUP/hcCjKry9PL6/zZ5/WdwU3kxPmHlWmgDWa0zo1mpVK9gap4EDlK 4rFXYjrDdFyMVOoh1d/CgnYt9DzDz6d6Psmf5NQbZ8Qsyy0wi+PWERHUKX/VBQGX87Gc X1TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=dWp/ltv+hX4KNxg47+M8GFUFKHuwmhuK6guNixSE+MI=; b=XiMIym0vVJ+yehfhwLNrW67clwuKDLoIj3D39UX2vEWIyUvBtaauXfseXzt4o9SBXb I0yFeVZH3qDPKn7O7lypaEXpp/kbGwliURoInXCTxPoMc7smPxDLh0+dKO9Jl8e6zVY6 w2qpcY9e1qqdomHYHKqf9YVjulp8Rn7Um/k8WlQzs3EjK4T35M/j1+aq+Zb8ifi1nDwp 7/3+7Yr2OMr6HnppScqHmTTp0vORkrdgHhs3Z+n9zRriWMFS/ZGwpi3PYGyXauy88ouU DydcMSN2ymAe6LuvarJS6aQqAnCjyVsOwuKXYdprVo7ddjf5T5RPY8ZvPXYAs0k6puxT Lgdg== 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 z12si3600054edp.120.2020.08.03.19.37.43; Mon, 03 Aug 2020 19:38:05 -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 S1728622AbgHDCgh (ORCPT + 99 others); Mon, 3 Aug 2020 22:36:37 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:56346 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbgHDCgh (ORCPT ); Mon, 3 Aug 2020 22:36:37 -0400 Received: from fsav404.sakura.ne.jp (fsav404.sakura.ne.jp [133.242.250.103]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 0742aB5i081843; Tue, 4 Aug 2020 11:36:11 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav404.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav404.sakura.ne.jp); Tue, 04 Aug 2020 11:36:11 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav404.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 0742aBSv081838 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Aug 2020 11:36:11 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH] lockdep: Introduce CONFIG_LOCKDEP_LARGE From: Tetsuo Handa To: Peter Zijlstra , Ingo Molnar , Will Deacon Cc: Dmitry Vyukov , LKML References: <1595640639-9310-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <46674d71-1e41-cb68-ed99-72c25a73dfef@i-love.sakura.ne.jp> Message-ID: <37b60b14-4eb6-36b3-1195-97c2d27b7ed8@i-love.sakura.ne.jp> Date: Tue, 4 Aug 2020 11:36:09 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <46674d71-1e41-cb68-ed99-72c25a73dfef@i-love.sakura.ne.jp> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Peter, Ingo and Will. (Q1) Can we change the capacity using kernel config? (Q2) If we can change the capacity, is it OK to specify these constants independently? (In other words, is there inter-dependency among these constants?) (Q3) Do you think that we can extend lockdep to be used as a tool for auditing locks held in kernel space and rebuilding lock dependency map in user space? On 2020/07/25 14:23, Tetsuo Handa wrote: >> Also somebody may use it to _reduce_ size of the table for a smaller kernel. > > Maybe. But my feeling is that it is very rare that the kernel actually deadlocks > as soon as lockdep warned the possibility of deadlock. > > Since syzbot runs many instances in parallel, a lot of CPU resource is spent for > checking the same dependency tree. However, the possibility of deadlock can be > warned for only locks held within each kernel boot, and it is impossible to hold > all locks with one kernel boot. > > Then, it might be nice if lockdep can audit only "which lock was held from which > context and what backtrace" and export that log like KCOV data (instead of evaluating > the possibility of deadlock), and rebuild the whole dependency (and evaluate the > possibility of deadlock) across multiple kernel boots in userspace.