Merge tag 'sched_ext-for-7.4-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext

Pull sched_ext fixes from Tejun Heo:

 - With proxy execution or core scheduling, a CPU could run a task that
   had been requeued on another CPU while dispatch had the rq lock
   dropped.

 - Unregistering a scheduler could return while its teardown was still
   running, letting the teardown call into BPF code that was already
   freed.

 - A CPU coming online could call into the BPF scheduler before the
   scheduler was told that the CPU is online.

 - A parent scheduler could be asked to attach a sub-scheduler to a
   cgroup that was already removed.

 - Hardening: more kfuncs that take a queue lock are rejected in tracing
   programs, where they could deadlock the CPU, and a queue iterator no
   longer restarts after reaching the end, which the BPF verifier
   assumes can't happen.

 - Smaller fixes: tasks needlessly sent back to the BPF scheduler on
   idle CPUs, stale scheduling state carried into a task's next
   scheduler, and uneven CPU shards with partially populated SMT cores.

* tag 'sched_ext-for-7.4-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
  sched_ext: Reject DSQ iterator kfuncs in tracing programs
  sched_ext: make DSQ iterator stay drained after NULL
  sched_ext: Fix partial-SMT core counting in calc_shard_layout()
  sched_ext: Reset task fields on exit of an SCX_TASK_READY task
  sched_ext: Read exit_kind before flushing in scx_flush_disable_work()
  sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs
  sched_ext: Fix ops.enqueue/dispatch() calls before ops.cpu_online()
  sched_ext: Factor out drain_offline_rq()
  sched_ext: Fix stale pick when the donor changes during dispatch
  sched_ext: Call ops.sub_attach() only while the cgroup is online
  sched_ext: Fix scx_bpf_dsq_reenq() kerneldoc claiming NMI calls are allowed
  sched_ext: Avoid unnecessary IMMED reenqueues on idle CPUs