aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-05-11 12:05:48 -1000
committerTejun Heo <tj@kernel.org>2026-05-11 12:05:48 -1000
commit9a415cc53711f2238e0f0ca8a6bcc796c003b127 (patch)
tree01457067f3d0db705e447ca715917d56033ac764 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
parentsched_ext: Clear ops->priv on scx_alloc_and_add_sched() error paths (diff)
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/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions