Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

seqlock: Allow KASAN to fail optimizing

Some KASAN builds are failing to properly optimize this code --
luckily we don't care about core quality for KASAN builds, so just
exclude it.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Closes: https://lore.kernel.org/oe-kbuild-all/202510251641.idrNXhv5-lkp@intel.com/

+4 -1
+4 -1
include/linux/seqlock.h
··· 1234 1234 1235 1235 extern void __scoped_seqlock_invalid_target(void); 1236 1236 1237 - #if defined(CONFIG_CC_IS_GCC) && CONFIG_GCC_VERSION < 90000 1237 + #if (defined(CONFIG_CC_IS_GCC) && CONFIG_GCC_VERSION < 90000) || defined(CONFIG_KASAN) 1238 1238 /* 1239 1239 * For some reason some GCC-8 architectures (nios2, alpha) have trouble 1240 1240 * determining that the ss_done state is impossible in __scoped_seqlock_next() 1241 1241 * below. 1242 + * 1243 + * Similarly KASAN is known to confuse compilers enough to break this. But we 1244 + * don't care about code quality for KASAN builds anyway. 1242 1245 */ 1243 1246 static inline void __scoped_seqlock_bug(void) { } 1244 1247 #else