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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA980CDB479 for ; Wed, 24 Jun 2026 14:36:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D73036B00A7; Wed, 24 Jun 2026 10:36:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D23136B00A9; Wed, 24 Jun 2026 10:36:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C13786B00AA; Wed, 24 Jun 2026 10:36:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 8E1116B00A7 for ; Wed, 24 Jun 2026 10:36:00 -0400 (EDT) Received: from smtpin22.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 06BAA1A0365 for ; Wed, 24 Jun 2026 14:36:00 +0000 (UTC) X-FDA: 84915055680.22.81B6C46 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf25.hostedemail.com (Postfix) with ESMTP id 18195A0005 for ; Wed, 24 Jun 2026 14:35:56 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=HmIXxOUg; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1782311757; b=XuvUFFm0CT7IwJnZuU6IYOO8deK2jAYzpuFIDfqhwDombj0BajLF4XgijsN72x1E9CoAYH 0HaP4zu+nmMPIPvIg9zct/pnF22yhZcBNXaG3tC0vpi7UuI2qzcGJRcYOo4ZWyFkmO//8b 4/OIt9KNoN4KA16fagmCNfQ+zHUhPaQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1782311757; 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=Yg/0jal3IrudsxPTqtT6ue0vsq7FD+0X1ETHBfZo6Ms=; b=rHjJgl+Ljgpqdc/horVmybFe6qmp5ECzjz1JXFcGex+bep14jkEuUQrLSDL6CTUlfrta09 9K7OJ4X+5RlRMtH1Y1gq5v2QJVYVLsx+dyHbQ5Jk3F9aAN+ySOYOzYOV66fmtQKOHJdXR6 upbX2RcpnKuScuHmT577Iz++lnhykeU= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=HmIXxOUg; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782311757; x=1813847757; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=smE+vXNsJ1nsQc7H0/zD4gyh0Xr8z3RUcm+dMyvDFd4=; b=HmIXxOUgTEILWKnh/x3XQswoeywbBawDPU7jo1sfHsf06YUV/wAvjJif XhzK4g0wPoEAZ9nnGVQHnFACZS6NssIb7Mnu4hUOqQ0VjRQmXyrcZQg6B hVVFOYrz+MxorDv71vrti4qPLgRCyV6gNMivRXxJ+PDeKeNztE2lhiWti KloqmmAmXfJ4ClQwf8d2Ls5fgN7VXhz722GsWj9NKRd7bjfL5K6MKOX6e E+YyGcdhLdE49nd5zSHjdBgFltRrfUhL6jNTZnvpO8tJO2aFOEnz7xBbo eq1oyUh9fHvVk0pQV84bnyxDna+SbkTRQ9+H2D5DqKVDpMq37pRs/S1fD A==; X-CSE-ConnectionGUID: ghkgYUrJT/yxLVAJXOCMAw== X-CSE-MsgGUID: befLiQkAQ5uUhrO0THKFAA== X-IronPort-AV: E=McAfee;i="6800,10657,11826"; a="93434970" X-IronPort-AV: E=Sophos;i="6.24,222,1774335600"; d="scan'208";a="93434970" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2026 07:35:54 -0700 X-CSE-ConnectionGUID: Lo+s5CNYTAWK2mQizzjKYQ== X-CSE-MsgGUID: nIv/Lq4XS0Gf/8D4VUylsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,222,1774335600"; d="scan'208";a="249912883" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by orviesa007.jf.intel.com with ESMTP; 24 Jun 2026 07:35:46 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wcOhb-000000003Q1-0R48; Wed, 24 Jun 2026 14:35:43 +0000 Date: Wed, 24 Jun 2026 22:35:18 +0800 From: kernel test robot To: Xuewen Wang , akpm@linux-foundation.org, david@kernel.org, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xuewen Wang Subject: Re: [PATCH v1] mm: fix data-race in folio_batch_count() Message-ID: <202606242209.fM2W0efm-lkp@intel.com> References: <20260624092606.1083449-1-wangxuewen@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260624092606.1083449-1-wangxuewen@kylinos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LieYdWnMAfpQiuwDv R4BBu2yK GN1d+H2AEvV9GmMQnEGcy0HbFOO5mgxbDXsHAJpDZmHPH6IZ/H2PSlvNcbQGsJYL5mxHqFtHsIUDt0QxHP8dxXto/cFvN2kCFZ71+ws5JBYEn03PMlDRr9TXgzEt73E6egp3wPx1FiCr6nfgiOiB4fQPF4a4cDbx0H4E+u6l+h3bqEUznoFrpujJXGTz228zqVVUVqiZ/u5atqQiPbH1cVw8AjtzTOIGF5udnOZpFGnS6rcgzzCXbDeeFd8kdf3NVoQXP9vltTZdrsIsdLGRsOLc5xEpIaCKlfdAr0H57PWlCrjfOf6kLMgyGounQpi+Us373ihpwBF97f2VK4AsYs8RCuaCkmt84yRMe/GlB4nAmoCdKeHpjrvB9GSAe37SLZpc4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Xuewen, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Xuewen-Wang/mm-fix-data-race-in-folio_batch_count/20260624-172724 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20260624092606.1083449-1-wangxuewen%40kylinos.cn patch subject: [PATCH v1] mm: fix data-race in folio_batch_count() config: i386-defconfig (https://download.01.org/0day-ci/archive/20260624/202606242209.fM2W0efm-lkp@intel.com/config) compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260624/202606242209.fM2W0efm-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/202606242209.fM2W0efm-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:6: >> include/linux/folio_batch.h:56:9: error: call to undeclared function 'READ_ONCE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | return READ_ONCE(fbatch->nr); | ^ In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:7: In file included from include/linux/shmem_fs.h:6: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:7: In file included from include/linux/shmem_fs.h:6: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:7: In file included from include/linux/shmem_fs.h:6: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:7: In file included from include/linux/shmem_fs.h:6: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:7: In file included from include/linux/shmem_fs.h:6: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/gpu/drm/i915/gem/i915_gem_shmem.c:7: In file included from include/linux/shmem_fs.h:6: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:17: In file included from include/linux/fs.h:5: In file included from include/linux/fs/super.h:5: In file included from include/linux/fs/super_types.h:13: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && vim +/READ_ONCE +56 include/linux/folio_batch.h 53 54 static inline unsigned int folio_batch_count(const struct folio_batch *fbatch) 55 { > 56 return READ_ONCE(fbatch->nr); 57 } 58 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki