* [jimc:dd-ratelimit-2 73/76] lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context
@ 2026-08-19 13:32 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-19 13:24 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Jim Cromie <jim.cromie@gmail.com>
TO: "Łukasz Bartosik" <ukaszb@chromium.org>
tree: https://github.com/jimc/linux.git dd-ratelimit-2
head: 31212444bcca4d1547711ec572b5a398d74640ca
commit: 29d01faf08d63c34e46af173536be5af2aaab4fb [73/76] lib/dynamic_debug: Refactor ddebug_arena to vmalloc backing
:::::: branch date: 34 hours ago
:::::: commit date: 34 hours ago
config: i386-randconfig-141 (https://download.01.org/0day-ci/archive/20260819/202608192133.1ujPLawx-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9187-g5189e3fb
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202608192133.1ujPLawx-lkp@intel.com/
smatch warnings:
lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context
vim +136 lib/dynamic_debug.c
b80df25b9600208 Jim Cromie 2026-07-15 124
b80df25b9600208 Jim Cromie 2026-07-15 125 static void ddebug_arena_free(struct ddebug_arena *arena)
b80df25b9600208 Jim Cromie 2026-07-15 126 {
29d01faf08d63c3 Jim Cromie 2026-08-11 127 struct ddebug_arena_chunk *chunk, *tmp;
b80df25b9600208 Jim Cromie 2026-07-15 128 unsigned long flags;
b80df25b9600208 Jim Cromie 2026-07-15 129 static DEFINE_SPINLOCK(arena_lock);
b80df25b9600208 Jim Cromie 2026-07-15 130
b80df25b9600208 Jim Cromie 2026-07-15 131 spin_lock_irqsave(&arena_lock, flags);
b80df25b9600208 Jim Cromie 2026-07-15 132 arena->free_ptr = NULL;
b80df25b9600208 Jim Cromie 2026-07-15 133 arena->remaining = 0;
29d01faf08d63c3 Jim Cromie 2026-08-11 134 list_for_each_entry_safe(chunk, tmp, &arena->chunks, link) {
29d01faf08d63c3 Jim Cromie 2026-08-11 135 list_del(&chunk->link);
29d01faf08d63c3 Jim Cromie 2026-08-11 @136 vfree(chunk);
b80df25b9600208 Jim Cromie 2026-07-15 137 }
b80df25b9600208 Jim Cromie 2026-07-15 138 spin_unlock_irqrestore(&arena_lock, flags);
b80df25b9600208 Jim Cromie 2026-07-15 139 }
b80df25b9600208 Jim Cromie 2026-07-15 140
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* [jimc:dd-ratelimit-2 73/76] lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context
@ 2026-08-19 13:32 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2026-08-19 13:32 UTC (permalink / raw)
To: oe-kbuild, Jim Cromie, Łukasz Bartosik; +Cc: lkp, oe-kbuild-all
tree: https://github.com/jimc/linux.git dd-ratelimit-2
head: 31212444bcca4d1547711ec572b5a398d74640ca
commit: 29d01faf08d63c34e46af173536be5af2aaab4fb [73/76] lib/dynamic_debug: Refactor ddebug_arena to vmalloc backing
config: i386-randconfig-141 (https://download.01.org/0day-ci/archive/20260819/202608192133.1ujPLawx-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9187-g5189e3fb
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202608192133.1ujPLawx-lkp@intel.com/
smatch warnings:
lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context
vim +136 lib/dynamic_debug.c
b80df25b9600208 Jim Cromie 2026-07-15 125 static void ddebug_arena_free(struct ddebug_arena *arena)
b80df25b9600208 Jim Cromie 2026-07-15 126 {
29d01faf08d63c3 Jim Cromie 2026-08-11 127 struct ddebug_arena_chunk *chunk, *tmp;
b80df25b9600208 Jim Cromie 2026-07-15 128 unsigned long flags;
b80df25b9600208 Jim Cromie 2026-07-15 129 static DEFINE_SPINLOCK(arena_lock);
b80df25b9600208 Jim Cromie 2026-07-15 130
b80df25b9600208 Jim Cromie 2026-07-15 131 spin_lock_irqsave(&arena_lock, flags);
b80df25b9600208 Jim Cromie 2026-07-15 132 arena->free_ptr = NULL;
b80df25b9600208 Jim Cromie 2026-07-15 133 arena->remaining = 0;
29d01faf08d63c3 Jim Cromie 2026-08-11 134 list_for_each_entry_safe(chunk, tmp, &arena->chunks, link) {
29d01faf08d63c3 Jim Cromie 2026-08-11 135 list_del(&chunk->link);
29d01faf08d63c3 Jim Cromie 2026-08-11 @136 vfree(chunk);
vfree() is a sleeping function so you can't call it while holding
a spinlock. If you call it from interrupt context, though it doesn't
sleep. A bit weird like that.
b80df25b9600208 Jim Cromie 2026-07-15 137 }
b80df25b9600208 Jim Cromie 2026-07-15 138 spin_unlock_irqrestore(&arena_lock, flags);
b80df25b9600208 Jim Cromie 2026-07-15 139 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-19 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 13:24 [jimc:dd-ratelimit-2 73/76] lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context kernel test robot
2026-08-19 13:32 ` Dan Carpenter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.