Skip to content

Corrupted squashfs when running mksquashfs with zstd compression. #306

@gs0510

Description

@gs0510

Hi! We have been using mksquashfs with zstd compression, and after a few iterations of compression + we see a corruption in squashfs file. The error message is:

zstd uncompress failed with error code 10

FATAL ERROR: writer: failed to read/uncompress file temp/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/typescriptServices.d.ts

Looking at the kernel logs, we see:

Squashfs error: FATAL ERROR: Can't find a valid SQUASHFS superblock on <some-random-id>

Interestingly, this only happens after a few iterations of running mksquashfs and then using the file. And creating another squashfs file from the mounted squashfs file. This only happens for zstd and not any other compression algorithm. Would you know what could be causing this problem? Thank you!

squashfs-tools version: 4.6

zstd version: 1.5.5

uncompressed cache size: 2.5 Gb

compressed cache size: 536Mb

Metadata

Metadata

Assignees

Labels

triageissue being assessed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions