diff options
| author | Henry Huang <[email protected]> | 2024-12-22 15:43:16 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2024-12-24 20:56:08 +0000 |
| commit | 35bf430e08a18fdab6eb94492a06d9ad14c6179b (patch) | |
| tree | 910a54b731c57762bb43c0fcadbc2fb35877d7fd /drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c | |
| parent | sched_ext: Fix invalid irq restore in scx_ops_bypass() (diff) | |
| download | kernel-35bf430e08a18fdab6eb94492a06d9ad14c6179b.tar.gz kernel-35bf430e08a18fdab6eb94492a06d9ad14c6179b.zip | |
sched_ext: initialize kit->cursor.flags
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
Signed-off-by: Henry Huang <[email protected]>
Fixes: 6462dd53a260 ("sched_ext: Compact struct bpf_iter_scx_dsq_kern")
Cc: [email protected] # v6.12
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c')
0 files changed, 0 insertions, 0 deletions
