* [GIT PULL] sched_ext: Fixes for v7.4-rc5
@ 2026-12-04 17:11 Tejun Heo
2026-12-04 17:13 ` Tejun Heo
2026-12-04 18:28 ` pr-tracker-bot
0 siblings, 2 replies; 4+ messages in thread
From: Tejun Heo @ 2026-12-04 17:11 UTC (permalink / raw)
To: Linus Torvalds
Cc: David Vernet, Andrea Righi, Changwoo Min, Emil Tsalapatis,
David Dai, sched-ext, linux-kernel
Hello,
The following changes since commit 97e1c7d467d07734f8f5c8c64730e1f7c415bd46:
sched_ext: Attach fair_server before tasks fall back to fair on disable (2026-11-24 22:48:52 -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-rc5-fixes
for you to fetch changes up to 82cd5232be43ff25236c47d7c9126b3f0777359d:
sched_ext: Reset task fields after ops.exit_task() (2026-12-04 07:00:38 -1000)
----------------------------------------------------------------
sched_ext: Fixes for v7.4-rc5
- The kfuncs that print messages for BPF schedulers read the format string
with no length limit and could see it change between validation and use.
- An exiting task could keep pointing at a scheduler that was later freed.
- A task dispatched to a shared queue could be taken off it by another CPU
before the dispatch finished and then never run again.
- With core scheduling, a sub-scheduler's task could run on a CPU that the
sub-scheduler isn't allowed to use.
- Smaller fixes: kfuncs that depend on the caller's locking context are now
rejected from the sub-scheduler capability callback, and a task's exit
callback could leave stale scheduling state for its next scheduler.
----------------------------------------------------------------
Andrea Righi (1):
sched_ext: Fix unbounded format string reads in the bstr kfuncs
Changwoo Min (1):
sched_ext: Reset task fields after ops.exit_task()
Chris Mason (1):
sched_ext: Don't skip NONE tasks in sched_ext_dead()
Kuba Piecuch (8):
sched_ext: Factor out release_dispatching_and_lock_task_rq()
sched_ext: Fix ops_state and ops.dequeue() locking races in dispatch
sched_ext: Remove scx_wait_dispatching()
selftests/sched_ext: Test that ops.dequeue() runs with the task's rq locked
sched_ext: Enforce SCX_CAP_BASE in core-sched task selection
selftests/sched_ext: Add sub_core_caps test for core-sched SCX_CAP_BASE
sched_ext: Reject rq-lock-sensitive kfuncs from ops.sub_caps_updated()
selftests/sched_ext: Add sub_caps_kfunc test
kernel/sched/ext/ext.c | 427 +++++++++-----
kernel/sched/ext/internal.h | 5 +-
kernel/sched/ext/types.h | 1 +
tools/testing/selftests/sched_ext/Makefile | 2 +
.../selftests/sched_ext/dequeue_remote.bpf.c | 34 +-
tools/testing/selftests/sched_ext/dequeue_remote.c | 37 +-
.../selftests/sched_ext/sub_caps_kfunc.bpf.c | 66 +++
tools/testing/selftests/sched_ext/sub_caps_kfunc.c | 107 ++++
.../selftests/sched_ext/sub_caps_kfunc_fail.bpf.c | 109 ++++
tools/testing/selftests/sched_ext/sub_core_caps.c | 616 +++++++++++++++++++++
.../selftests/sched_ext/sub_core_caps_root.bpf.c | 78 +++
.../selftests/sched_ext/sub_core_caps_sub.bpf.c | 84 +++
12 files changed, 1407 insertions(+), 159 deletions(-)
create mode 100644 tools/testing/selftests/sched_ext/sub_caps_kfunc.bpf.c
create mode 100644 tools/testing/selftests/sched_ext/sub_caps_kfunc.c
create mode 100644 tools/testing/selftests/sched_ext/sub_caps_kfunc_fail.bpf.c
create mode 100644 tools/testing/selftests/sched_ext/sub_core_caps.c
create mode 100644 tools/testing/selftests/sched_ext/sub_core_caps_root.bpf.c
create mode 100644 tools/testing/selftests/sched_ext/sub_core_caps_sub.bpf.c
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [GIT PULL] sched_ext: Fixes for v7.4-rc5
2026-12-04 17:11 [GIT PULL] sched_ext: Fixes for v7.4-rc5 Tejun Heo
@ 2026-12-04 17:13 ` Tejun Heo
2026-12-04 17:42 ` Linus Torvalds
2026-12-04 18:28 ` pr-tracker-bot
1 sibling, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2026-12-04 17:13 UTC (permalink / raw)
To: Linus Torvalds
Cc: David Vernet, Andrea Righi, Changwoo Min, Emil Tsalapatis,
David Dai, sched-ext, linux-kernel
Hello, Linus.
Would you prefer selftests to go through the development branch instead of
the fixes pulls? I've been keeping them together with the fixes they test as
that seemed more logical, but the volume of selftests is getting higher and
it may make sense to separate them out.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] sched_ext: Fixes for v7.4-rc5
2026-12-04 17:13 ` Tejun Heo
@ 2026-12-04 17:42 ` Linus Torvalds
0 siblings, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2026-12-04 17:42 UTC (permalink / raw)
To: Tejun Heo
Cc: David Vernet, Andrea Righi, Changwoo Min, Emil Tsalapatis,
David Dai, sched-ext, linux-kernel
On Fri, 4 Dec 2026 at 09:14, Tejun Heo <tj@kernel.org> wrote:
>
> Would you prefer selftests to go through the development branch instead of
> the fixes pulls? I've been keeping them together with the fixes they test as
> that seemed more logical, but the volume of selftests is getting higher and
> it may make sense to separate them out.
Yes. I've pulled this one, but going forward it would be good to keep
the fixes branch for fixes only.
Your tests are at least in the selftest dfirectory and run in user
space - they don't affect kernel code, so it's at least _less_ of an
issue.
We had ext4 tests that were added that actually messed up the kernel
itself in the process, that's a complete no-no going forward for me.
Linus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] sched_ext: Fixes for v7.4-rc5
2026-12-04 17:11 [GIT PULL] sched_ext: Fixes for v7.4-rc5 Tejun Heo
2026-12-04 17:13 ` Tejun Heo
@ 2026-12-04 18:28 ` pr-tracker-bot
1 sibling, 0 replies; 4+ messages in thread
From: pr-tracker-bot @ 2026-12-04 18:28 UTC (permalink / raw)
To: Tejun Heo
Cc: Linus Torvalds, David Vernet, Andrea Righi, Changwoo Min,
Emil Tsalapatis, David Dai, sched-ext, linux-kernel
The pull request you sent on Fri, 04 Dec 2026 07:11:50 -1000:
> https://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git tags/sched_ext-for-7.4-rc5-fixes
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/1f9c740f15dae336d5dea23faf51e451e7e9f55b
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-04 18:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 17:11 [GIT PULL] sched_ext: Fixes for v7.4-rc5 Tejun Heo
2026-12-04 17:13 ` Tejun Heo
2026-12-04 17:42 ` Linus Torvalds
2026-12-04 18:28 ` pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox