AIFeed

Squashfs 维护者:AI 辅助找错的能力令人疲惫不堪

Translation(model translation, not the source's own text)

文章标题:Squashfs 维护者:AI 辅助的找错能力令人疲惫

正文:


        From: Phillip Lougher <[email protected]>
To: Andrew Morton <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: [PATCH v3 00/23] Squashfs: fix a lot of AI issues and AI style issues
Date: Mon, 23 Nov 2026 09:43:13 +0000	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On Sun, 22 Nov 2026 23:54:53 -0800
Andrew Morton <[email protected]> wrote:

> On Mon, 23 Nov 2026 03:42:41 +0000 Phillip Lougher <[email protected]> wrote:
>
> > This large patch-set is inspired by the recent spate of AI generated
> > code reports.
>
> Just to be annoying, I fed this into Claude Fable.  It said a bunch of
> stuff which looks very optional but the 08/23 blooper is worth fixing,
> so I queued a -fix.
>

绝对不会,我永远不会说你烦人。但 AI 辅助的这种在一切事物中找错的能力实在令人疲惫。

AI 会放大问题,因为它缺乏上下文和洞察力。请不要说你已经陷入了“AI 说的一切都正确”的信念,因为取决于分析的深度,它可能是自相矛盾的,这意味着你会陷入无休止的不可能循环。

以下内容有些正是如此:

> Unlike chatgpt, Fable is able to build kernels and run them in VMs all
> inside its sandbox.  Pretty cool stuff.
>
>
>
>
> [08/23] breaks squashfs_lookup() when its pr_debug is enabled:
>
> 	struct inode *inode = NULL;
> 	...
> 	TRACE("Entered squashfs_lookup [%llx:%x]\n",
> 		squashfs_i(inode)->start, squashfs_i(inode)->offset);
>
> That wants to be "dir".  With CONFIG_DYNAMIC_DEBUG=y,
>

是啊,一个搞砸的地方,因为另一个函数用的是 inode 而不是 dir。

很容易修,不是什么大问题,

> 	echo 'file fs/squashfs/namei.c +p' > /proc/dynamic_debug/control
>
> and then any lookup which misses the dcache gives
>
> 	BUG: unable to handle page fault for address: ffffffffffffffc8
> 	RIP: 0010:squashfs_lookup+0x57/0x4f9
>
> It is still there at the end of the series.
>
> [10/23] now requires the fragment index to end exactly where the next
> table starts.  An image with 8 unused bytes there mounts and reads
> correctly today and fails with -EINVAL with this patch (I made one by
> hand to check).

这是正确的。按照设计,元数据之间从来不存在任何填充,任何填充都是不正确的。自 2002 年以来一直都是如此。

任何 Squashfs 文件系统都不应该能够通过在元数据表之间添加填充来隐藏信息(比如恶意的元数据)。

如果出现了填充,那么就是有人想干些不怀好意的事。

之前的完整性检查没有检查这一点,是因为它是在 2011 年那段宽松的时期加入的,当时需要这项检查来阻止一个 fuzzer,那时加入的检查就足够了。而现在,如果检查不是 100% 精确,Sashiko 之类的东西就会大叫说它不够充分。

[15/23] 同样开始拒绝一个大小等于块大小的压缩块
> 是否确定没有任何版本的 mksquashfs,以及任何其他写入 Squashfs 的东西(squashfs-tools-ng、各种 Go 和 Rust 库),曾经产生过这种块?如果是这样,请在变更日志中说明。

嗯,这就是问题所在,不是吗。我本不想把它放进去,但 sashishito 抱怨说缺少它。

现在你又说另一个该死的 AI 在抱怨它被加进去了。

>
> [18/23]-[20/23]:使用小索引时,每个条目在挂载时都会与相邻条目进行检查。使用缓存索引后,这种检查就没了,只剩下 *_lookup_start() 中的范围检查。我找不到它会出错的方式,但这种差异是有意的吗?
>
> [22/23] 修复了主线(5641371fd0b3)中的一个回归,但它位于 [14/23] 之上。如果它应该进入 -stable,就需要排在最前面。目前整个系列都没有 cc:stable——考虑到变更日志描述了权限绕过,这是有意的吗?

文章标题:Squashfs 维护者:AI 辅助的找错能力让人精疲力竭

正文:
是的,这个差异是有意为之的。额外的合理性检查弥补了这一点。

>
> 小问题:
>
> - [01/23] 并非纯粹的转换:SQUASHFS_COMPRESSED_SIZE() 对零长度返回
>   32768,而 squashfs_compressed_size() 返回 0。
>   两者在 squashfs_read_data() 中最终都变成 -EIO,所以是无害的,但
>   changelog 可以说明这一点。

确实。我没有 AI,所以我没注意到。但如果 AI 这么说,好吧,我不过是那个该死的 Squashfs 作者,所以我又懂什么呢。

>
> - [10/23] 的复现器说 fragment_table_start 在偏移量 72。它其实
>   在 80,dd 用的也是这个值。

哎呀。

>
> - [20/23] 在 xattr 代码里写着“Read fragment indexes into memory”。
>
> - msblk->lookup_table 是超级块的 lookup_table_start,而
>   msblk->lookup_table_start 是另一个东西(第一个元数据
>   块)。fragment_table 和 xattr_id_table 也是如此。这会
>   让人困惑。
>
> 我在 x86_64(W=1)上逐个构建了每个补丁,并在 i386 上分别带和不带
> CONFIG_SQUASHFS_XATTR 构建了结果,还运行了手工制作的小型未压缩
> 镜像,包括一个带有 2049 项 fragment 和 export 索引的镜像,以便
> 使用新的缓存;全部都能正确读回。我没有运行你的复现器、任何压缩
> 内容或 xattrs。

很抱歉 Andrew,但你彻底把我惹火了。

从今天起我不想让你再处理 Squashfs。

我*几乎*已经到了要从 Linux 内核 Squashfs 维护工作中辞职的地步,因为
我从你那里受到了无休止的欺凌。

但我不会,因为那样的话就*你*赢了。

我也把这事抄送给了 LKML 和 Phoronix,以表明
在过去 4 周里,你一直在我向*我自己的*代码提交补丁的过程中欺凌我。

多谢了,什么忙也没帮上。

Phillip Lougher 博士

--
Phillip Lougher <[email protected]>
      

        prev parent reply	other threads:[~2026-11-23  9:43 UTC|newest]

文章标题:Squashfs 维护者:AI 辅助的故障发现能力令人疲惫

正文:
线程概览:79+ 条消息 / 展开[flat|nested]  mbox.gz  Atom feed 顶部
2026-11-23  3:42 [PATCH v3 00/23] Squashfs:修复大量 AI 问题及 AI 风格问题 Phillip Lougher
2026-11-23  3:42 ` [PATCH v3 01/23] Squashfs:将 SQUASHFS_COMPRESSED_* 转换为内联函数 Phillip Lougher
2026-11-23  4:13   ` + squashfs-convert-squashfs_compressed_-to-inline-functions.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-convert-squashfs_compressed_-to-inline-functions.patch 已从 -mm 树中移除 Andrew Morton
2026-11-25  5:52   ` + a.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 02/23] Squashfs:将 SQUASHFS_INODE_* 和 SQUASHFS_MKINODE 转换为内联函数 Phillip Lougher
2026-11-23  4:13   ` + squashfs-convert-squashfs_inode_-and-squashfs_mkinode-to-inline-functions.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-23  9:15   ` [PATCH v3 02/23] Squashfs:将 SQUASHFS_INODE_* 和 SQUASHFS_MKINODE 转换为内联函数 David Laight
2026-11-25  5:41   ` [待更新] squashfs-convert-squashfs_inode_-and-squashfs_mkinode-to-inline-functions.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 03/23] Squashfs:将 SQUASHFS_FRAGMENT_* 转换为内联函数 Phillip Lougher
2026-11-23  4:13   ` + squashfs-convert-squashfs_fragment_-to-inline-functions.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-convert-squashfs_fragment_-to-inline-functions.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 04/23] Squashfs:将 SQUASHFS_LOOKUP_* 转换为内联函数 Phillip Lougher
2026-11-23  4:13   ` + squashfs-convert-squashfs_lookup_-to-inline-functions.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-convert-squashfs_lookup_-to-inline-functions.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 05/23] Squashfs:将 SQUASHFS_ID_* 转换为内联函数 Phillip Lougher
2026-11-23  4:13   ` + squashfs-convert-squashfs_id_-to-inline-functions.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-23  9:12   ` [PATCH v3 05/23] Squashfs:将 SQUASHFS_ID_* 转换为内联函数 David Laight
2026-11-25  5:41   ` [待更新] squashfs-convert-squashfs_id_-to-inline-functions.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 06/23] Squashfs:将 SQUASHFS_XATTR_* 转换为内联函数 Phillip Lougher
2026-11-23  4:13   ` + squashfs-convert-squashfs_xattr_-to-inline-functions.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-convert-squashfs_xattr_-to-inline-functions.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 07/23] Squashfs:修复 squashfs_read_inode() TRACE 语句中的偏移量 Phillip Lougher
2026-11-23  4:13   ` + squashfs-fix-offset-in-squashfs_read_inode-trace-statements.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-fix-offset-in-squashfs_read_inode-trace-statements.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 08/23] Squashfs:在空目录或索引上不计算 start 或分配内存 Phillip Lougher
2026-11-23  4:13   ` + squashfs-dont-compute-start-or-alloc-memory-on-empty-directory-or-index.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-dont-compute-start-or-alloc-memory-on-empty-directory-or-index.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 09/23] Squashfs:修复 32 位架构上的片段字节溢出 Phillip Lougher
2026-11-23  4:14   ` + squashfs-fix-fragment-bytes-overflow-on-32-bit-architectures.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [待更新] squashfs-fix-fragment-bytes-overflow-on-32-bit-architectures.patch 已从 -mm 树中移除 Andrew Morton
2026-11

文章标题:Squashfs 维护者:AI 辅助的找错能力令人疲惫

正文:
-23  3:42 ` [PATCH v3 10/23] Squashfs:修复 fragment 索引表长度过大的漏洞利用 Phillip Lougher
2026-11-23  4:14   ` + squashfs-fix-fragment-index-table-length-too-large-exploit.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-fix-fragment-index-table-length-too-large-exploit.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 11/23] Squashfs:对 inode 元数据块位置进行合理性检查 Phillip Lougher
2026-11-23  4:14   ` + squashfs-sanity-check-inode-metadata-block-location.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-sanity-check-inode-metadata-block-location.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 12/23] Squashfs:对目录元数据块位置进行合理性检查 Phillip Lougher
2026-11-23  4:14   ` + squashfs-sanity-check-directory-metadata-block-location.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-sanity-check-directory-metadata-block-location.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 13/23] Squashfs:加宽 xattr 计数变量并添加合理性检查 Phillip Lougher
2026-11-23  4:14   ` + squashfs-widen-xattr-count-variables-and-add-sanity-check.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-widen-xattr-count-variables-and-add-sanity-check.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 14/23] Squashfs:超大文件可能超出 int 或 size_t 范围 Phillip Lougher
2026-11-23  4:14   ` + squashfs-very-large-files-can-exceed-an-int-or-size_t.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-very-large-files-can-exceed-an-int-or-size_t.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 15/23] Squashfs:为 squashfs_block_size() 添加更多合理性检查 Phillip Lougher
2026-11-23  4:14   ` + squashfs-add-more-sanity-checking-to-squashfs_block_size.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-add-more-sanity-checking-to-squashfs_block_size.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 16/23] Squashfs:对 fragment 块位置和范围进行合理性检查 Phillip Lougher
2026-11-23  4:14   ` + squashfs-sanity-check-fragment-block-location-and-range.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-sanity-check-fragment-block-location-and-range.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 17/23] Squashfs:对块列表大小和范围进行合理性检查 Phillip Lougher
2026-11-23  4:14   ` + squashfs-sanity-check-block-list-sizes-and-range.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-sanity-check-block-list-sizes-and-range.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:42 ` [PATCH v3 18/23] Squashfs:不要在内存中存储大型 export 表索引 Phillip Lougher
2026-11-23  4:14   ` + squashfs-dont-store-large-export-table-indexes-in-memory.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-dont-store-large-export-table-indexes-in-memory.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:43 ` [PATCH v3 19/23] Squashfs:不要在内存中存储大型 fragment 表索引 Phillip Lougher
2026-11-23  4:14   ` + squashfs-dont-store-large-fragment-table-indexes-in-memory.patch 已添加到 mm-nonmm-unstable 分支 Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-dont-store-large-fragment-table-indexes-in-memory.patch 已从 -mm 树中移除 Andrew Morton
2026-11-23  3:43 ` [PATCH v3 20/23] Squashfs:不要在内存中存储大型 xattr id 表索引 Phillip Lougher
2026-11-23  4:14   ` + squashfs-dont-store-large-xattr-id-table-indexes-in-memory.patch 已添加到 mm-nonmm-unstable 分支 Andrew

