Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1297305rwl; Fri, 4 Nov 2022 12:09:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM51yngmIChvetcY28VFpZZg3TBltp6WC6x8eLMyJJ+DQsdiKVwLVQ86jUU880TXA3VkxJBJ X-Received: by 2002:a17:907:2bd2:b0:7ad:9ada:a6ca with SMTP id gv18-20020a1709072bd200b007ad9adaa6camr35053878ejc.637.1667588958267; Fri, 04 Nov 2022 12:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667588958; cv=none; d=google.com; s=arc-20160816; b=D2Y326b7ofEIjJ4Vwb32UhrVSDQWUnMTfDvDlBgtFHxD3mojqBIHbYBiy3X5YVyJgV eah1/433PD85Xn3KtBRZsk6i9Bgj4RZBmoz3UX5j8LaBCI2CgrpveouWGjLNRAlMN/lP L5k3R53iGn4iJmXRL/Zzkw1m1l+cwe/FdifOi6S3kgUcqPuv3Vi+20FUWprutzZT218G nwQF2ydbOe+S5C3WFXQd6Ca7+MTvLlhD8WkTNFCdm1S0NazvfDip533mmI+qxUvR1IDk to1Oqup1n5vE/UpOyP0nVrahbR9iCCSYS9fBkceE6gKttgKrMLHRxMLe8Hk+2y29eTH3 Tmtg== 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=GxUQcGD1ekL/2d9GXVQdlQ0tteAYOQEOTDd6IVlVtPY=; b=vRX5ebjQJy0r2Qm+SvAruwVfnlZAoL7/Ayjg1kaxsVQ6LO36UUpL3G+RRwaHIQkIXQ tMWMI4N+PlgJ0qZQrQsAL9L9cTQdvuefN6km4MFUlXi8BWvoL35GT/OFaH0UsVXSxpp4 xWCDFjWuypWDgRoglQPvJsvv1mav5hIBDV2SUphs8+KpzTJhHLrCwXsK8WTTCxstAAqs AbLN5nmvcx6qOhJj+alTUGC/SBlU+UomseHwsaNK9OI91kX5ubszctU9bVZqjgZGigBJ KzlinWBAcpMeoH50bqFwnXSn9J1m67h2EyfL50fzH07LRfN1WB73mU4D2UZeXee2R3l6 hMJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GjlhU7Io; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg32-20020a170907a42000b007ad4a555cb6si5448652ejc.878.2022.11.04.12.08.53; Fri, 04 Nov 2022 12:09:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GjlhU7Io; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbiKDSjC (ORCPT + 97 others); Fri, 4 Nov 2022 14:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiKDSi7 (ORCPT ); Fri, 4 Nov 2022 14:38:59 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C8D3101EF for ; Fri, 4 Nov 2022 11:38:58 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id b21so5669842plc.9 for ; Fri, 04 Nov 2022 11:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GxUQcGD1ekL/2d9GXVQdlQ0tteAYOQEOTDd6IVlVtPY=; b=GjlhU7IoqaY718RNOR7DqWTG20zF6kOt5wgWynudn0ITp0+zDVD5QosZuVb9DcNI1E uLg7ZOVZiESDg9QBf+b2QS/Pn8Hc0gkXnTqzle1PVe0v7nwVonxi/nK9dqBJhmAlASAJ tuMCJ67J0Eu/2HZM0qT0wURiQPbKt5+sQ88DQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GxUQcGD1ekL/2d9GXVQdlQ0tteAYOQEOTDd6IVlVtPY=; b=rnYKVZT3jzvU8ZPIaUdYphAX79sWY/1/CoI/GqCWdmf164dygW2K897GOumaJNyfSt PRGprGxaCtDOUTS5xBGf5Wpcv8qrlCrAC5k5XxIVT08pCSfW3elVl5T+qQIeuPkstL9f bawE9xsia/1WgKZgwOPMzk03Q4koX4tJeZ1cBvpeywv5HouVSLXOzNFJ01PKYkTSFUE/ z9207Xy47Vltf+wWKJyF395o+bN1YZPxGwPduM4R+kAZDUsSa4t4KtvL4s18seN2yDix zdUmrFrzyhgU11vUsejDlKyvEsGOwWJNkkZmeSZVNuZ93jC/lJxDfjluTN69eevx3vOZ DrYw== X-Gm-Message-State: ACrzQf3maeYKUQi5n6RWwWgWxhmbZUlmgSYDEGJWD9sF+04hEkqRrH3N izAz1jwTVaUIVW4EmwP1oXFF4w== X-Received: by 2002:a17:902:8a90:b0:186:b145:f5ec with SMTP id p16-20020a1709028a9000b00186b145f5ecmr37462611plo.103.1667587137752; Fri, 04 Nov 2022 11:38:57 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d17-20020aa797b1000000b0056bcc744bdbsm2957812pfq.203.2022.11.04.11.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 11:38:57 -0700 (PDT) Date: Fri, 4 Nov 2022 11:38:56 -0700 From: Kees Cook To: Evan Green Cc: linux-kernel@vger.kernel.org, corbet@lwn.net, linux-pm@vger.kernel.org, rjw@rjwysocki.net, gwendal@chromium.org, apronin@chromium.org, Pavel Machek , Matthew Garrett , linux-integrity@vger.kernel.org, jejb@linux.ibm.com, zohar@linux.ibm.com, dlunev@google.com, Eric Biggers , Ben Boeckel , jarkko@kernel.org, Len Brown , "Rafael J. Wysocki" Subject: Re: [PATCH v4 07/11] PM: hibernate: Add kernel-based encryption Message-ID: <202211041135.EAC889BA08@keescook> References: <20221103180120.752659-1-evgreen@chromium.org> <20221103105558.v4.7.Ifff11e11797a1bde0297577ecb2f7ebb3f9e2b04@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221103105558.v4.7.Ifff11e11797a1bde0297577ecb2f7ebb3f9e2b04@changeid> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 03, 2022 at 11:01:15AM -0700, Evan Green wrote: > [...] > +config ENCRYPTED_HIBERNATION > + bool "Encryption support for userspace snapshots" > + depends on HIBERNATION_SNAPSHOT_DEV > + depends on CRYPTO_AEAD2=y > + default n "default n" is the, err, default, so this line can be left out. If someone more familiar with the crypto pieces can review the rest, that would be good. :) -- Kees Cook