Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp38701rdb; Mon, 14 Aug 2023 08:54:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXzHxD8VBKYgD57Ha64t+m8BO0jCyqyTZTcJNJIQ46V0bn8IYNIODS1/UE/srsMpxqR4K2 X-Received: by 2002:a05:6a00:1402:b0:687:5fdb:59ee with SMTP id l2-20020a056a00140200b006875fdb59eemr9140574pfu.12.1692028443353; Mon, 14 Aug 2023 08:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692028443; cv=none; d=google.com; s=arc-20160816; b=0864aT2+4GTMN54WDP5bzFM07onC89nPq8daNRI/6t6bzh3QCUFXyec4fUAHsboopx ZFPIN9b6k6CntjIr7hhCgNEUY9AHBaDJcVibmzCtem0oa3pvFFL8u+53CUdVpsfw9z0A K1RL97FGGU96URkET52nlHIFz73wshqG5+HOmbQrdvB3dA3qbWesKt0aMeYp4yErXQIU e+BmObpR/gFIIhHO4blxPv9StblsLD05z7KC6B56fSg2k+XlNj+Scn81v3uRan+25Txt 6g5mrYtB0lSm+txkQbFLZAW7TExgb6S6+WAwhoHjiuwspZazXh4RZlzEUDBX4zEcjQ9F ktOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0ZCRqZIZ+9R/YAsCdB/+Blpu9sk8S1vh2WqxU66lNdw=; fh=MdPRW+x0MCkSji7gNkWwlVOwE9M2/erV5NoDEfF3spY=; b=ZqPWfcjvQ8iq5sJ1Pbh9KKfbV+woJN1Vr2M5IrkHfhlLJR/PZqUkdOSQJZIVIYI8Ag cFqj8fR1evIyc0RhF7XcPL6FN5/cZQVONfNYG666xcZe52w2npa7nzf/afhTSVNvUk81 sgVfWD1NCLRwYp3akaaCGrOsx0yFZ/yL/jY7SRUgmluYISeAxyGGaSJEvVOOqU0IJ/5X gjhxVptazYos2BOAumNArjg2zU5eXLsRBY03zAmEodaefapqQe1azGMRlso+Bn7TMRCZ 7i7bIiTZXHus287ZREkMN7fz0X/xYM2lANBl3D0ew47ryvHD9b/JWwoY7M0T8nawRe8O uTQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nxWWF9OP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h127-20020a636c85000000b005655f9903desi7651259pgc.655.2023.08.14.08.53.41; Mon, 14 Aug 2023 08:54:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nxWWF9OP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbjHNORk (ORCPT + 99 others); Mon, 14 Aug 2023 10:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjHNORb (ORCPT ); Mon, 14 Aug 2023 10:17:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5FDAB; Mon, 14 Aug 2023 07:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0ZCRqZIZ+9R/YAsCdB/+Blpu9sk8S1vh2WqxU66lNdw=; b=nxWWF9OPk64csqFPfAmCcpVPMX gTKX+XuGyf5Y1aR7e5h9mjRfnHXIHHS+KV4d81uxnaH23o+cenkbrgnNGP+C9xge7xWHyL/WgBpp6 C5NZt1EfgEwRnzjDBvb4qwerAscYViOCe7ksGyZWLYp8odLhn357hbyroa3t/DNHFRCsmvIWX+RbX sxpN/UTZx4NtTbzlq5Uyo0VJKBun+utxE+GB1umi6mgEMo3qr6YC8WNCPBA9cwoTZflzfO+qJUZk7 NCBKRb5aMfd58Y2ewN4wtxmILm62qqVF+AuUf235AWPYuUHlB8h8BHEgdDUA65qOLKyi2IhCj4xvI Yhih/Mig==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qVYNb-002PiS-B4; Mon, 14 Aug 2023 14:17:11 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A1B6B300137; Mon, 14 Aug 2023 16:17:10 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 42894202C2248; Mon, 14 Aug 2023 16:17:10 +0200 (CEST) Date: Mon, 14 Aug 2023 16:17:10 +0200 From: Peter Zijlstra To: kernel test robot Cc: Helge Deller , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Andrew Morton , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-parisc@vger.kernel.org, Guenter Roeck , Borislav Petkov Subject: Re: [PATCH] lockdep: Fix static memory detection even more Message-ID: <20230814141710.GL776869@hirez.programming.kicks-ass.net> References: <202308141646.d3160c77-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202308141646.d3160c77-oliver.sang@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 14, 2023 at 09:40:42PM +0800, kernel test robot wrote: > > > Hello, > > kernel test robot noticed "BUG:key#has_not_been_registered" on: > > commit: 94d4413e506da48ea18f1cc982202874d35c76b1 ("[PATCH] lockdep: Fix static memory detection even more") > url: https://github.com/intel-lab-lkp/linux/commits/Helge-Deller/lockdep-Fix-static-memory-detection-even-more/20230812-235022 > base: https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-everything > patch link: https://lore.kernel.org/all/ZNep5EcYskP9HtGD@p100/ > patch subject: [PATCH] lockdep: Fix static memory detection even more > > in testcase: boot > > compiler: gcc-12 > test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G > > (please refer to attached dmesg/kmsg for entire log/backtrace) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-lkp/202308141646.d3160c77-oliver.sang@intel.com > > > > [ 0.575811][ T1] BUG: key b35c282c has not been registered! > [ 0.576580][ T1] ------------[ cut here ]------------ > [ 0.577216][ T1] DEBUG_LOCKS_WARN_ON(1) > [ 0.577236][ T1] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:4888 lockdep_init_map_type+0x155/0x250 > [ 0.578389][ T1] Modules linked in: > [ 0.578856][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.5.0-rc4-00587-g94d4413e506d #2 > [ 0.595653][ T1] __kernfs_create_file+0x6a/0xe0 > [ 0.596244][ T1] sysfs_add_bin_file_mode_ns+0x4e/0xc0 > [ 0.596891][ T1] sysfs_create_bin_file+0x5c/0x90 > [ 0.597496][ T1] ? nsproxy_cache_init+0x30/0x30 > [ 0.598090][ T1] ksysfs_init+0x5c/0x90 Problem seems to be __ro_after_init. Your patch only considers is_kernel_core_data(), which seems to not include these other fancy data sections we have.