今日重点:🗂️ 术语卡——术语不背字典定义,背邮件里的那一句: 它在真实评审里怎么用、解决了什么问题。今天四张卡全部取自 11-13 的真实邮件,每张附原文。

🗂️ 卡一:SB_RDONLY 与紧急只读

/ section
Going read-only doesn't need to write anything. So ignore the errors from flushing and from freeing the COW and post-EOF blocks once xfs is shut down, also if the flush shut it down itself.

SB_RDONLY 是超级块的「只读」标志位。传统上文件系统出事就直接置位它—— 但 sb_rdonly() 的世界里还有个更细的概念:emergency remount (紧急重挂,sysrq u 触发)。这帖的洞察是:Going read-only doesn't need to write anything(进只读不需要写任何东西)——既然只读不写盘,就没必要因为「刷盘失败」 而拒绝只读。这也是整个 sb_rdonly v3 系列的基调:把「出错后进只读」的语义从各 fs 的自选动作,变成统一、可预期、不触发 panic 的路径。

🗂️ 卡二:引用计数溢出(refcount overflow)

/ column
Let's add __folio_ref_count_over_limit() checks in fast and slow GUP before acquiring additional references or pins.

refcount overflow:引用计数是有位宽的整数,加爆了会回绕成负数—— 这是内核里最经典的可利用原语之一(对象以为自己没人用,被释放,再被访问 = UAF)。 防线形态是 __folio_ref_count_over_limit():在 GUP (get_user_pages,把用户页 pin 住)的快慢路径加引用前先检查是否已到上限。 配套语义:撞上限返回 -ENOMEM,而不是假装成功。

🗂️ 卡三:VFE / CSID / TPG(高通相机三件套)

/ column
[PATCH v25 09/15] media: qcom: camss: csid: Add support for CSID 1080

VFE / CSID / TPG 是高通相机子系统(CAMSS)的三个硬件层: CSID(Camera Serial Interface Decoder)接收 MIPI CSI-2 数据流; VFE(Video Front End)是 ISP 前端,做实时处理;TPG (Test Pattern Generator)是不接 sensor 也能出图的测试图样发生器——验证 CSID/VFE 通路的标配。标题里的 1080 是硬件版本号(与手机分辨率无关): Add support for VFE 1080 = 驱动开始支持这一代 ISP。

🗂️ 卡四:FreeSync infopacket 与 8 位字段

/ column
[PATCH v2 0/2] drm/amd/display: Fix FreeSync infopacket refresh rates above 255 Hz

FreeSync infopacket 是 AMD 的自适应同步信息包,装在 DisplayPort 辅助数据里告诉显示器「现在按多少帧率同步」。它的刷新率字段只有 8 位—— 最大 255;300Hz+ 的高刷屏一编码就溢出。这个 2 帖修复是「协议位宽限制」的活教材: 字段位宽决定能力上限,超出就得换编码方式,而不是改数值。

✍️ 今日练习

/ column
✍️ 术语填空(英文作答):① 「只读不需要写任何东西」用本卡原文怎么说?② GUP 的引用计数撞上限时应该返回哪个错误码?(原文给出)③ CSID/VFE/TPG 各负责什么,用一句话英文概括。④ 为什么 300Hz 屏幕会触发 FreeSync 修复?(提示:字段位宽)
💡 显示答案
参考答案:① Going read-only doesn't need to write anything. ② -ENOMEM(so hitting the limit returns -ENOMEM instead of -EFAULT and -EINVAL)。③ CSID decodes the incoming MIPI CSI-2 stream, VFE is the ISP front end that processes frames in real time, and TPG generates test patterns so the pipeline can be validated without a sensor. ④ The refresh-rate field in the FreeSync infopacket is only 8 bits wide (max 255), so anything above 255 Hz cannot be encoded.
📖 原文:Going read-only doesn't need to write anything. So ignore the errors from flushing and from freeing the COW and post-EOF blocks once xfs is shut down, also if the flush shut it down itself. / Let's add __folio_ref_count_over_limit() checks in fast and slow GUP before acquiring additional references or pins.
📎 原文引用

Learn the sentence, not the glossary — a term you can quote is a term you can use.

素材:lore.kernel.org 11-13 窗口(sb_rdonly v3 / refcount v4 / Kaanapali v25 / FreeSync v2)· 内核英语 · 每日一篇