From: Tejun Heo <tj@kernel.org>
To: Jiayuan Chen <jiayuan.chen@linux.dev>
Cc: jiangshanlai@gmail.com,
syzbot+a73d496b2c6919c3f12c@syzkaller.appspotmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] workqueue: Fix false leak report when lockdep is turned off
Date: Thu, 03 Dec 2026 09:47:16 -1000 [thread overview]
Message-ID: <839c27773cd17f59e207f5ebcfb1f7f1@kernel.org> (raw)
In-Reply-To: <20261202025250.372140-1-jiayuan.chen@linux.dev>
Applied to wq/for-7.5 with the following change:
- READ_ONCE() is used for the lockless debug_locks test.
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3511,7 +3511,7 @@ __acquires(&pool->lock)
if (unlikely((worker->task && in_atomic()) ||
(lockdep_depth(current) != lockdep_start_depth &&
- debug_locks) ||
+ READ_ONCE(debug_locks)) ||
rcu_preempt_depth() != rcu_start_depth)) {
pr_err("BUG: workqueue leaked atomic, lock or RCU: %s[%d]\n"
" preempt=0x%08x lock=%d->%d RCU=%d->%d workfn=%ps\n",
Thanks.
--
tejun
prev parent reply other threads:[~2026-12-03 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 2:52 [PATCH] workqueue: Fix false leak report when lockdep is turned off Jiayuan Chen
2026-12-03 19:47 ` Tejun Heo [this message]
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=839c27773cd17f59e207f5ebcfb1f7f1@kernel.org \
--to=tj@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=jiayuan.chen@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+a73d496b2c6919c3f12c@syzkaller.appspotmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox