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.

Merge tag 'core-debugobjects-2024-07-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull debugobjects update from Thomas Gleixner:
"A single update for debugobjects to annotate all intentionally racy
global debug variables so that KCSAN ignores them"

* tag 'core-debugobjects-2024-07-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
debugobjects: Annotate racy debug variables

+11 -10
+11 -10
lib/debugobjects.c
··· 78 78 /* The number of objs on the global free list */ 79 79 static int obj_nr_tofree; 80 80 81 - static int debug_objects_maxchain __read_mostly; 82 - static int __maybe_unused debug_objects_maxchecked __read_mostly; 83 - static int debug_objects_fixups __read_mostly; 84 - static int debug_objects_warnings __read_mostly; 85 - static int debug_objects_enabled __read_mostly 86 - = CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT; 87 - static int debug_objects_pool_size __read_mostly 88 - = ODEBUG_POOL_SIZE; 89 - static int debug_objects_pool_min_level __read_mostly 90 - = ODEBUG_POOL_MIN_LEVEL; 81 + static int __data_racy debug_objects_maxchain __read_mostly; 82 + static int __data_racy __maybe_unused debug_objects_maxchecked __read_mostly; 83 + static int __data_racy debug_objects_fixups __read_mostly; 84 + static int __data_racy debug_objects_warnings __read_mostly; 85 + static int __data_racy debug_objects_enabled __read_mostly 86 + = CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT; 87 + static int __data_racy debug_objects_pool_size __read_mostly 88 + = ODEBUG_POOL_SIZE; 89 + static int __data_racy debug_objects_pool_min_level __read_mostly 90 + = ODEBUG_POOL_MIN_LEVEL; 91 + 91 92 static const struct debug_obj_descr *descr_test __read_mostly; 92 93 static struct kmem_cache *obj_cache __ro_after_init; 93 94