aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2025-05-05 21:30:39 +0000
committerTejun Heo <[email protected]>2025-05-07 16:24:07 +0000
commit428dc9fc0873989d73918d4a9cc22745b7bbc799 (patch)
tree8102669845543340f2340f839978639d572069fb /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parentsched_ext: Fix rq lock state in hotplug ops (diff)
downloadkernel-428dc9fc0873989d73918d4a9cc22745b7bbc799.tar.gz
kernel-428dc9fc0873989d73918d4a9cc22745b7bbc799.zip
sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator
BPF programs may call next() and destroy() on BPF iterators even after new() returns an error value (e.g. bpf_for_each() macro ignores error returns from new()). bpf_iter_scx_dsq_new() could leave the iterator in an uninitialized state after an error return causing bpf_iter_scx_dsq_next() to dereference garbage data. Make bpf_iter_scx_dsq_new() always clear $kit->dsq so that next() and destroy() become noops. Signed-off-by: Tejun Heo <[email protected]> Fixes: 650ba21b131e ("sched_ext: Implement DSQ iterator") Cc: [email protected] # v6.12+ Acked-by: Andrea Righi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions