Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5723771rwb; Wed, 21 Sep 2022 11:27:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gz0MOyjDEuZV0KBCNeSDqSAeUuIx74J8CR4IQlYAPn6wR/LMlUInkrazXaBBc13FngLYd X-Received: by 2002:a05:6a00:14d5:b0:542:9c32:ab27 with SMTP id w21-20020a056a0014d500b005429c32ab27mr29907936pfu.64.1663784831231; Wed, 21 Sep 2022 11:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663784831; cv=none; d=google.com; s=arc-20160816; b=GMYv7VCf/KBdgIV6PLaCFz++IMV3dzhyz9y9k/GfE4IoAg/c5HEjE7p4Q1eS6Um4lA MEV6SSTUkB6hjFcikQrK+el4hzQ9B+QEkEqQOjIwZshxauVb4EDUsj5wGbo51XK0//rf 9ptTamQSmE1ii2tRkO/Hyy3wJ2BKEzcW+zKbwIp/A8VAzYwdTV+Y1+IAvhp2vI385mBb q8wfhqwZCIodvYG1FyWRWJGVsdhJnwCiFzWU139Nza3b+PkMltI7aLLXV7YyiOItwvB7 zdGCeoS+BUrokB4m0qyYv7d6hs9xkAf7fmLzFaPqAiIJ1QbOq4GU8BQcnvrK0MzP2cef QFeQ== 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=2KAjKe3iq+QwXIwjpYW0v2WCVk5payTUoCJDsQmbzI8=; b=HZRb9r0tQ7aPSIFOW13lBV0vLetI9Qz5LV0wWNg6jk7zxFFGVhlLa7Tr6QAqL6a5wy wyfcEeWwN4D4BMTLhoW37B0fMWQALnfMciLxgz8su+YB9XLxCurBFgHiVq3AFKUgxfzE K3up8q3RaTI4O/AeSVlJdEbxuHhSzuzLZ1xs0gSnHZsETlGVs+WdWOX3tolA2ahD98vw aAQjTQoNhF+jE0qEO3f94NbSrrqTrOffesxU7rcffPF7js0IjyCYk+i3VqWdb6Bo6s8o OfLfwePKtfEvCf0024yga/+a/+f1MNk41QsZJ+KlGk0v1KMPTKrCF51zrh3APC4xLl/H nJEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fHDduti3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot14-20020a17090b3b4e00b002000867929fsi4127740pjb.183.2022.09.21.11.26.56; Wed, 21 Sep 2022 11:27:11 -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=@ziepe.ca header.s=google header.b=fHDduti3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbiIUSJL (ORCPT + 99 others); Wed, 21 Sep 2022 14:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiIUSJJ (ORCPT ); Wed, 21 Sep 2022 14:09:09 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BA3980EB5 for ; Wed, 21 Sep 2022 11:09:07 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id c19so4541092qkm.7 for ; Wed, 21 Sep 2022 11:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=2KAjKe3iq+QwXIwjpYW0v2WCVk5payTUoCJDsQmbzI8=; b=fHDduti3CxdhlR7cTOA3bHhFjSsFgLzHd7cyUqMp7cDXRqkMCXpLOCc22ysE/u6Kh2 HIGYwvhJxEZfTaOngML/3hnx0h432B4fP7654sKJhbc5rtbz36iNUhGVxIJi+7ZkpwJK Hjm/3CgbuCWlweV9iNYNfgs81GLrkku0T+vBnkfB6J2jO02uzYEZ3hQ0SfGKaqtZL6v1 TyJGu1wof5Q41gchlf9KraJgvFxDWjGIzqspgvV9PCaNgCxTeXJuBXQlqrVf41ZO3v41 l0igml8T46Gi/I4N/N2ciB7wX2RNoBfMYAPi5C86mv/+8zmytwTakT45ZHsr8oD2zbaV YSuw== 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; bh=2KAjKe3iq+QwXIwjpYW0v2WCVk5payTUoCJDsQmbzI8=; b=Vy1JRq0v8DcHJomKxBGmGsz8dhdpTPFEJMewBcfQtan1E2ekzxvkpii/i5WXhLe2jD z5asw+lDIVZeMV6Jf6qtC4f94eq0gzcaO7xBN1YQm8FnO2ACPRy2COklKfpFklP8WAaG KwtKfBqQnMyqC+Gf1cnzMpAPhmM8K+9M52u5+5pAIyAuF2vQpEvyNC2no/7qHwBmkLrm RM6opoxfPEqMMhUI6lzFUS7Pk9H4O5xNEYlr2Vb2bfKZvBsGgNPluaQhAEoAvMKtsItw iq703SjgCl5fwxEsAWW/VPFIMgR+JdAnrEazO68Nj9Cl0pMdYHqfayqaAg2AcTOcWpf7 eh8g== X-Gm-Message-State: ACrzQf36k+u2P60UntnzDj76JSCsVRpZjTLHeT1r/eekPrel6B3f0Mer dSCFLfs49brjc75cZn2plTL80w== X-Received: by 2002:ae9:eb04:0:b0:6cb:d287:d6d4 with SMTP id b4-20020ae9eb04000000b006cbd287d6d4mr20476883qkg.310.1663783746781; Wed, 21 Sep 2022 11:09:06 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id o10-20020ac841ca000000b00339163a06fcsm2075049qtm.6.2022.09.21.11.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 11:09:05 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1ob49g-001Gq7-T9; Wed, 21 Sep 2022 15:09:04 -0300 Date: Wed, 21 Sep 2022 15:09:04 -0300 From: Jason Gunthorpe To: Pavel Machek Cc: Evan Green , linux-kernel@vger.kernel.org, gwendal@chromium.org, Eric Biggers , Matthew Garrett , jarkko@kernel.org, zohar@linux.ibm.com, linux-integrity@vger.kernel.org, apronin@chromium.org, dlunev@google.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, corbet@lwn.net, jejb@linux.ibm.com, David Howells , Hao Wu , James Morris , Len Brown , Matthew Garrett , Paul Moore , Peter Huewe , "Rafael J. Wysocki" , "Serge E. Hallyn" , axelj , keyrings@vger.kernel.org, linux-doc@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v2 00/10] Encrypted Hibernation Message-ID: References: <20220823222526.1524851-1-evgreen@chromium.org> <20220920084648.GA17087@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220920084648.GA17087@duo.ucw.cz> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 Tue, Sep 20, 2022 at 10:46:48AM +0200, Pavel Machek wrote: > Hi! > > > We are exploring enabling hibernation in some new scenarios. However, > > our security team has a few requirements, listed below: > > 1. The hibernate image must be encrypted with protection derived from > > both the platform (eg TPM) and user authentication data (eg > > password). > > 2. Hibernation must not be a vector by which a malicious userspace can > > escalate to the kernel. > > Why is #2 reasonable requirement? These days with kernel lockdown we don't allow userspace to enter the kernel > We normally allow userspace with appropriate permissions to update the > kernel, for example. And in a lockdown secure boot environment only a signed kernel can be booted in the first place. A series like this is effectively carrying the secure boot trust across the hibernation Jason