Gentoo Archives: gentoo-user

From: Alexander Puchmayr <alexander.puchmayr@×××××××.at>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Cryfs error Crashed Deserialization failed - missing nullbyte for string termination
Date: Tue, 01 Nov 2022 18:50:41
Message-Id: 1832171.tdWV9SEqCh@zeus
1 Hi there,
2
3 I just encountered a weird problem when trying to access my kde-plasma vault.
4 Although I entered the correct password, it refused to open. Journalctl shows
5
6 Nov 01 18:41:50 zeus kded5[1348]: OUT: "CryFS Version 0.10.3\n\nPassword:
7 \nDeriving encryption key (this can take some time)...done\n"
8 Nov 01 18:41:50 zeus kded5[1348]: ERR: "[2022-11-01 18:41:50.894] [Log]
9 [error] Crashed: Deserialization failed - missing nullbyte for string
10 termination\n"
11
12 Using cryfs on the command line shows the same thing:
13
14 alex@zeus ~ $ cryfs .local/share/plasma-vault/Privat.enc Vaults/Privat/
15 CryFS Version 0.10.3
16
17 Password:
18 Deriving encryption key (this can take some time)...done
19 [2022-11-01 18:49:24.052] [Log] [error] Crashed: Deserialization failed -
20 missing nullbyte for string termination
21
22 Googling this error shows exactly 3 (!) matches, the most useful is assuming a
23 corruption on the file system; so I compared with backup, even more than
24 several months ago. No changes, the files are identical and the backup is OK.
25
26 Next, I copied the encrypted files from .local/share/plasma-vault to an ubuntu
27 installation (kubuntu-2020-04LTS which uses cryfs 0.10.2 instead of 0.10.3
28 that gentoo uses) , and there the container opened fine.
29
30 It looks like as if gentoo's cryfs 0.10.3-r1 cannot open the container,
31 ubuntu's 0.10.2 can. What's wrong with the gentoo version? Any ideas?
32
33 Thanks in advance