文章标题:Squashfs maintainer: the AI assisted ability to find fault is exhausting

正文:
Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-dont-store-large-xattr-id-table-indexes-in-memory.patch removed from -mm tree Andrew Morton
2026-11-23  3:43 ` [PATCH v3 21/23] Squashfs: fix variables in directory code and add more sanity checks Phillip Lougher
2026-11-23  4:14   ` + squashfs-fix-variables-in-directory-code-and-add-more-sanity-checks.patch added to mm-nonmm-unstable branch Andrew Morton
2026-11-25  5:41   ` [to-be-updated] squashfs-fix-variables-in-directory-code-and-add-more-sanity-checks.patch removed from -mm tree Andrew Morton
2026-11-23  3:43 ` [PATCH v3 22/23] Squashfs: fix regression in squashfs_copy_cache() Phillip Lougher
2026-11-23  4:14   ` + squashfs-fix-regression-in-squashfs_copy_cache.patch added to mm-nonmm-unstable branch Andrew Morton
2026-11-25  5:42   ` [to-be-updated] squashfs-fix-regression-in-squashfs_copy_cache.patch removed from -mm tree Andrew Morton
2026-11-23  3:43 ` [PATCH v3 23/23] Squashfs: check index isn't greater than S64_MAX in squashfs_read_data() Phillip Lougher
2026-11-23  4:14   ` + squashfs-check-index-isnt-greater-than-s64_max-in-squashfs_read_data.patch added to mm-nonmm-unstable branch Andrew Morton
2026-11-25  5:42   ` [to-be-updated] squashfs-check-index-isnt-greater-than-s64_max-in-squashfs_read_data.patch removed from -mm tree Andrew Morton
2026-11-23  4:13 ` [PATCH v3 00/23] Squashfs: fix a lot of AI issues and AI style issues Andrew Morton
2026-11-23  9:23 ` David Laight
2026-11-23 10:08   ` Phillip Lougher
2026-11-23 11:17     ` David Laight
2026-11-23 13:39     ` David Laight
     [not found] ` <[email protected]>
2026-11-23  9:43   ` Phillip Lougher [此消息]

文章标题:Squashfs 维护者:AI 辅助的挑错能力令人疲惫

正文:
      

回复说明:

你可以通过以下任意一种方式,用纯文本邮件公开回复本邮件:

  • 将以下 mbox 文件保存下来,导入你的邮件客户端,

并在那里执行全部回复:mbox

避免顶部回复,优先使用穿插引用: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  • 使用 git-send-email(1) 的 --to、--cc 和 --in-reply-to

选项进行回复:

git send-email \ --in-reply-to=20261123094313.336001b6251857b182339e6a@squashfs.org.uk \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ /path/to/YOUR_REPLY

https://kernel.org/pub/software/scm/git/docs/git-send-email.html

  • 如果你的邮件客户端支持通过 mailto: 链接设置 In-Reply-To 头,

可以试试这个 mailto: 链接


        
      

这是若干公共收件箱的外部索引, 有关如何克隆和镜像此外部索引所用全部数据和代码的说明,请参见镜像说明。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