SquashFS Developer Posts 23 Fixes After AI Reports, Then Asks a Maintainer to Step Away Over AI Review
On November 25, 2026, Lougher posted the fourth revision of a 23-patch series to the Linux kernel mailing list. Numerous AI-generated code reports had prompted him to investigate.
Only four patches directly address issues identified by AI. Lougher found the other 19 while rereading and testing the code himself. AI prompted the investigation, and human review uncovered most of the defects.
The fixes cover variable and arithmetic overflows, mixing signed and unsigned integers, and insufficient validation of data read from disk. The series documents the security impact of these defects. In some cases, a tampered SquashFS image could let unauthorized users read files.
Another problem involved code dating back to when SquashFS file systems were smaller. With a large file system, it could attempt allocations of more than 4 MiB and up to 64 MiB. Patches 18 through 20 add caches that cap usage at four pages.
The first six patches convert old #define macros to inline functions. Explicit types make widths and signedness clear and prepare the code for later validation checks. The AI reports led SquashFS's creator and developer to revisit oversights in code he wrote more than 20 years ago.
AI review runs up against the specification
On November 23, longtime Linux memory management maintainer Andrew Morton responded to Lougher's third revision. Morton ran the patches through Anthropic's Claude Fable and sent Lougher the results on the mailing list.
Morton said he had run the series through Claude Fable to be a bit of a pest. Many suggestions looked optional, but he queued a fix for a mistake in patch 8 of 23.
Morton said Claude Fable could build a kernel in a sandbox and run it in a VM, unlike ChatGPT.
Lougher agreed with part of the review. He acknowledged a null pointer issue involving squashfs_lookup() and pr_debug. He attributed the mistake in patch 8 to carrying over inode from another function where this one called for dir.
He pushed back on other findings based on the SquashFS specification and design. In response to a concern about where a fragment index ends, he said the layout intentionally leaves no padding between metadata structures. That has been part of the SquashFS format since 2002. In his account, such padding would indicate an invalid or tampered image.
Lougher's frustration was clearer in the discussion of patch 15, a compressed block size check. He added it after the AI review system Sashiko flagged its absence. Now another AI was flagging its presence.
Morton also did technical verification. He built on x86-64 and on 32-bit systems, checked builds with and without CONFIG_SQUASHFS_XATTR, and confirmed reads from a small uncompressed file system containing fragment and export indexes with 2,049 entries. He had yet to run Lougher's regression cases or runtime tests on compressed images or extended attributes.
The androids are contradicting each other
Lougher's reply went beyond technical objections.
Lougher said he had no wish to make trouble for Morton but was exhausted by AI's ability to find fault with everything.
Lougher argued that a lack of context and insight magnifies problems and that different levels of analysis can produce contradictory answers. He described Sashiko and Claude Fable as androids contradicting each other rather than fighting, which he said was far less interesting.
Lougher asked Morton to stop handling SquashFS. He said he had considered stepping down from Linux kernel SquashFS maintenance but would stay because leaving would hand Morton a win. Phoronix was copied on the email.
Lougher described the fourth revision, posted November 25, as an intermediate patch set. Its purpose was to check whether it addressed the issues Sashiko raised in v3. If it did, the next step would be to deal with additional issues other AI systems had raised. That could prompt more Sashiko findings, he added.
Patch 8 is also intended to head off contradictory reasoning by Sashiko. It aims to stop the reviewer from getting tangled in the logic before and after a validation check added by a later patch. The same series contains fixes for the code and changes designed to keep the automated reviewer from misreading it.
Where SquashFS is used
SquashFS is a read-only Linux file system that compresses file contents and metadata such as inodes and directories. It supports zlib, LZ4, LZO, XZ, and Zstandard. Its read-only design and low memory footprint have made it widely used in embedded devices and software distribution.
Snap packages, used by Ubuntu and other distributions, also use SquashFS. Installed snaps are mounted as read-only SquashFS images, keeping package contents immutable.
The excessive memory use addressed by these patches stemmed from code written when SquashFS images were smaller. Compressing metadata is one of the format's strengths, but the old implementation no longer handled large file systems well. Lougher created SquashFS and maintains it in the Linux kernel. AI findings prompted him to revisit and fix his own code.
The AI-prompted human investigation found real defects, from overflows to excessive memory use. Lougher also had to verify the AI findings against the specification and the reasons behind the design. Checking the code and checking the AI's analysis both fell to the same developer.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
