Bug 256790

Summary: sysutils/squashfs-tools: unsquashfs fails with error: "failed to read file system tables"
Product: Ports & Packages Reporter: Rodrigo Osorio <rodrigo>
Component: Individual Port(s)Assignee: Alexey Dokuchaev <danfe>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: regression
Priority: --- Flags: bugzilla: maintainer-feedback? (danfe)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/plougher/squashfs-tools/issues/120

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(-)