From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C371158020 for ; Tue, 1 Nov 2022 18:50:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D4B6E0BF6; Tue, 1 Nov 2022 18:50:37 +0000 (UTC) Received: from isp1.netcon.at (isp1.netcon.at [109.70.238.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A40D3E0BBB for ; Tue, 1 Nov 2022 18:50:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by isp1.netcon.at (Postfix) with ESMTP id 621F118E0A9E for ; Tue, 1 Nov 2022 19:50:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at isp1.netcon.intern Received: from isp1.netcon.at ([127.0.0.1]) by localhost (isp1.netcon.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VyGGlKhNpJnW for ; Tue, 1 Nov 2022 19:50:31 +0100 (CET) Received: from puchmayr.linznet.at (unknown [91.142.26.35]) by isp1.netcon.at (Postfix) with ESMTPS id 1258318E0A8A for ; Tue, 1 Nov 2022 19:50:31 +0100 (CET) Received: (qmail 11289 invoked from network); 1 Nov 2022 18:49:06 -0000 Received: from zeus.local (HELO zeus.localnet) (192.168.1.2) by mail.local with SMTP; 1 Nov 2022 18:49:06 -0000 From: Alexander Puchmayr To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Cryfs error Crashed Deserialization failed - missing nullbyte for string termination Date: Tue, 01 Nov 2022 19:50:30 +0100 Message-ID: <1832171.tdWV9SEqCh@zeus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: 1c0af9b5-e650-40c1-9375-065e30922de2 X-Archives-Hash: 85d2c5f014ab984168f67c7ebb864e0b Hi there, I just encountered a weird problem when trying to access my kde-plasma vault. Although I entered the correct password, it refused to open. Journalctl shows Nov 01 18:41:50 zeus kded5[1348]: OUT: "CryFS Version 0.10.3\n\nPassword: \nDeriving encryption key (this can take some time)...done\n" Nov 01 18:41:50 zeus kded5[1348]: ERR: "[2022-11-01 18:41:50.894] [Log] [error] Crashed: Deserialization failed - missing nullbyte for string termination\n" Using cryfs on the command line shows the same thing: alex@zeus ~ $ cryfs .local/share/plasma-vault/Privat.enc Vaults/Privat/ CryFS Version 0.10.3 Password: Deriving encryption key (this can take some time)...done [2022-11-01 18:49:24.052] [Log] [error] Crashed: Deserialization failed - missing nullbyte for string termination Googling this error shows exactly 3 (!) matches, the most useful is assuming a corruption on the file system; so I compared with backup, even more than several months ago. No changes, the files are identical and the backup is OK. Next, I copied the encrypted files from .local/share/plasma-vault to an ubuntu installation (kubuntu-2020-04LTS which uses cryfs 0.10.2 instead of 0.10.3 that gentoo uses) , and there the container opened fine. It looks like as if gentoo's cryfs 0.10.3-r1 cannot open the container, ubuntu's 0.10.2 can. What's wrong with the gentoo version? Any ideas? Thanks in advance