FS#77914 - [squashfs-tools] core dump on files with ACLs

Attached to Project: Arch Linux
Opened by nl6720 (nl6720) - Monday, 20 March 2023, 07:08 GMT
Last edited by Christian Hesse (eworm) - Monday, 20 March 2023, 15:01 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Christian Hesse (eworm)
David Runge (dvzrv)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

squashfs-tools 4.6-1 core dumps when packing files with POSIX ACLs.


Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /tmp/test.sfs, block size 131072.
Unrecognised xattr prefix ��e��U
free(): invalid pointer
[1] 17247 IOT instruction (core dumped) mksquashfs /tmp/sfstest /tmp/test.sfs -noappend



The "thing" after "Unrecognised xattr prefix" changes each time.
While squashfs does not support them, it never had a problem packing files and simply skipping the ACLs. With squashfs-tools 4.5.1-3 it worked fine, it simply complained.


Unrecognised xattr prefix system.posix_acl_default
Unrecognised xattr prefix system.posix_acl_access



Strangely, when run by mkarchiso, it didn't coredump. The warning text was still different than before, though.


Unrecognised xattr prefix (null)



Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
squashfs-tools 4.6-1


Steps to reproduce:
$ mkdir /tmp/sfstest /tmp/sfstest/test1
$ setfacl -m 'g:wheel:r' /tmp/sfstest/test1
$ setfacl -d -m 'g:wheel:r' /tmp/sfstest/test1
$ mksquashfs /tmp/sfstest /tmp/test.sfs -noappend
This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 20 March 2023, 15:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  squashfs-tools 4.6-2
Comment by Toolybird (Toolybird) - Monday, 20 March 2023, 07:47 GMT
Have you reported upstream? It looks like there were a fair few changes in xattr.c, some only very recently. Backtraces attached.
Comment by nl6720 (nl6720) - Monday, 20 March 2023, 07:57 GMT Comment by Christian Hesse (eworm) - Monday, 20 March 2023, 08:17 GMT
Dropped from [testing], subscribed the upstream issue. Thanks!

Loading...