Return-Path: Received: from imap1.codethink.co.uk (imap1.codethink.co.uk [176.9.8.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Thu, 18 Jul 2019 12:16:39 +0200 (CEST) References: <40fa6a57-ac08-1f50-dbce-cadefcbf1ff4@codethink.co.uk> <0ce29b38-3f32-d2bc-651e-071075941d43@gmail.com> <82572fe1-20a7-64b5-4fa7-ba48f2265bcb@codethink.co.uk> <88b955e7-4eaa-a427-efc6-8de50e066758@gmail.com> From: Tom Eccles Message-ID: <4d3d02ff-2d90-1d34-5289-8571a5d0b949@codethink.co.uk> Date: Thu, 18 Jul 2019 11:16:38 +0100 MIME-Version: 1.0 In-Reply-To: <88b955e7-4eaa-a427-efc6-8de50e066758@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] veritysetup forward error correction failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Milan Broz , dm-crypt@saout.de Cc: richardmaw@codethink.co.uk On 18/07/2019 10:50 am, Milan Broz wrote: > On 18/07/2019 11:10, Tom Eccles wrote: >> tomeccles@debian-kernel-builder:~$ uname -a >> Linux debian-kernel-builder 4.19.37-verity #6 SMP Wed Jul 17 11:47:38 BST >> 2019 x86_64 GNU/Linux >> tomeccles@debian-kernel-builder:~$ /usr/sbin/veritysetup --version >> veritysetup 2.1.0 >> >> I can also reproduce the issue using veritysetup 2.2.0-rc1. > > Thanks, the best would be to create an issue for cryptsetup project > https://gitlab.com/cryptsetup/cryptsetup/issues > (if it is a kernel bug we report it there later) I will create an issue once I have images to reproduce the issue. > I will need some images (or a script to create them) to reproduce it though. I am working on this. I want to see if I can reproduce with much smaller filesystem images so as to keep things simple (currently I am using a full Debian rootfs). > ... > >> Also, I tried adding some prints to veritysetup and the kernel, and on the >> face of it, the reed-solomon state (struct rs in veritysetup) seems the >> same. > > AFAIK the kernel and our code was based on the same libfec code, > so I am quite interested to find out what is the difference here. See struct rs_codec in kernel/include/linux/rslib.h:34 /** * struct rs_codec - rs codec data * * @mm: Bits per symbol * @nn: Symbols per block (= (1< (It can take some time though, the userspace FEC image verification was > implemented by my student that already disappeared from the project :) > > Thanks, > Milan >