日期范围
94
Bugfix讨论数
Bugfix重要分析 success作者:Aaron Tomlin2026/08/11 09:3410 封邮件

[PATCH v4 0/5] sched/debug: Introduce per-CPU debugfs files

Aaron Tomlin 发送 v4 系列补丁,修补 sched debugfs 中 print_dl_rq() 的 rq->rd UAF、print_cpu() 的 rq->curr UAF、sched_show_numa() 的 p->mm TOCTOU、print_cfs_stats() 的 leaf_cfs_rq_list RCU 遍历违规,并新增 /sys/kernel/debug/sched/cpu/cpu<N>/debug 按 CPU 视图。评审集中在 Patch 1/5 上,Prateek 与 Aaron 讨论了 rcu_dereference_all() 与 __rcu 注解...

lore
Bugfix重要分析 success作者:Karl Mehltretter2026/08/11 05:571 封邮件

[PATCH 0/5] kcov: suppress timer and scheduler coverage leaks

5 patch 系列在 kcov_mode 中新增可嵌套的 KCOV_PAUSED 位,配合 __always_inline 的 kcov_pause()/kcov_resume(),在 hrtimer 延迟 rearm、__schedule()、try_to_wake_up()、wake_up_new_task() 入口抑制被插桩 callee 把非确定性 scheduler/timer 路径误记入 current。修复后 KCOV selftest 在 x86_64/s390/RISC-V/LoongArch 通过,syzkaller A/B corpus +28.8%、coverage ...

lore
Bugfix重要分析 success作者:Zhan Xusheng2026/08/10 22:201 封邮件

[PATCH v2] sched/debug: Validate writes to the scan_size_mb debugfs knob

扫描大小旋钮 scan_size_mb 从 sysctl 迁到 debugfs 时丢失了下界校验、上界也从未存在,导致写 0 或 2^24(4K 页 MB_TO_PAGES 回绕点)会让 fork/clone 路径在内核态除零 Oops。该 patch 把它换成自定义 write handler,校验 0 < mb <= UINT_MAX >> (20 - PAGE_SHIFT),越界返回 -EINVAL。

lore
Bugfix重要分析 success作者:Zhan Xusheng2026/08/10 21:582 封邮件

[PATCH] sched/debug: Validate writes to the scan_size_mb debugfs knob

为 debugfs 中的 scan_size_mb 写入口补上边界校验。原先 sysctl 的 .extra1=SYSCTL_ONE 在迁移到 debugfs 时被丢弃,导致写入 0 或 2^24 倍数值会让 MB_TO_PAGES() 回绕到 0,触发 task_scan_min/task_nr_scan_windows 除零内核 oops。补丁新增 write handler,拒绝非法值并在 qemu 上验证。Chen Yu 给出 Reviewed-by 并建议 kstrtouint_from_user 使用 base 0 以兼容十六进制写入。

lore
Bugfix重要分析 success作者:Breno Leitao2026/08/10 19:471 封邮件

[PATCH] sched/topology: don't claim sched_domain_shared twice on the same domain

Breno Leitao 发现,在同时具备 SD_SHARE_LLC 与 SD_ASYM_CPUCAPACITY_FULL 的 sched_domain 上,build_sched_domains() 会让 asym 路径与 LLC 路径各自调用一次 init_sched_domain_shared(),第二次覆盖 sd->shared 但不释放第一次的对象,导致 32 字节的 sched_domain_shared 泄漏。补丁在 LLC claim 前增加 if (!sd->shared) 守卫,Fixes 9e005ed21152,仅改动 kernel/sched/topology.c 一...

lore
每页
上一页18 / 19下一页