mirror-linux/tools/sched_ext/include/scx
David Carlier 032e084f0d tools/sched_ext: fix strtoul() misuse in scx_hotplug_seq()
scx_hotplug_seq() uses strtoul() but validates the result with a
negative check (val < 0), which can never be true for an unsigned
return value.

Use the endptr mechanism to verify the entire string was consumed,
and check errno == ERANGE for overflow detection.

Signed-off-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2026-02-27 09:17:44 -10:00
..
bpf_arena_common.bpf.h tools/sched_ext: Receive updates from SCX repo 2025-08-11 08:21:57 -10:00
bpf_arena_common.h tools/sched_ext: Receive updates from SCX repo 2025-08-11 08:21:57 -10:00
common.bpf.h sched_ext/tools: Restore backward compat with v6.12 kernels 2025-10-29 10:41:21 -10:00
common.h tools/sched_ext: Receive updates from SCX repo 2025-08-11 08:21:57 -10:00
compat.bpf.h sched_ext/tools: Restore backward compat with v6.12 kernels 2025-10-29 10:41:21 -10:00
compat.h tools/sched_ext: fix strtoul() misuse in scx_hotplug_seq() 2026-02-27 09:17:44 -10:00
enum_defs.autogen.h tools/sched_ext: Sync with scx repo 2025-04-02 09:08:33 -10:00
enums.autogen.bpf.h tools/sched_ext: Sync with scx repo 2025-04-02 09:08:33 -10:00
enums.autogen.h tools/sched_ext: Sync with scx repo 2025-04-02 09:08:33 -10:00
enums.bpf.h tools/sched_ext: Receive updates from SCX repo 2024-12-12 16:16:57 -10:00
enums.h tools/sched_ext: Sync with scx repo 2025-04-02 09:08:33 -10:00
user_exit_info.bpf.h tools/sched_ext: Receive updates from SCX repo 2025-08-11 08:21:57 -10:00
user_exit_info.h tools/sched_ext: Receive updates from SCX repo 2025-08-11 08:21:57 -10:00
user_exit_info_common.h tools/sched_ext: Receive updates from SCX repo 2025-08-11 08:21:57 -10:00