sched discussion
Linux 6.18.40
LLM 分析
Linux 6.18.40 稳定版内核发布说明
系列概况
- 标题: Linux 6.18.40
- 作者: Greg Kroah-Hartman(stable maintainer)
- 版本: 6.18.40(stable point release)
- 规模: 跨多个子系统的 stable backport,单封 changelog + diff展示
- 修改文件: 涉及 Documentation/ABI、admin-guide、arm64 cpu-hotplug、devicetree bindings(clock/dma/media/net/phy/pinctrl/regulator/timer/vendor-prefixes)、driver-api、filesystems、netlink/networking 等目录
- 代码统计: 首封 changelog 仅列文件名后被截断;reply 中可见的 diff 都是文档类改动
- Message-ID: 2026072457-cufflink-drew-878f@gregkh
- 完整性: 邮件正文被截断,完整 diffstat 与全量 hunk 需要到 lore 或 git.kernel.org 拉取
补丁目的
Greg KH 发布 6.18 系列的最新一个 stable point release(6.18.40),要求所有 6.18 内核用户升级。这是 stable tree维护的常规动作:把 mainline 上合入的 bugfix 和小幅改进 backport 到 6.18.y 分支,让生产环境的同款内核持续获得安全与正确性修复。
关键实现
虽然来源标记为 sched 频道,但本帖实质是 stable release 公告,不是 scheduler 专题讨论。能从 reply邮件中读到的 diff 片段主要是文档与 ABI 修订:
I3C 子系统新增 sysfs 属性
What: /sys/bus/i3c/devices/i3c-<bus-id>/<bus-id>-<device-pid>/dev_nack_retry_count
KernelVersion: 6.18
Contact: linux-i3c@vger.kernel.org
Description:
Expose the dev_nak_retry_count which controls the number of
automatic retries that will be performed by the controller when
the target device returns a NACK response. A value of 0 disables
the automatic retries. Exist only when I3C controller supports
this retry on nack feature.
新增暴露控制器在目标 NACK 时自动重试的次数,0 表示禁用,仅当硬件支持该特性时才存在。
cpufreq 文档语义变更
- Temporary multiplier, between 1 (default) and 100 inclusive, to apply to
+ Temporary multiplier, between 1 (default) and 100000 inclusive, to apply to
- it to 0 will cause the default frequency step (5 percent) to be used
- and setting it to 100 effectively causes the governor to periodically
+ it to 0 disables frequency changes by the governor entirely and setting
+ it to 100 effectively causes the
把可调上界从 100 提到 100000,并重新定义"0"的语义——不再是默认步长,而是完全禁用 governor 的频率变更;这是行为变更,必须配合 userspace 工具同步阅读。
类比
把 stable release 想象成汽车厂商每季度发一次的"小修包":不会换发动机,但会把赛道上(mainline)发现的小毛病修掉、补一些用户手册的说明,让所有跑在路上的同款车型保持安全稳定。Greg 在这个"小修包"上签字,喊所有车主"请尽快到4S 店升级"。
第二处 cpufreq 的语义修改类似汽车仪表盘的"节能模式"旋钮:从原来的"拧到 0 = 用默认节奏慢慢开"改成"拧到 0 = 不踩油门完全停",这种语义反转如果不更新说明书(doc)和导航系统(userspace 工具),老司机就会按习惯踩错踏板。
Highlight:风险与注意点
- 邮件 changelog 文本被截断,只能看到 Documentation 头部条目;真正的 bugfix 全貌需要到 lore 链接或
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git拉取完整 log 才能评估。 - 来源频道虽标
sched,但本帖并不是 scheduler 子系统的专题讨论,更接近 stable maintainer 的统一发布通知;阅读时应避免误读成 scheduler 设计讨论。 - cpufreq 的
0语义反转是用户可见的行为变更:依赖旧行为的 userspace / 调参脚本可能在升级后表现异常,需要在升级前关注其影响。 - I3C 新增 sysfs 属性是
KernelVersion: 6.18的新增 ABI,userspace 工具(如i3cdetect、各类 i3c 测试脚本)可以开始依赖它,但仍应检查目标硬件是否实际支持该特性。 - stable point release 经常夹带 CVE 修复,仅从这两封邮件无法判断是否包含安全相关 backport,需要查看完整 changelog。
一句话总结
Greg KH 发布 6.18.40 stable point release 并要求所有 6.18 用户升级;本帖是 stable maintainer 的常规 release 公告而非 scheduler 专题 patch,其内部 scheduler改动与安全影响需要通过完整 changelog 与 git log 才能确认。