#1148774 libpam-fscrypt: session open hangs and blocking all SSH logins

Package:
libpam-fscrypt
Source:
libpam-fscrypt
Description:
PAM module for Linux filesystem encryption
Submitter:
Antonio
Date:
2026-09-23 14:43:02 UTC
Severity:
normal
#1148774#5
Date:
2026-09-23 10:51:05 UTC
From:
To:
Dear Maintainer,
I could describe the bug, but since it is a complex topic for me, I
prefer to
share the analysis performed using local AI; it goes into detail and
provides
an alternative solution as well as guidance on how to fix the issue.
For now, to resolve the issue, I removed the libpam-fscrypt package.

Thanks,
Antonio

#1148774#10
Date:
2026-09-23 14:41:51 UTC
From:
To:
I applied the proposed fix, rebuilt and installed the new package, and
re-ran the tests.

It no longer freezes, so the problem appears to be resolved.
--- fscrypt-0.3.7/filesystem/mountpoint.go +++ fscrypt-0.3.7/filesystem/mountpoint.go @@ -300,6 +300,14 @@ func readMountInfo(r io.Reader) error {             continue         } +       // Skip FUSE filesystems to avoid blocking on unresponsive FUSE daemons. +       // This prevents a deadlock scenario where sshfs mounts a remote filesystem +       // while sshd is blocked in PAM session opening (waiting for SFTP data), +       // creating a circular dependency that hangs indefinitely. +       if strings.HasPrefix(mnt.FilesystemType, "fuse") { +           continue +       } +         // We can only use mountpoints that are directories for fscrypt.         if !isDir(mnt.Path) {             log.Printf("ignoring mountpoint %q because it is not a directory", mnt.Path)