mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHSET sched_ext/for-7.5] sched_ext: Sync tools headers with scx and fix unsigned enum reads
@ 2026-10-23 23:20 Tejun Heo
  2026-10-23 23:20 ` [PATCH 1/4] sched_ext: Don't sign-extend unsigned enums in __COMPAT_read_enum() Tejun Heo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tejun Heo @ 2026-10-23 23:20 UTC (permalink / raw)
  To: sched-ext
  Cc: David Vernet, Andrea Righi, Changwoo Min, Emil Tsalapatis,
	David Dai, linux-kernel, Tejun Heo

Hello,

This patchset fixes __COMPAT_read_enum() sign-extending unsigned 4-byte
enums, which made SCX_RESCUE_DISABLE read as 0xffffffffffffffff, syncs the
shared headers in tools/sched_ext/include with the scx repo, and drops the
enum lookup table entries for enumerators the kernel no longer has. The scx
side is https://github.com/sched-ext/scx/pull/3930, merged, and
https://github.com/sched-ext/scx/pull/3932.

With both applied, the shared headers in tools/sched_ext/include are
identical to scx's except the two generated tables, enum_defs.autogen.h and
enums_abi.autogen.h, which each side regenerates from its own vmlinux.h.

Based on sched_ext/for-7.5 (dd3b1d9be27c).

This patchset contains the following 4 patches.

 0001 sched_ext: Don't sign-extend unsigned enums in __COMPAT_read_enum()
 0002 sched_ext: Sync tools autogen enum lookup tables from the scx repo
 0003 sched_ext: Sync common and compat headers from the scx repo
 0004 sched_ext: Drop stale entries from the enum lookup tables

The patchset is also available in the following git branch:

 git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git enums-sync

diffstat follows. Thanks.

 tools/sched_ext/include/scx/bpf_arena_common.bpf.h | 23 +++++++++++++++++++++-
 tools/sched_ext/include/scx/common.bpf.h           |  9 +++++++++
 tools/sched_ext/include/scx/compat.bpf.h           | 16 +++++++--------
 tools/sched_ext/include/scx/compat.h               |  6 +++++-
 tools/sched_ext/include/scx/enums.autogen.bpf.h    | 18 +++--------------
 tools/sched_ext/include/scx/enums.autogen.h        |  6 +-----
 tools/sched_ext/scx_flatcg.bpf.c                   |  5 -----
 7 files changed, 48 insertions(+), 35 deletions(-)

--
tejun

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-23 23:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 23:20 [PATCHSET sched_ext/for-7.5] sched_ext: Sync tools headers with scx and fix unsigned enum reads Tejun Heo
2026-10-23 23:20 ` [PATCH 1/4] sched_ext: Don't sign-extend unsigned enums in __COMPAT_read_enum() Tejun Heo
2026-10-23 23:21 ` [PATCH 2/4] sched_ext: Sync tools autogen enum lookup tables from the scx repo Tejun Heo
2026-10-23 23:21 ` [PATCH 3/4] sched_ext: Sync common and compat headers " Tejun Heo
2026-10-23 23:21 ` [PATCH 4/4] sched_ext: Drop stale entries from the enum lookup tables Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®