From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 909D0C5AD49 for ; Fri, 6 Jun 2025 16:10:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BEDFD6B0089; Fri, 6 Jun 2025 12:10:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B9E966B008C; Fri, 6 Jun 2025 12:10:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADB8C6B0092; Fri, 6 Jun 2025 12:10:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 922F86B0089 for ; Fri, 6 Jun 2025 12:10:11 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3E92BB5383 for ; Fri, 6 Jun 2025 16:10:11 +0000 (UTC) X-FDA: 83525462622.29.9AB7346 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf17.hostedemail.com (Postfix) with ESMTP id 6511440016 for ; Fri, 6 Jun 2025 16:10:08 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MfcE1e0w; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1749226209; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ItengYAvCVdGFq12SFyI3mdolJtJyJOKxDI8VF3XyaI=; b=z9OrDJIj6wvF1R7g7y/pMTwjYdFLnxoTtdLVz3wPoDWAF1KMYkU4JvSkRhFk0w5oI7D8NY TirjE83vLGvy0L1+tNVQ0ZqJsAhl2G5cYjOQdoY+sOxxC5tjFUCkVhVIw/a0UzEbVlg0Ry ZsNupmuQ5pTbtAXKaTUwLNtjcNrGoV0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1749226209; a=rsa-sha256; cv=none; b=15NMJ761gtRoen14OIdL/crcPNbX8IlfITeiokQpxeLKIshagh1F4y8wWsFlyV2v3UZo6r U9scTNeUt6T+P5McFbJ3arIz6ccd/tH+i9IfHHxTILudWvVhXYHK8uZw7NhpLy5tJDhM7E hha9p3GJ4kxT86ff6x9hJFZ9NSi0yUc= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MfcE1e0w; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749226208; x=1780762208; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+IX4WKBZZKukb5l31BrwLrifavSSKeTEFgSJhIO2aPo=; b=MfcE1e0w6noVM2/SzF2itiCdURMUZzX6fNhQw9xDw/Appaa/oslCe6IR IHfOOkvoQCGUeNgupdJmMbrC2Z06wCGVBZxF09fJHZZAcW9Myq6PjFYlw VVAbBVUJ2s8gou1oFhCeR6Oj0WxNlFoxrJ7iGEz6qCN9B1S+m/POXl2vm qkdRZdaZKNLH0cib+VSCUUguKZJ6mf1flqBLeGTpUzsK4cZXrn0FUcmuA nCgtOO5T/ZrgwzlhqZKWFe2iyE2PLAUIUU21Si/xXmiJ3bDCPqN1mtmSD DEB+g0tWs2lT8pyi9ciedav7zJrOJBnDleQ+nGPtYDUF5hwREqy8aBHcL A==; X-CSE-ConnectionGUID: tZ1BaLYSSC6658MPKZkrOg== X-CSE-MsgGUID: 8vnzJ6XwTIO2MiWApTVSXA== X-IronPort-AV: E=McAfee;i="6800,10657,11456"; a="76777626" X-IronPort-AV: E=Sophos;i="6.16,215,1744095600"; d="scan'208";a="76777626" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2025 09:10:07 -0700 X-CSE-ConnectionGUID: nyWXBveVRTC3UmUgbte1Lg== X-CSE-MsgGUID: JZH4q7TNQBStGKrcbMx7Sg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,215,1744095600"; d="scan'208";a="145798292" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 06 Jun 2025 09:10:02 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uNZdo-00056d-2U; Fri, 06 Jun 2025 16:10:00 +0000 Date: Sat, 7 Jun 2025 00:09:04 +0800 From: kernel test robot To: Pavel Tikhomirov , Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Kees Cook , Joel Granados , Andrew Morton Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Konstantin Khorenko , Denis Lunev , Aleksandr Mikhalitsyn , Pavel Tikhomirov , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel@openvz.org Subject: Re: [PATCH] locking: detect spin_lock_irq() call with disabled interrupts Message-ID: <202506062318.7g54PAh3-lkp@intel.com> References: <20250606095741.46775-1-ptikhomirov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250606095741.46775-1-ptikhomirov@virtuozzo.com> X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 6511440016 X-Stat-Signature: 6xzp6zddw1esb117miax5ionhxc53uku X-Rspam-User: X-HE-Tag: 1749226208-95547 X-HE-Meta: U2FsdGVkX19hNMFfZsEWOfDCPEA80zizwe+IA5ROLPVfKnpnOJBIu6HBtQkd/ZL50CSab4MFSgGjSOXtYDjpwKKEhQfXimXqpGyKzidgc01r0gqeNcJZkEgl3eUjQejD+zBJN5paHuKp/rLdnTfBnU4vCZDicBj/OswTbfH4MxFp7KS1ZpADaq5DSl1AfNKoiePdIWMl/BtzgHBB1rTtzUVd9RCMF+IRttLN7ctBH++tXdFulyjimi2FIZBKsW4WbFhqGz9u5UCs2v2wZOIOH+RqzIGQEKNsOEimzTWQRrd1tkJV7etaL0F8r1nXZx5NuNXsXTK1p2LSY1ME3l0ElS+p+I/gz6qUU6BgfLJ8EqrVe3V6FcAyVn8ENkUHcluR0a30C2BF+ED243EqE1ohKNGSDCm4glJaBxYwqpcUMCLqVs0xy9PeYJImbor+12ExQdGscmNpBFEekNd7J6iyJDppTvJ32RDl0psdShjpK4U6HnHobIuiaXu1yEbTgNpxmp/HjOGRutHacuSYJRcPe+O2JhQyYXLa48kjU6eXH0XCUV1J+8H/j1xbtgPj4J8J+6OzugswoOcRxv3taKg9vuCPlYiljOjzh5TE+qZAfndki2XTgHSzOC9R1yEefJc6b5uC7JR8D/QVWb36pnaSXxCfx/vYFQxSaM3JKLYJd7bozojzbErj80NA0kltiJx4BIDQ2XFdRH80g7OYk+6022LLiVZvLMBKYECHW2qEEupJ/ow3xQxmryjtKmFdOhNsC7KsmwrgCu+SpJjtX4fRz8gXMgRo0EEyO9Ayr6gm3Ba0AIZgac5B/zilgEj8wcY47dwDB4/MyhDa1Il3/oHs69Zo1FmV5l8mub5EUXYMBtEgBw+GsCvQoUFQp35z16oU0CgE1qCqtydomhgJbZ3+gEAqABS0G8voIxBpL8joU7vebsWrtpqxQ6O6X8iXuHo/2s9qYe4aT9rlCtB+bHk umxdtu0m vxbRszP2rHf6M6nkImj9xk0RRQ3h9Pb67RuuqcSHnIxEMKlktBczMzwwsRywwKmWaFvgvvaiEm9JTGL3v9P6iooasVg79mOYGTqAOcnQNiOv0AVXzsO+2sf9ED0uIeyexk4sqBsb/W+vrA4xRHRNJtTQzCsYaDR8N3W046mRfZnXx1p8girEvHNTUtt6EV36ru6UMUZui1G7brycQhguJ6aPJXIyS2wACrPvSIhLEL3IeNDnoyJoXvsQwjNuNcUOPe3WaP65STHAh7/BsTLRervLR4Ewx905tpoOUVHUhstxGFvjqfo+vbckwBQfCfSw6hVjtlgxHLUJRjxLAXmNaOfFGZ5qZ9kqhJ/m0DTXAXjUjK9yC9n3+PLt3rkNBu2Qo7vMbCJjED+1zEwnGjvhojHB+hf5w5UTIBapfUKMY9Lag3it2iDIldeqJDTl9cSUZveMADkTlV/xNrokkVeDfaxPRCIgpt0HtTBx6PQvG57oVF7KTDAtnVZpiBeJgLhf1nxe8lW+h0yeQ/GUcru6VCAQx6Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Pavel, kernel test robot noticed the following build errors: [auto build test ERROR on tip/locking/core] [also build test ERROR on sysctl/sysctl-next akpm-mm/mm-nonmm-unstable tip/master linus/master v6.15 next-20250606] [cannot apply to mcgrof/sysctl-next tip/auto-latest] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Pavel-Tikhomirov/locking-detect-spin_lock_irq-call-with-disabled-interrupts/20250606-175911 base: tip/locking/core patch link: https://lore.kernel.org/r/20250606095741.46775-1-ptikhomirov%40virtuozzo.com patch subject: [PATCH] locking: detect spin_lock_irq() call with disabled interrupts config: riscv-randconfig-002-20250606 (https://download.01.org/0day-ci/archive/20250606/202506062318.7g54PAh3-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250606/202506062318.7g54PAh3-lkp@intel.com/reproduce) 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-kbuild-all/202506062318.7g54PAh3-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/mm.h:7, from arch/riscv/kernel/asm-offsets.c:8: >> include/linux/spinlock.h:375:1: warning: data definition has no type or storage class DECLARE_STATIC_KEY_MAYBE(CONFIG_DEBUG_SPINLOCK_IRQ_WITH_DISABLED_INTERRUPTS_BY_DEFAULT, ^~~~~~~~~~~~~~~~~~~~~~~~ >> include/linux/spinlock.h:375:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_MAYBE' [-Werror=implicit-int] >> include/linux/spinlock.h:376:5: warning: parameter names (without types) in function declaration debug_spin_lock_irq_with_disabled_interrupts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/spinlock.h: In function 'spin_lock_irq': >> include/linux/spinlock.h:382:6: error: implicit declaration of function 'static_branch_unlikely' [-Werror=implicit-function-declaration] if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/spinlock.h:382:30: error: 'debug_spin_lock_irq_with_disabled_interrupts' undeclared (first use in this function) if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/spinlock.h:382:30: note: each undeclared identifier is reported only once for each function it appears in >> include/linux/spinlock.h:384:4: error: implicit declaration of function 'static_branch_disable'; did you mean 'stack_trace_save'? [-Werror=implicit-function-declaration] static_branch_disable(&debug_spin_lock_irq_with_disabled_interrupts); ^~~~~~~~~~~~~~~~~~~~~ stack_trace_save include/linux/spinlock.h: In function 'spin_unlock_irq': include/linux/spinlock.h:415:30: error: 'debug_spin_lock_irq_with_disabled_interrupts' undeclared (first use in this function) if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:98: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=2202685202 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1275: prepare0] Error 2 shuffle=2202685202 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2202685202 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 shuffle=2202685202 make: Target 'prepare' not remade because of errors. vim +375 include/linux/spinlock.h 373 374 #ifdef CONFIG_DEBUG_SPINLOCK > 375 DECLARE_STATIC_KEY_MAYBE(CONFIG_DEBUG_SPINLOCK_IRQ_WITH_DISABLED_INTERRUPTS_BY_DEFAULT, > 376 debug_spin_lock_irq_with_disabled_interrupts); 377 #endif 378 379 static __always_inline void spin_lock_irq(spinlock_t *lock) 380 { 381 #ifdef CONFIG_DEBUG_SPINLOCK > 382 if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { 383 if (raw_irqs_disabled()) { > 384 static_branch_disable(&debug_spin_lock_irq_with_disabled_interrupts); 385 WARN(1, "spin_lock_irq() called with irqs disabled!\n"); 386 } 387 } 388 #endif 389 raw_spin_lock_irq(&lock->rlock); 390 } 391 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki