日期范围
37
Bugfix讨论数
Bugfix重要分析 success作者:Tim Chen2026/09/02 08:043 封邮件

[PATCH 0/2] sched/cache: Fix use after free mm access in account_mm_sched()

把 sched_cache_stat 从 mm_struct 抽成独立的 refcount+RCU 对象 sched_cache_group,再让 task_struct 持有自己的引用。调度路径改读 p->sched_cache_grp,mm 被销毁后 grp 仍可由后续读者安全访问,彻底消除 account_mm_sched() / task_cache_work() 在 rq lock 下读 p->mm->sc_stat 的 UAF 窗口。两个 patch 必须配对 cherry-pick,单应用 patch 1 仍会复现 race。

lore
Bugfix重要分析 success作者:Hyunwoo Kim2026/09/02 04:491 封邮件

[PATCH] sched/cache: Fix use-after-free of the mm replaced by exec

该 patch 修复 sched/cache(cache-aware load balancing)在 execve 切换 mm 时与远端 CPU 上 account_mm_sched() 的并发 UAF。做法是在 exec_mm_put_old() 释放旧 mm 之前,对当前 task 自身的 rq 锁做一次 acquire/release,让所有还在用旧 mm 的 reader 在同一把锁下排空。讨论中 Tim Chen 提议顺带合并他把 sc_stat 与 sched_group 解耦、用 call_rcu 释放的更大系列,被 Chen Yu 认同为更彻底的长期方案。

lore
每页
上一页8 / 8下一页