Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp984518pxj; Fri, 14 May 2021 23:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9SH6jVQdk3WjKwL5nszTIvaXoaC6vmaqEKr45jnr+w0/luv5CbdPHGd5ID/UKzYMm7L3o X-Received: by 2002:a6b:630c:: with SMTP id p12mr31846808iog.124.1621061097125; Fri, 14 May 2021 23:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621061097; cv=none; d=google.com; s=arc-20160816; b=GVUMo36ookjFFn5Rbfkm4H2I7eKbtHTgLjEbw5mmaLELKxlLU1s3Ews8dmTL2IqcOs 9eLXJGAqq0kf35Yf7ikqSwj9mCp9hMdO5WungUwaO+JtLJh8js/JKoiRbPOzfUDSroZJ nD8U06Bl5qeo1m8fqiuBlnjSRGMBCqae0+N0e/fcm6YPcS2Ad4uuYYXUEuWFFnnUysSt BApH20yZUqKgS1V9FVW5NfpAZxCQiOdjCCtmc9xVBvWZywQuirgy5Xw+v54xnmJ+qjF9 tZ2r00QcZogU8+5b2w+Pbz5LmUl7rXYbqIZaZ/NrrnN8zkPOCPpi3r0PcoZXe7I0hmJq hHYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:from :references:in-reply-to:cc:to:subject:dkim-signature; bh=4Aj3Hn/Ab05PL29sTHkKVf9z76S19KL7h4dk2AQuwq8=; b=YYbIBKJL2Q4KDPs8Knw9sArArnNVjIfrQRhLweoAduqFWsDu+3wYcQbmNLWIlpzyIA buDTG2GCDA/i08tUAvfjRK2hiHKpBUNP8V7i2Xa42o9T3SEYSv0+7D6BOED9QfsKSSsO Wkf46DqUf/Huu2z9ubjBQgKeu7EJZSCeeNEKZ4yasgjfD5VU5BHm1wAXh32PUtif3aS/ P2tpAlq+WCBeR3D8iNpcoTsh+aK35g0Qk4/pDOgsIBsSeaJEUphiTqPdDUrlK8z34SLn Z+iW1uZcu18WwHt2VV+eBF5BjZT/QQAS2vNHISGHxiGAzM/48qPoavVuoWaAix+XnX7L f13A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jAL5X6A8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si10313525jao.7.2021.05.14.23.44.42; Fri, 14 May 2021 23:44:57 -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=@gmail.com header.s=20161025 header.b=jAL5X6A8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233374AbhENSX6 (ORCPT + 99 others); Fri, 14 May 2021 14:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232976AbhENSX6 (ORCPT ); Fri, 14 May 2021 14:23:58 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69C6C061574 for ; Fri, 14 May 2021 11:22:46 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id c13so335304pfv.4 for ; Fri, 14 May 2021 11:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:in-reply-to:references:from:mime-version:content-id :date:message-id; bh=4Aj3Hn/Ab05PL29sTHkKVf9z76S19KL7h4dk2AQuwq8=; b=jAL5X6A8XQBSGFtmDTzuws24As6O0mocq82MKaf6rbuWJKOiU2QVhSiOdbUysBOXeQ YBS2nlE9udGS2YLJ/dImfKJh8y9Wu0TH+vx/cQOp+c91ySTtx4UaGB29BbM1ZoKiFb0Z iIkYBAhRludCW6E6cN8Zibj6qCm8o1wkLSWQQp1RaBCdo5JVJKhoMAUGyk9rI6Hr2DrD yQBE3LRijDJADZWx8SlZ1Lzf8EuB9P0yxwOamj2LiIPgUz0DWXt51+0MhJeaqEG7Oxta hkPoYtazZWY47/JRfyikrXVqH9g2IAjChte67fn67woJMRsukYqgANonlbQuSLYa1QMd Zw5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:in-reply-to:references:from :mime-version:content-id:date:message-id; bh=4Aj3Hn/Ab05PL29sTHkKVf9z76S19KL7h4dk2AQuwq8=; b=dtfLG84CYVQ5VP42svBrE/dYhs+uclSy3GI5G+ICoq8UKIeI5ouW/9QDhqzhQuUcAk jgOtCa6Ye+vtr2FNDpI25tB3JvHBacGMXBsZPjTk7dl26Tc19dhSZy8f7mLQXIA+C0IP GP2wUtKX+gjBAH4jZKTACMwTQnG7QLxjpJ54ymbxdUOrl3gM4OK0eNaKcnwKpTKvTLoA MIdIf8MdoJofm0k2O1aoVTLHcdHFNP2OFmTfg4wgXiho4ZDMNmAO4mO+VVsBMjEL7hQE hIQ1aSDXfHgQVrqGAhKemG5X0pbI/9OUA53gBQ7lSx0bPIUVscn+ywUZRkdhgoowZdww dNYg== X-Gm-Message-State: AOAM533Kaxgv48LPNJigSsjFRovL8Kr0B22zU33cXFeq7EIxSvZ3ByeJ HGnZDICPt4bfgm2JFHiGIdsW4Y96h3Y= X-Received: by 2002:a63:ff48:: with SMTP id s8mr2290861pgk.132.1621016566357; Fri, 14 May 2021 11:22:46 -0700 (PDT) Received: from jrobl (h219-110-108-104.catv02.itscom.jp. [219.110.108.104]) by smtp.gmail.com with ESMTPSA id x9sm4610878pfd.66.2021.05.14.11.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 11:22:46 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=jrobl) by jrobl id 1lhcSS-0005BY-Q8 ; Sat, 15 May 2021 03:22:44 +0900 Subject: PATCH: Re: LOCKDEP customizable numbers upper limit To: Tetsuo Handa Cc: linux-kernel@vger.kernel.org, peterz@infradead.org In-Reply-To: References: <30795.1620913191@jrobl> From: hooanon05g@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19934.1621016564.1@jrobl> Date: Sat, 15 May 2021 03:22:44 +0900 Message-ID: <19935.1621016564@jrobl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tetsuo Handa: > Please submit a patch that avoids only BUILD_BUG_ON(). Here it is. J. R. Okajima ---------------------------------------- commit 43e103e1a5975c61334811d16e207e6d0ac57b77 Author: J. R. Okajima Date: Sat May 15 03:17:10 2021 +0900 LOCKDEP: upper limit LOCKDEP_CHAINS_BITS CONFIG_LOCKDEP_CHAINS_BITS value decides the size of chain_hlocks[] in kernel/locking/lockdep.c, and it is checked by add_chain_cache() with BUILD_BUG_ON((1UL << 24) <= ARRAY_SIZE(chain_hlocks)); This patch is just to silence BUILD_BUG_ON(). See-also: https://marc.info/?l=linux-kernel&m=162091320503900&w=2 Cc: Tetsuo Handa Cc: Peter Zijlstra Signed-off-by: J. R. Okajima diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 678c13967580e..999ed5aa6bcee 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1390,7 +1390,7 @@ config LOCKDEP_BITS config LOCKDEP_CHAINS_BITS int "Bitsize for MAX_LOCKDEP_CHAINS" depends on LOCKDEP && !LOCKDEP_SMALL - range 10 30 + range 10 21 default 16 help Try increasing this value if you hit "BUG: MAX_LOCKDEP_CHAINS too low!" message.