[PATCH 1/1 v10] x86/power use crc32 instead of md5 for hibernation e820 integrity check

2021-04-20 Thread Chris von Recklinghausen
erify the consistent of e820 memory map by md5 digest") Reviewed-by: Eric Biggers Tested-by: Dexuan Cui Reviewed-by: Dexuan Cui Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code

[PATCH 1/1 v9] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-20 Thread Chris von Recklinghausen
erify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code change) v3 -> v4 add note to comments that md5 isn't used

[PATCH 1/1 v9] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-16 Thread Chris von Recklinghausen
erify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code change) v3 -> v4 add note to comments that md5 isn't used

[PATCH v8 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-15 Thread Chris von Recklinghausen
inadvertent deviations. Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code

[PATCH v7 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-13 Thread Chris von Recklinghausen
inadvertent deviations. Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code change) v3 -> v4 add note to comments that md5 isn't used for encryption here. v4 -> v5 reword c

Re: [PATCH v6 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-12 Thread Chris von Recklinghausen
On 4/12/21 3:27 PM, Ard Biesheuvel wrote: On Mon, 12 Apr 2021 at 21:20, Eric Biggers wrote: On Mon, Apr 12, 2021 at 03:04:58PM -0400, Chris von Recklinghausen wrote: On 4/12/21 1:45 PM, Eric Biggers wrote: On Mon, Apr 12, 2021 at 10:09:32AM -0400, Chris von Recklinghausen wrote: Suspend

Re: [PATCH v6 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-12 Thread Chris von Recklinghausen
On 4/12/21 3:20 PM, Eric Biggers wrote: On Mon, Apr 12, 2021 at 03:04:58PM -0400, Chris von Recklinghausen wrote: On 4/12/21 1:45 PM, Eric Biggers wrote: On Mon, Apr 12, 2021 at 10:09:32AM -0400, Chris von Recklinghausen wrote: Suspend fails on a system in fips mode because md5 is used for

Re: [PATCH v6 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-12 Thread Chris von Recklinghausen
On 4/12/21 1:45 PM, Eric Biggers wrote: On Mon, Apr 12, 2021 at 10:09:32AM -0400, Chris von Recklinghausen wrote: Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. This patch changes the integrity check algorithm

[PATCH v6 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-12 Thread Chris von Recklinghausen
grity check. Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code change) v3

Re: [PATCH v4 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-09 Thread Chris von Recklinghausen
On 4/9/21 12:56 PM, David Laight wrote: From: Chris von Recklinghausen Sent: 08 April 2021 11:46 Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. Prior to this patch, MD5 is used only to create a digest to ensure

Re: [PATCH v5 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-08 Thread Chris von Recklinghausen
On 4/8/21 11:30 AM, Eric Biggers wrote: On Thu, Apr 08, 2021 at 09:15:06AM -0400, Chris von Recklinghausen wrote: Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. This patch changes the integrity check algorithm

[PATCH v5 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-08 Thread Chris von Recklinghausen
Dexuan Cui Reviewed-by: Dexuan Cui Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code change) v3 -> v4 add note to comments that md5 isn't used for encryption here. v4 -> v5

[PATCH v4 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-08 Thread Chris von Recklinghausen
Dexuan Cui Reviewed-by: Dexuan Cui Signed-off-by: Chris von Recklinghausen --- v1 -> v2 bump up RESTORE_MAGIC v2 -> v3 move embelishment from cover letter to commit comments (no code change) v3 -> v4 add note to comments that md5 isn't used for encryption here. arch/x8

[PATCH v3 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-07 Thread Chris von Recklinghausen
use crc32 instead of md5 since crc32 is available in both FIPS and non-FIPS modes. Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest") Tested-by: Dexuan Cui Reviewed-by: Dexuan Cui Signed-off-by: Chris von Recklinghausen --- v1 ->

Re: Fix hibernation in FIPS mode?

2021-04-01 Thread Chris von Recklinghausen
On 4/1/21 9:38 AM, Rafael J. Wysocki wrote: On Thu, Apr 1, 2021 at 10:47 AM Ard Biesheuvel wrote: On Tue, 30 Mar 2021 at 21:56, Simo Sorce wrote: On Tue, 2021-03-30 at 21:45 +0200, Ard Biesheuvel wrote: On Tue, 30 Mar 2021 at 20:05, Simo Sorce wrote: On Tue, 2021-03-30 at 16:46 +0200, Rafa

[PATCH v2 0/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Chris von Recklinghausen
. This patch set changes the integrity check to use crc32 instead of md5 since crc32 is available in both FIPS and non-FIPS modes. Chris von Recklinghausen (1): use crc32 instead of md5 for hibernation e820 integrity check arch/x86/power/hibernate.c | 35 +++ 1 file

[PATCH v2 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Chris von Recklinghausen
Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- arch

[PATCH 0/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Chris von Recklinghausen
. This patch set changes the integrity check to use crc32 instead of md5 since crc32 is available in both FIPS and non-FIPS modes. Chris von Recklinghausen (1): use crc32 instead of md5 for hibernation image integrity check arch/x86/power/hibernate.c | 31 +-- 1 file

[PATCH 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Chris von Recklinghausen
Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. Fixes: 62a03defeabd ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest") Signed-off-by: Chris von Recklinghausen --- arch

Re: Fix hibernation in FIPS mode?

2021-03-30 Thread Chris von Recklinghausen
On 3/30/21 10:46 AM, Rafael J. Wysocki wrote: On Tue, Mar 30, 2021 at 12:14 AM Dexuan Cui wrote: Hi, MD5 was marked incompliant with FIPS in 2009: a3bef3a31a19 ("crypto: testmgr - Skip algs not flagged fips_allowed in fips mode") a1915d51e8e7 ("crypto: testmgr - Mark algs allowed in fips mode"