Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#50789 - [encfs] 1.9-2 causes coredump and possible data loss

Attached to Project: Community Packages
Opened by Star Brilliant (m13253) - Thursday, 15 September 2016, 18:06 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 30 July 2017, 10:47 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After upgrading to encfs 1.9-2, using pam_encfs to automatically decrypt home directory causes coredump.
I can not confirm whether it is a bug of encfs or a bug of pam_encfs.
Log attached in log.txt.
I reproduced it 3 times. But sorry I did not manage to debug the program, because I can not afford any data loss.
Downgrading to 1.8.1-7 solves the problem.

Additional info:
encfs: 1.9-2
pam_encfs: 0.1.4.4-4
config files attached in log.txt
   log.txt (24.9 KiB)
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Sunday, 30 July 2017, 10:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in latest stable release v1.9.2
Comment by Star Brilliant (m13253) - Thursday, 15 September 2016, 18:36 GMT Comment by Jaroslav Lichtblau (Dragonlord) - Thursday, 15 September 2016, 19:29 GMT
Arch's encfs was build with the latest stable tinyxml2 (v4.0.1). As a start, you might want to try building encfs via ABS using the internal tinyxml2 version by deleting line 27 (-DUSE_INTERNAL_TINYXML=OFF \) from the PKGBUILD (https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/encfs). Let's see if that makes a difference. Else than this, there was nothing more changed on the packagin side by myself.
Comment by Star Brilliant (m13253) - Friday, 16 September 2016, 02:48 GMT
Thank you.
I think it's the upstream issue.

I found the crash was on encfs::FileNode::open(int) (https://github.com/vgough/encfs/blob/v1.9/encfs/FileNode.cpp#L180)
It is a 3-line function.
There are two possibilities:
1. The mutex is invalid.
2. The pointer "io" is null or invalid.

I will contact the upstream for more info on this bug.
Comment by Jakob Unterwurzacher (rfjakob) - Thursday, 27 July 2017, 07:08 GMT
Fixed in EncFS v1.9.2, released two day ago.

Loading...