From: Bart Van Assche <bvanassche@acm.org>
To: Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>,
Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH 0/2] Restore and fix SCHED_WARN_ON()
Date: Tue, 28 Oct 2025 09:50:56 -0700 [thread overview]
Message-ID: <20251028165059.682306-1-bvanassche@acm.org> (raw)
Hi Ingo,
Using WARN_ON_ONCE() or any other code that calls console_lock() from the
process scheduler may trigger lock inversion. This patch series fixes this
by restoring the SCHED_WARN_ON() macro and by changing its implementation.
Please consider this patch series for the next merge window.
Thanks,
Bart.
Bart Van Assche (2):
Revert "sched/debug: Change SCHED_WARN_ON() to WARN_ON_ONCE()"
Fix SCHED_WARN_ON()
kernel/sched/core.c | 22 ++++++++--------
kernel/sched/core_sched.c | 2 +-
kernel/sched/deadline.c | 12 ++++-----
kernel/sched/ext.c | 2 +-
kernel/sched/fair.c | 54 +++++++++++++++++++--------------------
kernel/sched/rt.c | 2 +-
kernel/sched/sched.h | 26 +++++++++++++++----
kernel/sched/stats.h | 2 +-
8 files changed, 69 insertions(+), 53 deletions(-)
next reply other threads:[~2025-10-28 16:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 16:50 Bart Van Assche [this message]
2025-10-28 16:50 ` [PATCH 1/2] Revert "sched/debug: Change SCHED_WARN_ON() to WARN_ON_ONCE()" Bart Van Assche
2025-10-28 16:50 ` [PATCH 2/2] Fix SCHED_WARN_ON() Bart Van Assche
2025-10-28 18:45 ` Peter Zijlstra
2025-10-28 18:50 ` Peter Zijlstra
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=20251028165059.682306-1-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/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