[PATCH v1] sched_ext: initialize kit->cursor.flags
From: Henry Huang
Date: Sun Dec 22 2024 - 10:59:35 EST
struct bpf_iter_scx_dsq *it maybe not initialized.
If we didn't call scx_bpf_dsq_move_set_vtime and scx_bpf_dsq_move_set_slice
before scx_bpf_dsq_move, it would cause unexpected behaviors:
1. Assign a huge slice into p->scx.slice
2. Assign a invalid vtime into p->scx.dsq_vtime
Henry Huang (1):
sched_ext: initialize kit->cursor.flags
kernel/sched/ext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.8.3.1