Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp685598pxf; Thu, 1 Apr 2021 10:53:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEaE6ZMQFxsS4vUc2g0GejurRHmvjPxtxReZFwoXhwyveqI+N4MQAN8GKY6lpVuKWAwcMq X-Received: by 2002:a02:c894:: with SMTP id m20mr9181918jao.80.1617299604499; Thu, 01 Apr 2021 10:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299604; cv=none; d=google.com; s=arc-20160816; b=ueCH6+CBH8/4nfTWNGE0ECLRZj+9alLkkxXyQim8HfezeVKyPkASdTvx5NbX3FDIB3 Fw/MY2YPqSVQl+S5XJJW8CUJ8oDkKo2KhojpRf/WkYu7vQoZ62j0QwW/Zs35Qv6bzM57 z3jIJ9Nrwnc98F3dDaVqBOoxF3VoXVapvUdnuV5+deMKzAJxzXkQJc6gbW+wJXuagP5R XdaawIX9Db++Ve4KKeN6F5ax7WlRRgXCAeSGSsRGEogIHMaVxKWae7QDr15C5W89tuSG 8lzQ+tzJJWaWborYT/mvchdyoiEeo8Fy5ObzjVmJ7XPV6BcST1zPJn9CmLAu9P2hAiQ8 ng7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature; bh=PuFHoI6wZ2vqFN8F+7P4hon8RWN2+MjgjmIvpt1EN7A=; b=GExsssT+SkSdPuiF/zO0iNGetH7a8nz8+3SoSeoNNl498+7u5lubmD/GOgJ7mjfvZL zCV5ShqhrYSgAddg8eCG7r5lKuzmybGBSUHAQ2X7EtwZtmr0E79NAlE3RkEeAzpNCJPM oOcTXcY3LSvFn2PCKSs3AeEEmlpcql+KsMSeripRT/dLfsOvyDAKgp0SDxKAJ8MIQtCn Rj/nIuADdAxBC8yNxKiAgjmWvRTsEjipW+T4P9kxy1rXC/nBnwHn12Y9JdN0ZuKg7oZj XWB/Ksq1A4q53NsUvW8un3kxXzEwzDkIDgsy3lt0jgm8T/lz2lMHFYqcaVhq+JxGAc4l asUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HOc1hJKF; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si5371413jat.62.2021.04.01.10.53.11; Thu, 01 Apr 2021 10:53:24 -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=@redhat.com header.s=mimecast20190719 header.b=HOc1hJKF; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235234AbhDARw4 (ORCPT + 99 others); Thu, 1 Apr 2021 13:52:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39013 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234184AbhDARoC (ORCPT ); Thu, 1 Apr 2021 13:44:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617299041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=PuFHoI6wZ2vqFN8F+7P4hon8RWN2+MjgjmIvpt1EN7A=; b=HOc1hJKFzmXCdJU6jeBCcfXNSwbW1LCM9p1C74qk3cIdndcLN1xvVAsSglpicy4xk++cUJ SJRJbi+7juHrYieeGBsPW/0aflBLEvjjgqrXCsEic1nvM4ntmf2Vje08/hN8o0snerYiJS luG6ZHcnTR9MujAh2jaJDyr3oXl4k64= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-187-lgkESsc8PAKfec_O1C3O2g-1; Thu, 01 Apr 2021 12:42:57 -0400 X-MC-Unique: lgkESsc8PAKfec_O1C3O2g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 767721005D61; Thu, 1 Apr 2021 16:42:49 +0000 (UTC) Received: from crecklin.bos.com (unknown [10.22.8.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C88C5D9CC; Thu, 1 Apr 2021 16:42:43 +0000 (UTC) From: Chris von Recklinghausen To: 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: [PATCH v2 0/1] use crc32 instead of md5 for hibernation e820 integrity check Date: Thu, 1 Apr 2021 12:41:44 -0400 Message-Id: <20210401164145.8051-1-crecklin@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Currently, suspend on x86_64 fails when FIPS mode is enabled because it uses md5 to generate a digest of the e820 region. MD5 is not FIPS compliant so an error is reported and the suspend fails. MD5 is used only to create a digest to ensure integrity of the region, no actual encryption is done. 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 changed, 19 insertions(+), 16 deletions(-) -- v1 -> v2 bump up RESTORE_MAGIC 2.18.1