Hello, zhidao. On Wed, Jul 01, 2026 at 05:19:54PM +0800, zhidao su (Xiaomi) wrote: > As a result, a non-SCX tracing program can load after calling the task > setter wrappers, reaching the mutator kfuncs outside an SCX scheduler > context.
This is intended. A scheduler is conceptually the struct_ops plus the accompanying BPF programs identified by the associated struct_ops, and these operations are explicitly allowed for all of them. scx_prog_sched() and scx_task_on_sched() confine each to tasks owned by its own scheduler, so this isn't an escape from SCX context and there's nothing to reject. Thanks. -- tejun

