Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting files causes cryfs crash / freeze #452

Open
tobrunn opened this issue Apr 29, 2023 · 0 comments
Open

Deleting files causes cryfs crash / freeze #452

tobrunn opened this issue Apr 29, 2023 · 0 comments

Comments

@tobrunn
Copy link

tobrunn commented Apr 29, 2023

Expected Behavior

You should be able to delete files in a mountpoint of a cryfs basedir.

Actual Behavior

When trying to delete a file in a mountpoint where a cryfs basedir with 30GB Data is mounted it takes extremly long and mostly the shell freezes completely. Even log-off and log-in does not stop cryfs. You have to kill it which leads to filesystem corruption.

Steps to Reproduce the Problem

$ cryfs -o noatime /net/server/basedir /home/user/mountpoint
CryFS Version 0.11.3

Password:
Deriving encryption key (this can take some time)...done


Filesystem configuration:

  • Filesystem format version: 0.10
  • Created with: CryFS 0.11.3
  • Last opened with: CryFS 0.11.3
  • Cipher: xchacha20-poly1305
  • Blocksize: 16384 bytes
  • Filesystem Id:#########################

Mounting filesystem. To unmount, call:
$ cryfs-unmount "/home/user/mountpoint"

[user@arch30 ~]$ dd if=/dev/urandom of=testfile.dat bs=1M count=100
100+0 Datensätze ein
100+0 Datensätze aus
104857600 Bytes (105 MB, 100 MiB) kopiert, 0,39901 s, 263 MB/s
[user@arch30 ~]$ sync
[user@arch30 ~]$ rsync -a --info=progress2 testfile.dat mountpoint/
104.857.600 100% 4,17MB/s 0:00:23 (xfr#1, to-chk=0/1)
[user@arch30 ~]$ rm /home/user/mountpoint/testfile.dat

FREEZE!

Specifications

  • CryFS Version: 0.11.3
  • Operating System (incl. Version):
    • Host:Arch Linux 6.2.12-arch1-1 x86_64 GNU/Linux
    • Server with basedir: DietPi (Debian) 5.4.230-odroidxu4 armv7l GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant