Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched_ext: Mark scx_bpf_dsq_move_set_[slice|vtime]() with KF_RCU

scx_bpf_dsq_move_set_slice() and scx_bpf_dsq_move_set_vtime() take a DSQ
iterator argument which has to be valid. Mark them with KF_RCU.

Fixes: 4c30f5ce4f7a ("sched_ext: Implement scx_bpf_dispatch[_vtime]_from_dsq()")
Cc: stable@vger.kernel.org # v6.12+
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

Tejun Heo 54e96258 3a866087

+4 -4
+4 -4
kernel/sched/ext.c
··· 5688 5688 BTF_ID_FLAGS(func, scx_bpf_dispatch_nr_slots) 5689 5689 BTF_ID_FLAGS(func, scx_bpf_dispatch_cancel) 5690 5690 BTF_ID_FLAGS(func, scx_bpf_dsq_move_to_local) 5691 - BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice) 5692 - BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime) 5691 + BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice, KF_RCU) 5692 + BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime, KF_RCU) 5693 5693 BTF_ID_FLAGS(func, scx_bpf_dsq_move, KF_RCU) 5694 5694 BTF_ID_FLAGS(func, scx_bpf_dsq_move_vtime, KF_RCU) 5695 5695 BTF_KFUNCS_END(scx_kfunc_ids_dispatch) ··· 5820 5820 5821 5821 BTF_KFUNCS_START(scx_kfunc_ids_unlocked) 5822 5822 BTF_ID_FLAGS(func, scx_bpf_create_dsq, KF_SLEEPABLE) 5823 - BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice) 5824 - BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime) 5823 + BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice, KF_RCU) 5824 + BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime, KF_RCU) 5825 5825 BTF_ID_FLAGS(func, scx_bpf_dsq_move, KF_RCU) 5826 5826 BTF_ID_FLAGS(func, scx_bpf_dsq_move_vtime, KF_RCU) 5827 5827 BTF_KFUNCS_END(scx_kfunc_ids_unlocked)