* [sj:mm-new 39/45] arch/x86/include/asm/atomic.h:23: undefined reference to `kasan_flag_enabled'
@ 2025-08-06 22:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-06 22:05 UTC (permalink / raw)
To: Baoquan He; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git mm-new
head: b2a4beca30ba51331a16d7bb84387a70b692a66d
commit: 825af80daf827d439c7dd3e24ef5648cc338bc98 [39/45] mm/kasan: make kasan=on|off take effect for all three modes
config: um-randconfig-002-20250807 (https://download.01.org/0day-ci/archive/20250807/202508070658.s1RZB1Fd-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250807/202508070658.s1RZB1Fd-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508070658.s1RZB1Fd-lkp@intel.com/
All errors (new ones prefixed by >>):
/usr/bin/ld: lib/stackdepot.o: in function `stack_depot_early_init':
stackdepot.c:(.init.text+0x21f): undefined reference to `kasan_flag_enabled'
/usr/bin/ld: mm/mempool.o: in function `remove_element':
>> arch/x86/include/asm/atomic.h:23: undefined reference to `kasan_flag_enabled'
/usr/bin/ld: mm/mempool.o: in function `poison_element':
>> arch/x86/include/asm/atomic.h:23: undefined reference to `kasan_flag_enabled'
collect2: error: ld returned 1 exit status
vim +23 arch/x86/include/asm/atomic.h
5abbbbf0b0cd4a Brian Gerst 2010-01-07 11
5abbbbf0b0cd4a Brian Gerst 2010-01-07 12 /*
5abbbbf0b0cd4a Brian Gerst 2010-01-07 13 * Atomic operations that C can't guarantee us. Useful for
5abbbbf0b0cd4a Brian Gerst 2010-01-07 14 * resource counting etc..
5abbbbf0b0cd4a Brian Gerst 2010-01-07 15 */
5abbbbf0b0cd4a Brian Gerst 2010-01-07 16
8bf705d130396e Dmitry Vyukov 2018-01-29 17 static __always_inline int arch_atomic_read(const atomic_t *v)
5abbbbf0b0cd4a Brian Gerst 2010-01-07 18 {
ac605bee0bfab4 Dmitry Vyukov 2018-01-29 19 /*
ac605bee0bfab4 Dmitry Vyukov 2018-01-29 20 * Note for KASAN: we deliberately don't use READ_ONCE_NOCHECK() here,
ac605bee0bfab4 Dmitry Vyukov 2018-01-29 21 * it's non-inlined function that increases binary size and stack usage.
ac605bee0bfab4 Dmitry Vyukov 2018-01-29 22 */
37f8173dd84936 Peter Zijlstra 2020-01-24 @23 return __READ_ONCE((v)->counter);
5abbbbf0b0cd4a Brian Gerst 2010-01-07 24 }
5abbbbf0b0cd4a Brian Gerst 2010-01-07 25
:::::: The code at line 23 was first introduced by commit
:::::: 37f8173dd84936ea78000ed1cad24f8b18d48ebb locking/atomics: Flip fallbacks and instrumentation
:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-06 22:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 22:05 [sj:mm-new 39/45] arch/x86/include/asm/atomic.h:23: undefined reference to `kasan_flag_enabled' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).