Bug 256790 - sysutils/squashfs-tools: unsquashfs fails with error: "failed to read file system tables"
Summary: sysutils/squashfs-tools: unsquashfs fails with error: "failed to read file sy...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL: https://github.com/plougher/squashfs-...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-06-23 14:55 UTC by Rodrigo Osorio
Modified: 2022-03-27 10:50 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Osorio freebsd_committer freebsd_triage 2021-06-23 14:55:11 UTC
Since 4.4 update I can't unsquash my files anymore.
Every attempt stops with the following error :

unsquashfs rootfs.squashfs
Xattrs in filesystem! These are not supported on this version of Squashfs
File system corruption detected
FATAL ERROR:failed to read file system tables

Reinstalling squashfs 4.3_1 solves the issue.

I'm not sure but it seems that we still using SF repo, when development for
squashfs has moved to GH. 4.4 release was done around 2019/2020, and apparently
no official release is planned. Maybe taking the head of the main branch will
fix the issue.

I gonna take some time to investigate, this tool is required for my day to day job

Regards,
-- rodrigo
Comment 1 Alexey Dokuchaev freebsd_committer freebsd_triage 2021-07-26 02:23:25 UTC
Indeed, both 4.4 and recently released 4.5 refuse to work with filesystems which contain files with extended attributes.  I've filed the issue with upstream, hopefully we'd be able to resolve this quickly.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-03-27 10:46:36 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=812d78629a3dd8d0f622cd44a2262ed01e3d6297

commit 812d78629a3dd8d0f622cd44a2262ed01e3d6297
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-03-27 10:43:52 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-03-27 10:43:52 +0000

    sysutils/squashfs-tools: update the port to version 4.5.1 (finally)

    This is a long-awaited release which fixes known security issue [1]
    and regression when working with extended attributes [2].

    Install more complete documentation set while here and GC no longer
    needed CFLAGS+= and USE_CSTD knobs.

    Security:       CVE-2021-41072 [1]
    PR:             256790 [2], 261334

 sysutils/squashfs-tools/Makefile             | 30 +++++++++++++++++-----------
 sysutils/squashfs-tools/distinfo             |  6 +++---
 sysutils/squashfs-tools/files/patch-Makefile | 22 ++++++++++++--------
 3 files changed, 35 insertions(+), 23 deletions(-)