From: Tejun Heo <tj@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Vernet <void@manifault.com>,
Andrea Righi <arighi@nvidia.com>,
Changwoo Min <changwoo@igalia.com>,
Emil Tsalapatis <emil@etsalapatis.com>,
David Dai <david.dai@linux.dev>,
sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [GIT PULL] sched_ext: Fixes for v7.4-rc4
Date: Tue, 24 Nov 2026 23:40:42 -1000 [thread overview]
Message-ID: <64abac4b00009285ade1874468a34990@kernel.org> (raw)
Hello,
The following changes since commit 700a332c3fe33014bbd5ae852d71ba679fc29e0a:
sched_ext: Reject DSQ iterator kfuncs in tracing programs (2026-11-12 07:30:07 -1000)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git tags/sched_ext-for-7.4-rc4-fixes
for you to fetch changes up to 97e1c7d467d07734f8f5c8c64730e1f7c415bd46:
sched_ext: Attach fair_server before tasks fall back to fair on disable (2026-11-24 22:48:52 -1000)
----------------------------------------------------------------
sched_ext: Fixes for v7.4-rc4
- Scheduler enable and disable could race with tasks changing class: on
enable, a task could switch to sched_ext before the scheduler core started
picking sched_ext tasks and be left runnable while its CPU went idle. On
disable, an RT task could starve the tasks falling back to the fair class
and stall the disable itself.
- BPF schedulers failed to load on architectures whose BPF JIT doesn't
support private stacks, such as riscv64. Only sub-schedulers need them and
are now refused there instead.
- The debug dump and CPU ID layout callbacks could call kfuncs that move
tasks around. They are now rejected at load time.
- Smaller fixes: a task's first enqueue after fork didn't tell the BPF
scheduler that CPU selection had already run, and two kfuncs raised a
false RCU lockdep warning in BPF timer callbacks.
----------------------------------------------------------------
Cheng-Yang Chou (1):
sched_ext: Don't request private stacks the JIT can't provide
Hang Zhengyang (1):
sched_ext: Attach fair_server before tasks fall back to fair on disable
Kuba Piecuch (4):
sched_ext: Don't route tasks to SCX before __scx_enabled is fully patched
sched_ext: Fix suspicious RCU usage in KF_RCU_PROTECTED kfuncs
sched_ext: Don't allow unlocked kfuncs from ops.dump() and ops.init_cids()
selftests/sched_ext: Add unlocked_kfunc test
Tao Cui (1):
sched/core: Pass ENQUEUE_RQ_SELECTED on initial enqueue
kernel/sched/core.c | 5 +-
kernel/sched/ext/ext.c | 79 +++++++++++++++-------
kernel/sched/ext/sub.c | 6 ++
tools/testing/selftests/sched_ext/Makefile | 1 +
.../selftests/sched_ext/unlocked_kfunc.bpf.c | 69 +++++++++++++++++++
tools/testing/selftests/sched_ext/unlocked_kfunc.c | 73 ++++++++++++++++++++
.../selftests/sched_ext/unlocked_kfunc_cid.bpf.c | 67 ++++++++++++++++++
.../sched_ext/unlocked_kfunc_fail_dump.bpf.c | 26 +++++++
.../sched_ext/unlocked_kfunc_fail_init_cids.bpf.c | 22 ++++++
9 files changed, 323 insertions(+), 25 deletions(-)
create mode 100644 tools/testing/selftests/sched_ext/unlocked_kfunc.bpf.c
create mode 100644 tools/testing/selftests/sched_ext/unlocked_kfunc.c
create mode 100644 tools/testing/selftests/sched_ext/unlocked_kfunc_cid.bpf.c
create mode 100644 tools/testing/selftests/sched_ext/unlocked_kfunc_fail_dump.bpf.c
create mode 100644 tools/testing/selftests/sched_ext/unlocked_kfunc_fail_init_cids.bpf.c
--
tejun
reply other threads:[~2026-11-25 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=64abac4b00009285ade1874468a34990@kernel.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=david.dai@linux.dev \
--cc=emil@etsalapatis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sched-ext@lists.linux.dev \
--cc=torvalds@linux-foundation.org \
--cc=void@manifault.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