[PATCH 0/2] sched_ext: sync compat.bpf.h peek/reenqueue fixes from sched-ext/scx
From: Changwoo Min
Date: Mon Aug 17 2026 - 10:40:29 EST
These two fixes landed first in the sched-ext/scx tree [1], which carries
the reference scx/compat.bpf.h. This series syncs them into the kernel
tree's tools/sched_ext/include/scx/compat.bpf.h.
Patch 1 gates the lockless scx_bpf_dsq_peek() behind kernel >= 7.1.0,
where its stale task-pointer bug is fixed (2f2ea7709266, 71d7847cad44);
older kernels fall back to bpf_iter_scx_dsq.
Patch 2 adds scx_bpf_reenqueue_local_from_anywhere() and prefers the
generic scx_bpf_dsq_reenq() kfunc, giving arbitrary-context callers a
supported entry point (-ENOTSUP when unavailable).
[1] https://github.com/sched-ext/scx
Changwoo Min (1):
compat.bpf.h: add scx_bpf_reenqueue_local_from_anywhere() compat
helper
Gavin Guo (1):
compat.bpf.h: Gate scx_bpf_dsq_peek kfunc behind kernel version 7.1.0
tools/sched_ext/include/scx/compat.bpf.h | 48 ++++++++++++++++++------
1 file changed, 37 insertions(+), 11 deletions(-)
base-commit: e5a0a3d6b05a62a2921698a60f2c84ea3da97d51
--
2.55.0