The Linux Kernel Mailing List
 help / color / mirror / Atom feed
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-rc5
Date: Fri, 04 Dec 2026 07:11:50 -1000	[thread overview]
Message-ID: <6d3898fd23bd2d67f573f5dc5018094c@kernel.org> (raw)

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

             reply	other threads:[~2026-12-04 17:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 17:11 Tejun Heo [this message]
2026-12-04 17:13 ` [GIT PULL] sched_ext: Fixes for v7.4-rc5 Tejun Heo
2026-12-04 17:42   ` Linus Torvalds
2026-12-04 18:28 ` pr-tracker-bot

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=6d3898fd23bd2d67f573f5dc5018094c@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