Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nsLP2-00019N-VT for mharc-grub-devel@gnu.org; Sat, 21 May 2022 05:28:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsLOy-00018O-Nz for grub-devel@gnu.org; Sat, 21 May 2022 05:28:00 -0400 Received: from jpoiret.xyz ([206.189.101.64]:44892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsLOw-00030B-DS for grub-devel@gnu.org; Sat, 21 May 2022 05:27:59 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 83061184EFE; Sat, 21 May 2022 09:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1653125271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uU/l6qswcImoP2djBJoBAerHSJyPvTFWzl2TLNbT/3g=; b=MfUmT4fB4jSXP4Vw8IV7bvtQ7VBvY1EiS62QgD2J+e7CCJVztxybNbgeVRzuH7zD6HzC9C 1Dli2A77QfCox3gwWie5nLmgJscfSsd+HghocKnJhUiwES+FVUb7lnRLKOu9T+cY5l0EpI LbyHxSBoyefRoGzqC4RxZhn/rmwMgoMRyhk6IQEJezrhnfHg1pqzFRq9jDmhL3n/VYGppK ViSEHI/Mb2Nz+6q6oueSW1glXbCNSEBCZi/rn5aRt8pGLcvxpFtle37N9a31klvYI9/DEk dCrRqpn1EgsH4Qlc9tz3aFvGIjQ1zT2stOCer5ntwV4r3yyAhSdfjMvZGV41tA== From: Josselin Poiret To: development@efficientek.com Cc: grub-devel@gnu.org Subject: Re: [PATCH v3 2/2] devmapper/getroot: Set up cheated LUKS2 cryptodisk mount from DM parameters In-Reply-To: <20220520192035.313b5ede@crass-HP-ZBook-15-G2> References: <20220512173852.5cb23d65@crass-HP-ZBook-15-G2> <20220520182039.21654-1-dev@jpoiret.xyz> <20220520182039.21654-3-dev@jpoiret.xyz> <20220520192035.313b5ede@crass-HP-ZBook-15-G2> Date: Sat, 21 May 2022 11:27:48 +0200 Message-ID: <87wnef1bhn.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spamd-Bar: / Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.997, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2022 09:28:02 -0000 Hello Glenn, Glenn Washburn writes: > After reviewing this, I stumbled upon Fabian's patch. I wrote a > response on the thread of that patch with the suggestion that his patch > be used to get the total number of sectors and sector size and this > patch be used to get the crypto information. This would obviate the > problematic parsing part of this patch. What do you think about > removing all the parsing code after the setting of cryptodisk->hash? I just read that mail, and it does seem like the proper way (I don't need much convincing to remove most of that ugly parsing code!). I'll send a cleaned up patch later with all the logic errors adressed, and without the further sector size code. Best, -- Josselin Poiret