Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2833008pxb; Mon, 19 Apr 2021 15:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn0r5poM8mWJQLll4bf7YHrU3pSZ6JBWoJ7U8yLlxshl/RUfEq7NATzUPfN/jmid3zzeeB X-Received: by 2002:a17:90a:8809:: with SMTP id s9mr1492699pjn.174.1618871248725; Mon, 19 Apr 2021 15:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618871248; cv=none; d=google.com; s=arc-20160816; b=i/9W6/GAkslyMecXDpP1TAuRt0zHGBfFPHO3eIILHAl/F4U5ll/MQZJ7jyGLeKXbx3 evKBxOG6FUJYKbLLSMcryj14lk+xdBOvMJdtlPuuH34cSLd8QryNBUr7qkDGd5AMT5U4 uUbOqkf+bls62pF9TcZU9nS1NUu1o/NESfotmDxxLAZSddH5te/SbBr5biCq5xxe9b+t xdQHQQgDL2MisKEuwYhLRVUMufYun2hx+WBVUHyf7eqCAPxuEgsdBbCrnnBFKmWhPXPM Jj8D2pEiAgyyP+dL7F9MwnXLRsc/11siRlGLM3zDL/751MKP6vjgUx78t2LabklGSMDp Af1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WFdRXrAWCiinVOp5uJ+ASTkLzex7WuVRgli2GGe8bEo=; b=oQOVE0oIgu9iucKE81oMFnknePH2USkQuxHn9tMGU/I/Z1rl1yD9rwZNxlcaG/NM0L D7p43ALTouKi0FlT4BkG3ln0TwR3Tqwz8/4nu5AUzR6PfpeLbqlOsn6GPGSZVV1oS6Gt jPcW4O8scYK3q4cmrFiSaQgLyuerMrGR09fPw9gGoqpJEyi7CjwMynZJwF6Vu9rAr14I 7TFgIQvZjW1Uadtz3G9XXJ9dmc0qmvPG3Ci1bnMvyeR8QuH14AoibxLtk2eLdDPuiNLg esL+imbDhVNlwm02+alqSCZ1iufyMsAb7oryJxJmtQ2zp11zk+d8dANXdUG31gJcVk7c PLKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VMgB1sFI; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si819851pjq.75.2021.04.19.15.27.06; Mon, 19 Apr 2021 15:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VMgB1sFI; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231579AbhDSWRX (ORCPT + 99 others); Mon, 19 Apr 2021 18:17:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:48840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbhDSWRX (ORCPT ); Mon, 19 Apr 2021 18:17:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A6CD61077; Mon, 19 Apr 2021 22:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618870612; bh=qRooJuDbQ+D+m6HobSIVP6DCMoUZC3we2TUQA6ENpSs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VMgB1sFI1Tn3I4bsx2aEhICJD1WjRUQ4jdAvLBctLLJ1J2HBvzBw0hwpdVHLPhFZq DC84xZTg6CW642MyIMsYNTDztNu7FioZ+4p0edAT5UUmuw6kiBkgy74C9vXIiQITux 8mNqrbI30uSpiTh6wwdiyI2+fFjPaUDVnlYHCUymz4hO6HXnA9jsLcFqdxqR78uHAh 1bVWDt/ZXk8HHcry7MrAqLRWqjetuifKXcEZdi8+nJPzWJDAWEcYbdJ9pzOLuyFyj5 gzpyNKM0Oi2UZrnY0wamBYhEX61a99zxd46FdGagye58eyZdPhDaNP/V/lLsInbmFP pXryfAo5s3GBA== Date: Mon, 19 Apr 2021 15:16:51 -0700 From: Eric Biggers To: Chris von Recklinghausen Cc: ardb@kernel.org, simo@redhat.com, rafael@kernel.org, decui@microsoft.com, linux-pm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1 v9] use crc32 instead of md5 for hibernation e820 integrity check Message-ID: References: <20210416131655.22112-1-crecklin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416131655.22112-1-crecklin@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Apr 16, 2021 at 09:16:55AM -0400, Chris von Recklinghausen wrote: > Hibernation fails on a system in fips mode because md5 is used for the e820 > integrity check and is not available. Use crc32 instead. Doesn't the commit title need to be prefixed with something like "x86/power"? > The check is intended to detect whether the E820 memory map provided > by the firmware after cold boot unexpectedly differs from the one that > was in use when the hibernation image was created. In this case, the > hibernation image cannot be restored, as it may cover memory regions > that are no longer available to the OS. > > A non-cryptographic checksum such as CRC-32 is sufficient to detect such > inadvertent deviations. > > Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map > by md5 digest") The "Fixes" line shouldn't be line-wrapped. Otherwise this looks fine. The explanation in the commit message still isn't great, but it's much better than it was before. You can add: Reviewed-by: Eric Biggers - Eric