日期范围
120
Bugfix讨论数
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
Bugfix重要分析 success作者:Sibi Sankar2026/08/10 17:5415 封邮件

[PATCH 0/2] sched/cpufreq: Fix schedutil's boost frequency handling

Sibi Sankar 发起 2 枚 patch 系列:patch 1 移除 cpufreq_frequency_table_cpuinfo() 中的 "只升不降" guard,让 cpuinfo.max_freq 在 boost 关闭后能回落;patch 2 在 schedutil 的 get_next_freq() 中用 max(ref, policy->max) 取代固定 anchor capacity_freq_ref,使 DVFS 请求能触达 boost 频率。Christian Loehle 与 Vincent Guittot 引用 Dietmar Eggemann 的上游系列 2...

lore
Bugfix重要分析 success作者:Chen Yu2026/08/10 11:471 封邮件

[PATCH v2] sched/cache: Fix a thread aggregation conflict when there is one runnable task

引入 migrate_llc_task 后,SD_ASYM_PACKING(如 ITMT)平台上 sched_asym() 过滤会拒绝 LLC 亲和性迁移。v2 补丁给 migrate_llc_task 开例外,并在 commit log 中解释 SD_ASYM_CPUCAPACITY 暂不同步处理的理由。

lore
每页
上一页13 / 24下一页