hn.today

Squashfs: Fix a lot of AI issues and AI style issues

lkml.iu.edu230 points190 comments
Screenshot of Squashfs: Fix a lot of AI issues and AI style issues

A Linux kernel discussion centers on a 23-patch series that hardens and revises Squashfs after AI-assisted code reviews identified possible defects. Andrew Morton tested parts of the series and raised concrete concerns: patch 08 still crashes when dynamic debugging triggers a trace using a null inode; patch 10 rejects images with padding between metadata tables; patch 15 rejects compressed blocks as large as the filesystem block size; and patches 18-20 appear to apply different index checks depending on cache size. He also questioned whether stricter checks could reject images produced by existing tools, whether a regression fix should be reordered for stable kernels, and noted smaller documentation and naming errors. His tests covered builds and hand-made uncompressed images, but not the reproducers, compressed images, or xattrs.

Phillip Lougher, Squashfs’s maintainer, acknowledged the trace bug and several minor mistakes, but defended the stricter metadata rule as longstanding format behavior intended to prevent hidden or malicious data. He said the differing index checks were deliberate because other validation compensates, and explained that another patch addressed a regression. The exchange exposes a tension between using AI to find security and correctness issues and relying on context to judge its recommendations: Lougher says repeated, sometimes conflicting AI critiques have made the review process exhausting. He responds angrily to Morton’s feedback, accusing him of bullying over the patch series and saying he no longer wants Morton handling Squashfs, while declaring that he will not resign as maintainer.

Read on lkml.iu.edu190 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.