日期范围
231
全部讨论数
Bugfix分析 success作者:Waiman Long2026/08/13 18:385 封邮件

[PATCH v4] sched/isolation: Defer freeing of cpumask memblock memory to initcall

带 nohz_full 启动时,housekeeping_init() 在 memory map 尚未初始化前调用 memblock_free(),触发 mm/memblock.c 的新告警。补丁把待释放的 cpumask 直接当作 llist_node 串入 __initdata 链表,改由新增的 pure_initcall housekeeping_late_init() 统一 memblock_free()。仅改 15 行,依赖 memblock 的 7c2eee9c1367 以避免 KASAN UAF,已由 Peter Zijlstra 合入 tip:sched/core(2b58c7...

lore
Bugfix重要分析 success作者:soolaugust2026/08/13 12:0917 封邮件

[PATCH] sched/proxy_exec: Limit find_proxy_task() chain depth to prevent CPU hang

Proxy execution 下两个任务互相等待对方 mutex 会让 find_proxy_task() 在 blocked_on 链上无限循环,CPU 持 rq->lock spin 死。补丁用 rq 上的 proxy_pick_seq 给每次 walk 打唯一标记,重复走到同一节点时清掉 blocked_on 并 deactivate 该任务,从 v1 深度上限演进到 v5 的 per-pick seq 标记,能识别链中任意位置的循环(A→B→C→A),是 PE 走向 futex 之前的必修课。

lore
其它重要分析 success作者:Bharata B Rao2026/08/13 10:2140 封邮件

[PATCH v8 0/8] mm: Hot page tracking and promotion infrastructure

Bharata B Rao 第 8 版提交 pghot 子系统,把 NUMA hint fault、AMD IBS Memory Profiler 以及未来 CXL HMU 等热页来源统一到 per-PFN hotness 记录与 per-node kmigrated 线程,并把 kernel.numa_balancing=2 的 tiering 路径从 scheduler 迁到 mm。Andrew Morton、Matthew Wilcox、SJ Park、D. Hildenbrand 等 maintainer 提出与 DAMON 重叠、diffstat 过大、未拿到任何 Acked-by ...

lore
其它分析 success作者:Kayra Cizmeci2026/08/12 23:101 封邮件

[PATCH] sched/fair: Avoid calculating curr's key twice in pick_eevdf()

本 patch 把 pick_eevdf() 中 entity_eligible()→vruntime_eligible() 这条路径里重复的 entity_key(cfs_rq, curr) 减法抽成新的 curr_eligible(),让 vruntime - min_vruntime 只算一次。无功能变化,仅做 micro-cleanup,把 curr!=NULL/on_rq 的不变量交给 caller。建议补 WARN_ON_ONCE 与 micro-bench 以便 review。

lore
其它重要分析 success作者:Boqun Feng2026/08/12 19:1839 封邮件

[PATCH v5 00/18] Refcounted interrupt disable and SpinLockIrq for Rust

Boqun Feng 主推的 v5 18 贴系列把 preempt_count 中的 NMI 嵌套迁到 per-CPU 计数器,腾出 8 bit 给新的 HARDIRQ_DISABLE 计数器,并在 64-bit 架构把 PREEMPT_NEED_RESCHED 拆到独立字。系列在 C 端新增 local_interrupt_disable/enable 以及 spin_lock_irq_disable / spin_unlock_irq_enable 三件套,并附 KUnit 测试;在 Rust 端引入 kernel::interrupt 模块的 LocalInterruptDisabled...

lore
Bugfix重要分析 success作者:Hui Su2026/08/12 17:433 封邮件

[PATCH] sched/deadline: Fix DL server initialization for initially offline CPUs

提交 9f239df55546 把 DL server 初始化挪到 sched_init_smp() 时假设所有 CPU 都已 online,导致 maxcpus= 等场景下后上线 CPU 的 fair_server 与 ext_server 永远停在 runtime=0、period=0,fair 任务被高优先级任务完全饿死。本 patch 改用 for_each_possible_cpu() 遍历所有 CPU,仅在 CPU 已 online 时才 update_rq_clock 和 setup_new_dl_entity,并把根域带宽记账延后到 CPU 真正 active 后再做,避免给 ...

lore
Bugfix分析 success作者:lirongqing2026/08/12 15:283 封邮件

[PATCH v2] sched/debug: reject invalid writes to numa_balancing scan_size_mb

该 patch 用 debugfs 自定义 file_operations 替换 debugfs_create_u32,对 numa_balancing/scan_size_mb 的写入做范围校验,避免 0 与超过 UINT_MAX 的值触发 task_scan_min 与 task_nr_scan_windows 的除零。v1 到 v2 把 debugfs_create_file 换成 debugfs_create_file_unsafe 省去 full_proxy,并重写 commit message。后两封同作者的答复只是 ping 维持邮件,没有新内容。

lore
Bugfix重要分析 success作者:Lu Wang2026/08/12 00:1020 封邮件

[PATCH] sched/cache: honor migrate_llc_task semantics in active load balance

Lu Wang 修复 cache-aware scheduling 中 active load balance 丢失 migrate_llc_task 语义的 bug:被动 LB 把 group_llc_balance 标成 migrate_llc_task 后,CPU stopper 重建的 lb_env 默认成 migrate_load,导致 ALB 在 src_rq 上多任务场景可能把 preferred LLC 与目标 LLC 不匹配的任务错误拉走。v2 通过挑选 stopper 回调 + 新增 LBF_ACTIVE_LB_LLC 标志,把 LLC 方向判断透传到 ALB 路径,同时避...

lore
其它重要分析 success作者:Madadi Vineeth Reddy2026/08/11 13:4111 封邮件

[PATCH] sched/fair: Let sync wakeups target the waker's core

补丁在 select_idle_core() 中识别“waker 即将 sleep 且 rq 仅剩它自己”的状态,把 waker 的 CPU 视为 idle,使得 SMT 上 wakee 能落到 waker 核的兄弟线程,复用 cache 又避免 stacking。讨论中 Prateek 与 Chen Yu 提出上提到 select_idle_sibling() 或抽出 select_idle_sync_core() 的重构方案,x86 Zen 3 上 Kayra 的测试显示 cycles 下降 1.40% 但 cache-misses 上升 4.60%,收益高度依赖 SMT 编号方式。

lore
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
每页
上一页10 / 24下一页