All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [jimc:dd-ratelimit-2 73/76] lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context
Date: Wed, 19 Aug 2026 21:24:33 +0800	[thread overview]
Message-ID: <202608192133.1ujPLawx-lkp@intel.com> (raw)

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

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <error27@gmail.com>
To: oe-kbuild@lists.linux.dev, "Jim Cromie" <jim.cromie@gmail.com>,
	"Łukasz Bartosik" <ukaszb@chromium.org>
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev
Subject: [jimc:dd-ratelimit-2 73/76] lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context
Date: Wed, 19 Aug 2026 16:32:04 +0300	[thread overview]
Message-ID: <202608192133.1ujPLawx-lkp@intel.com> (raw)

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


             reply	other threads:[~2026-08-19 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19 13:24 kernel test robot [this message]
2026-08-19 13:32 ` [jimc:dd-ratelimit-2 73/76] lib/dynamic_debug.c:136 ddebug_arena_free() warn: sleeping in atomic context Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202608192133.1ujPLawx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.