日期范围
163
全部讨论数
Bugfix重要分析 success作者:soolaugust2026/08/13 12:092 封邮件

[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:219 封邮件

[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:1820 封邮件

[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作者:lirongqing2026/08/12 15:281 封邮件

[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:103 封邮件

[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:413 封邮件

[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
其它分析 success作者:Greg Kroah-Hartman2026/08/11 07:001 封邮件

[PATCH 7.1 001/438] net: mpls: initialize rtm_tos in mpls_getroute()

Greg Kroah-Hartman 发布 Linux 7.1.8-rc1 稳定分支的 438 个回搬补丁合入评审。涵盖 mm/slab、btrfs、netfilter、bluetooth、KVM、ALSA、drm 等子系统;其中 sched/deadline 183/438 限定 revised wakeup rule 仅在 dl_server running 时生效。窗口期截止 2026-08-09 14:33 UTC;多数回信为 Tested-by/确认收到。

lore
其它分析 success作者:Greg Kroah-Hartman2026/08/11 06:401 封邮件

[PATCH 6.18 001/396] netfilter: nf_conntrack_expect: restore helper propagation via expectation

Greg KH 发布的 6.18.44-rc1 stable review 一次拉取 396 个 patch,跨 netfilter、btrfs、mm/slab、drm、ALSA、Bluetooth、hwmon、net、scsi、can、phy 等 30+ 子系统。真正属于 scheduler 的只有 PATCH 149/396 sched/deadline: Use revised wakeup rule only for running dl_server,把 DL wakeup rule 的判定收敛到 dl_server 实际 running 时。其余 395 个均为各子系统 bugfi...

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
讨论重要分析 success作者:Kayra Cizmeci2026/08/11 02:263 封邮件

[PATCH] sched/fair: Drop min_vruntime() call from set_protect_slice()

Kayra Cizmeci 提出在 set_protect_slice() 中直接去掉 min_vruntime() 调用以省掉一次比较,但 Zhan Xusheng 在 review 中指出:PLACE_DEADLINE_INITIAL 会让新实体的 deadline 只领先半个 slice,而 put_prev_entity() 重新入队时不续期 deadline,导致算出的 vprot 可能越过 deadline,从而让 RUN_TO_PARITY 保护超出实体的合法时间窗。作者在收到详细解释后承认疏漏,主动请求 drop patch,本 thread 以讨论形式收尾。

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
其它重要分析 success作者:Shrikanth Hegde2026/08/10 21:243 封邮件

[PATCH v9 00/11] sched, steal_governor: Introduce preferred CPUs and steal-driven vCPU backoff

本系列引入 cpu_preferred_mask 作为 scheduler 一等 cpumask 状态, 并把 virtualization 策略放到 drivers/virt/steal_governor 驱动中。驱动周期性采样系统 steal time, 与高/低阈值比较后逐步收缩或扩展 preferred CPU 集合; 调度器在 wakeup、tick、load balance 三条路径上优先使用 preferred。目的是为 paravirt 下多个 VM 提供协作式、可恢复、不破坏用户 affinity 的 vCPU 退避机制, 避免 CPU hotplug/isolcpuset ...

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
其它重要分析 success作者:Andrea Righi2026/08/10 18:382 封邮件

[PATCH v5] sched/fair: Prefer fully idle cores for NOHZ balancing

Andrea Righi v5 修改 find_new_ilb(),在 SMT 系统中优先挑选整 core 空闲的 CPU 作为 ILB 目标,不存在时回退到任一 idle CPU。针对 NVIDIA Olympus(Vera)上 SMT 唤醒后 10 Ki cycle 才恢复单线程性能的特性,在自制 GEMM benchmark、每 core 一个 CPU 密集任务下,从约 6.2 TFLOP/s 提升到 9.4 TFLOP/s。非 SMT 系统行为保持不变。

lore
Bugfix重要分析 success作者:Sibi Sankar2026/08/10 17:541 封邮件

[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
Bugfix重要分析 success作者:Aaron Tomlin2026/08/10 11:181 封邮件

[PATCH v3 0/4] sched/debug: Introduce per-CPU debugfs files

Aaron Tomlin 的 v3 系列包含 4 个 patch:1) 在 print_cpu() 中用 rcu_read_lock + READ_ONCE 保护 rq->curr;2) 在 print_dl_rq() 中同样保护 rq->rd;3) 用 list_for_each_entry_rcu 替换 print_cfs_stats() 中的 _safe 遍历;4) 新增 /sys/kernel/debug/sched/cpu/cpu<N>/debug。三个修复都属于 lockless 解引用导致的潜在 UAF 或 RCU 违例,Reported-by 均为 sashiko-bot。但作...

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