Osegi
Software·2 min read

SquashFS maintainer almost quit over AI bug reports

Phillip Lougher, who created the SquashFS file system, says he nearly gave up maintaining it after a clash over AI-generated patch reviews with Andrew Morton.

A developer at a desk reviewing lines of kernel code on a monitor late at night.
Image: Хабр

The SquashFS maintainer nearly walked away from the Linux kernel. Phillip Lougher, who created the compressed file system, says a flood of AI-generated bug reports and a dispute with veteran developer Andrew Morton brought him close to quitting.

Lougher has now posted a large patch series. In his description, he says it is a reaction to the recent stream of reports about code produced with AI help. Four patches fix problems found directly by AI tools. The rest came out of his own manual review and testing.

Most of the fixes, apart from patches 1 to 8 and 18 to 20, deal with variable overflow, arithmetic overflow, wrong signedness (whether a number can be negative) and missing checks on data read from disk. Bugs like these can crash code and may be exploitable. Patches 18, 19 and 20 address excessive memory use. The old code dates from when SquashFS images were small, but on very large file systems it could try to allocate anywhere from over 4 MB up to 64 MB.

The series has already led to an interim set of patches meant to cut the noise created by AI tools.

What did Lougher say to Andrew Morton?

Morton, a longtime Linux developer who maintains the memory management subsystem, suggested asking Claude to review the SquashFS patches. Lougher's answer was blunt. He said AI lacks context and deep understanding, that its answers can contradict each other depending on how deep the analysis goes, and that this can trap you in a pointless loop. He told Morton he no longer wanted him working on SquashFS, and that he was nearly ready to quit over the harassment. He would not, he wrote, because then Morton would have won.

The technical back and forth continued. A review raised a compatibility question about images where the compressed block size equals the file system block size. Lougher said he added a ban because of a note from the Sashiko review tool. Morton then showed an image with eight extra bytes between metadata tables that the old code accepted and the fixed code rejects. Lougher replied that such padding has violated the SquashFS format since 2002. One finding did hold up: squashfs_lookup() could dereference a NULL pointer with debug output enabled. Lougher admitted the mistake, and Morton later confirmed the fix in v4.

Elsewhere, kernel developer Greg Kroah-Hartman proposed removing about 9,000 lines of code for the vme_user driver, which supports the roughly 40-year-old VME bus. The reason was a wave of AI-generated bug reports.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:squashfslinux kernelai code reviewandrew mortonopen source

More from this day

See all →

More in: Software

See all →