summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-05-12 01:05:48 +0300
committerTejun Heo <tj@kernel.org>2026-05-12 01:05:48 +0300
commit9a415cc53711f2238e0f0ca8a6bcc796c003b127 (patch)
tree01457067f3d0db705e447ca715917d56033ac764 /tools/lib/python/kdoc/parse_data_structs.py
parent86ecb1c1a1f5c1bf4a45b91f54f8220c3121bd3b (diff)
downloadlinux-9a415cc53711f2238e0f0ca8a6bcc796c003b127.tar.xz
sched_ext: Avoid UAF in scx_root_enable_workfn() init failure path
In scx_root_enable_workfn(), put_task_struct(p) is called before scx_error() dereferences p->comm and p->pid. If the iterator's reference is the last drop, the task is freed synchronously and the deref becomes a UAF. Move put_task_struct() past scx_error(). Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/all/20260511214031.AF5E9C2BCB0@smtp.kernel.org/ Fixes: f0e1a0643a59 ("sched_ext: Implement BPF extensible scheduler class") Cc: stable@vger.kernel.org # v6.12+ Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions