Package: encfs Version: 1.2.5-1-1+b2 Severity: normal
Hello, I want to use EncFS to encrypt data that are stored on NFSv4 server. The server is not under my control and I want to keep data protected against reading by admin of the NFS server. So I mounted nfs4 filesystem, made two empty directories: backup.encfs and backup.plain and run: encfs /nfs4/backup.encfs/ /nfs4/backup.plain/ Initial setup went OK, a file named .encfs appeared in backup.encfs, and I was able to mount, umount, and cd into backup.plain. However when I wanted to create a file in encfs mounted backup.plain, i got a kernel BUG at fs/nfs/nfs4xdr.c:870! I searched the net and found some issues about nfs4 but they were not related. I tried to upgrade kernel to etchandahalf and the bug is the same, just on different line number. In both cases it is the function encode_share_access, and the line BUG(). static void encode_share_access(struct xdr_stream *xdr, int open_flags) { uint32_t *p; RESERVE_SPACE(8); switch (open_flags & (FMODE_READ|FMODE_WRITE)) { case FMODE_READ: WRITE32(NFS4_SHARE_ACCESS_READ); break; case FMODE_WRITE: WRITE32(NFS4_SHARE_ACCESS_WRITE); break; case FMODE_READ|FMODE_WRITE: WRITE32(NFS4_SHARE_ACCESS_BOTH); break; default: BUG(); #### HERE #### } WRITE32(0); /* for linux, share_deny = 0 always */ } It seems to me as if encfs is trying to open a file which is neither for reading nor for writing, which is obviously nonsense and therefore rejected. Unfortunately both the encfs and nfs4 mounts hang and cannot be unmounted until reboot. -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-686-bigmem Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages encfs depends on: ii fuse-utils 2.5.3-4.4 Filesystem in USErspace (utilities ii libc6 2.3.6.ds1-13etch8 GNU C Library: Shared libraries ii libfuse2 2.5.3-4.4 Filesystem in USErspace library ii libgcc1 1:4.1.1-21 GCC support library ii librlog1c2a 1.3.7-1 flexible message logging library ii libssl0.9.8 0.9.8c-4etch4 SSL shared libraries ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 encfs recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org