From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796259838; b=PHWE0QugT2AJo5uwaoVLGd15hDAucD7MEqMDprGCOFJsmRAk3E7kQZCAeWjod6DUczv1 0yP1KkMw7gGpFeouQcsG6WMtExNdgPJ9p8HbEEAqVwS6ER4fGvNV7AJCpQXRA35NBglcR YTc3euJV2xCKiMjNFFHoPDyMQqxSAoatYYVydjbcDZpbCIrwz4y+WPeqJZnPRTTHAfdB/ q3j6GngOVqt9i7jR42jTXeeCEu63LPnFlJLPYs1xCIsKC+eA2t2nKTRyunQlY5k9KFtxR Q2Xv+zhaL3mkCWQKlno2TzGErwa+7rub5kvzFcfARkO/d4TgNQtqhwUMQR8VtmJ7gLQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796259838; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=duJDsPp5MbhHmRclGPvbg5+w6AfJyvD8QlNOnlJwu68=; b=q3/gzh6iE4R/5+hhhKt9BEYCJ/9REM5DqSl618cXm7HDj17hT5kcRSxKL4TKP7zCdnG3 CrZireT6o3tHrKp8lRqkgZk91TspHpnaX4sMzs/+LESFSlDV+B9L4aeGM4phVKRObr+q4 Br/m0aPE4/qNCtWWtkVAQphpTptN8s/5/8aB4R177qUJMQuhLL+RmLaT3q4JUdi20rFuA eY7PthdfSonlUHex/NvUvU3iRVyiRP5f2afghh0loV7v7BUQFLj3aF0WCs3HumrH98x1n pgW2HrWNA/bZCBSb0PGpRb5KqhqftBmO6URMbYE8xkZUbqAtH+VFkYrSoEeAq95owFw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WO7jjKmZ; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8136E606A322; Thu, 3 Dec 2026 01:03:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8136E606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WO7jjKmZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796259837; x=1827795837; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=duJDsPp5MbhHmRclGPvbg5+w6AfJyvD8QlNOnlJwu68=; b=WO7jjKmZ1ymtEWg8GZdb++kwoDSUmEaDbkSlWVpJoxZtUqhKzqiDK+CF 3co63aEUeTUbOtT387zDXoh3OZoxNa/uDPMain1uKrzYtb+H3Z/zYvWDT xDGwQbj8vpJ5ml7r4WNmivVf+zbC8Rn/y7TLfAtm2qRytsDAsOmdZxMw5 sj5arOJd8QqyydRl1alyxRZn9gAqYGeW9thLIrmaqXGSw0IbCX8CpZ9MH HbADT/rLod633MHAe7XKmb+XrrNWFJ3sQyVkdAIdeS7jVCBNaOjZo29AV xT/DMxe14XNTDciDws2vgsev+dCGijEf/uHCusxQyl5XR3zLmqtjQR4bJ Q==; X-CSE-ConnectionGUID: QYdlzYDdT6+APakTL7nlcQ== X-CSE-MsgGUID: MGdT9HJYSfGk8tdCrsolBg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5141971" X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="5141971" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 17:03:56 -0800 X-CSE-ConnectionGUID: ZkRKJZvvQP+cXXBpyZHXYw== X-CSE-MsgGUID: lCWzfBWhQ8ORl6aoWJa2Sw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="13915739" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 02 Dec 2026 17:03:54 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xYvEl-00000001gYH-0Bfq; Thu, 03 Dec 2026 01:03:51 +0000 Date: Thu, 3 Dec 2026 09:03:45 +0800 From: kernel test robot To: Jiayi Zhang , Jan Kara , Amir Goldstein Cc: oe-kbuild-all@lists.linux.dev, Christian Brauner , Alexander Viro , Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+f968afcac117a84b7f14@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] fsnotify: use rcu_access_pointer() to test the mark connector pointers Message-ID: <20261203083353.XuNYnFsf-lkp@intel.com> References: <20261202181338.4162502-1-zhangjiayi1014@gmail.com> X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202181338.4162502-1-zhangjiayi1014@gmail.com> Hi Jiayi, kernel test robot noticed the following build errors: [auto build test ERROR on brauner-vfs/vfs.all] [also build test ERROR on jack-fs/fsnotify linus/master v7.4-rc5 next-20261130] [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/Jiayi-Zhang/fsnotify-use-rcu_access_pointer-to-test-the-mark-connector-pointers/20261202-181338 base: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all patch link: https://lore.kernel.org/r/20261202181338.4162502-1-zhangjiayi1014%40gmail.com patch subject: [PATCH] fsnotify: use rcu_access_pointer() to test the mark connector pointers config: arm-randconfig-1003-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203083353.XuNYnFsf-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203083353.XuNYnFsf-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/20261203083353.XuNYnFsf-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/compiler_types.h:44, from : fs/mount.h: In function 'mnt_notify_add': >> include/linux/rcupdate.h:504:9: error: dereferencing pointer to incomplete type 'struct fsnotify_mark_connector' typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ ^ include/linux/compiler-context-analysis.h:218:2: note: in definition of macro 'context_unsafe' __VA_ARGS__; \ ^~~~~~~~~~~ include/linux/rcupdate.h:625:31: note: in expansion of macro '__rcu_access_pointer' #define rcu_access_pointer(p) __rcu_access_pointer((p), __UNIQUE_ID(rcu), __rcu) ^~~~~~~~~~~~~~~~~~~~ fs/mount.h:247:20: note: in expansion of macro 'rcu_access_pointer' if ((m->mnt_ns && rcu_access_pointer(m->mnt_ns->n_fsnotify_marks)) || ^~~~~~~~~~~~~~~~~~ -- In file included from include/linux/compiler_types.h:44, from : fs/autofs/../mount.h: In function 'mnt_notify_add': >> include/linux/rcupdate.h:504:9: error: dereferencing pointer to incomplete type 'struct fsnotify_mark_connector' typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ ^ include/linux/compiler-context-analysis.h:218:2: note: in definition of macro 'context_unsafe' __VA_ARGS__; \ ^~~~~~~~~~~ include/linux/rcupdate.h:625:31: note: in expansion of macro '__rcu_access_pointer' #define rcu_access_pointer(p) __rcu_access_pointer((p), __UNIQUE_ID(rcu), __rcu) ^~~~~~~~~~~~~~~~~~~~ fs/autofs/../mount.h:247:20: note: in expansion of macro 'rcu_access_pointer' if ((m->mnt_ns && rcu_access_pointer(m->mnt_ns->n_fsnotify_marks)) || ^~~~~~~~~~~~~~~~~~ vim +504 include/linux/rcupdate.h 76c8eaafe4f061f Paul E. McKenney 2021-04-21 501 573d76f7db5ba05 Paul E. McKenney 2026-06-28 502 #define __rcu_access_pointer(p, local, space) context_unsafe( \ ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 503 ({ \ 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 @504 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ 423a86a610cad12 Joel Fernandes (Google 2018-12-12 505) rcu_check_sparse(p, space); \ 0381ade2ea82b48 Ricardo Ribalda 2026-09-14 506 ((TYPEOF_NO_ADDRESS_SPACE(*p) __force __kernel *)(local)); \ 573d76f7db5ba05 Paul E. McKenney 2026-06-28 507 }) ) 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 508 #define __rcu_dereference_check(p, local, c, space) \ ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 509 ({ \ ac59853c06993a4 Pranith Kumar 2014-11-13 510 /* Dependency order vs. p above. */ \ 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 511 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ f78f5b90c4ffa55 Paul E. McKenney 2015-06-18 512 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \ 423a86a610cad12 Joel Fernandes (Google 2018-12-12 513) rcu_check_sparse(p, space); \ 0381ade2ea82b48 Ricardo Ribalda 2026-09-14 514 ((TYPEOF_NO_ADDRESS_SPACE(*p) __force __kernel *)(local)); \ ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 515 }) 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 516 #define __rcu_dereference_protected(p, local, c, space) \ ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 517 ({ \ f78f5b90c4ffa55 Paul E. McKenney 2015-06-18 518 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \ 423a86a610cad12 Joel Fernandes (Google 2018-12-12 519) rcu_check_sparse(p, space); \ 0381ade2ea82b48 Ricardo Ribalda 2026-09-14 520 ((TYPEOF_NO_ADDRESS_SPACE(*p) __force __kernel *)(p)); \ ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 521 }) 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 522 #define __rcu_dereference_raw(p, local) \ 995f1405610bd84 Paul E. McKenney 2016-07-01 523 ({ \ 995f1405610bd84 Paul E. McKenney 2016-07-01 524 /* Dependency order vs. p above. */ \ 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 525 typeof(p) local = READ_ONCE(p); \ 0381ade2ea82b48 Ricardo Ribalda 2026-09-14 526 ((TYPEOF_NO_ADDRESS_SPACE(*p) __force __kernel *)(local)); \ 995f1405610bd84 Paul E. McKenney 2016-07-01 527 }) 24ba53017e188e0 Chun-Hung Tseng 2021-09-15 528 #define rcu_dereference_raw(p) __rcu_dereference_raw(p, __UNIQUE_ID(rcu)) ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 529 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki