Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5679240imm; Wed, 12 Sep 2018 09:27:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzgezuddRCpT0rf3QyilcIkPja8trb3sa/Da8W+2Ih5/cI8KPbD343RUwGq/eAss5hglGf X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr3182059plg.153.1536769620884; Wed, 12 Sep 2018 09:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536769620; cv=none; d=google.com; s=arc-20160816; b=FSKgXdL+HmdzbqkpA5DUiLyq601QWR7+q4M5Vx6LfSETBIEI/hGQ7fOZFipvSRVdMN 4NIguhIGnyKP59h2O674Z7gf97uJ1sV7ynyoZp87yzIw1jh7I21aHm7k5uV+iMKPpaqt bvmwHPqZJmrfOlI7HLcIto+Tr3THCG4Yqyx89X+kwXRGSsXkFG1rQ+ti8OojwJyCMrRA I2q+N6LiD3S6nq0GS6wBSuJoXAxSjghq/cZkQv/kesWGWg8rs/QiwG2yMS3FP7RPUZok BfduyitFKkz5/Cz3z+pingUsKYw3EFzGVBQc370JeIWAoZLHIqpROXHnuu+cISMDGMeW yqXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Dnl+nsZSFtuJH7PGS4Sec4+GXx7gVXmHXNRwYQVPmPk=; b=zVeP0IMrGpiqzHkNxoG2jcDQL8r5DIlp+4mK2oUQqIx4mQ5qP52GR7nY6sTUq3dclv FUPb5XMtNbEoCWCaOWa73DOZzcxU2/uCnR7ZjP7+CJtp4ecvh/Gm4Kai1ZZst11Malhc m7Eo4T2gB65pCK14ym4XJzilGkZXkuhjN2o4DWY0WlLytbDJdF1uYbRCYJzkEYfMizPl mDVp0MPnqirtxHzy8q0dl+2qEgrL/MJB0dwB1gzXCxuNpy08rl3tFl/RvFZ0MW7zlygq oB3+8E15vZhs2WUOMZXJb+L/ms4/3C0Gu9eL6LiaLdyvULWwBn8LwHE3c2OfgXMVPiiU IqLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jwyIAVbA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g36-v6si1469116pgg.186.2018.09.12.09.26.35; Wed, 12 Sep 2018 09:27:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jwyIAVbA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbeILVaG (ORCPT + 99 others); Wed, 12 Sep 2018 17:30:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53172 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbeILVaG (ORCPT ); Wed, 12 Sep 2018 17:30:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Dnl+nsZSFtuJH7PGS4Sec4+GXx7gVXmHXNRwYQVPmPk=; b=jwyIAVbACcLprCWbP6im3Ephe FlrTud8yZMp3a6xYXakuAN3CznHqt7dr7+Jf6RW2n4vnsPx37Tt9a7XXOk3Z/vWreKLmWKxbHG6OF JSCg9GTI+AEYZE+YZvwv7GkRjuX+3a7D6HX1iZc15bmJUbRZJvNiS3JNwyQKUQQOSMDxwQrkRQdBN ZaxPqjMPQDVu1UDYD4vAKfm26zIV0Ks6EFTKjRgzY1PiJf0jBDnrUAXMeGsPEWiK81voWDMdgIHgW OJpA5Jy0L2enFDNfEzlW0zkoj3ay3xGxudqTltk7pa7bZZccNHZdiu//zv4ZiGCm6/21pz5kQXIJG S2wPJHKJw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g07wX-0001ki-L5; Wed, 12 Sep 2018 16:24:41 +0000 Subject: Re: [PATCH 5/5] PM / hibernate: An option to request that snapshot image must be authenticated To: "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Lee, Chun-Yi" , "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich References: <20180912142337.21955-1-jlee@suse.com> <20180912142337.21955-6-jlee@suse.com> From: Randy Dunlap Message-ID: <0ee402c0-bd0e-ea84-9def-f6355b83b4f5@infradead.org> Date: Wed, 12 Sep 2018 09:24:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180912142337.21955-6-jlee@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 9/12/18 7:23 AM, Lee, Chun-Yi wrote: > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > index 7c5c30149dbc..3c998fd6dc4c 100644 > --- a/kernel/power/Kconfig > +++ b/kernel/power/Kconfig > @@ -90,6 +90,17 @@ config HIBERNATION_ENC_AUTH > master key of hibernation. The TPM trusted key depends on TPM. The > security of user defined key relies on user space. > > +config HIBERNATION_ENC_AUTH_FORCE > + bool "Require hibernate snapshot image to be validly signed" > + depends on HIBERNATION_ENC_AUTH > + help > + This option will prevent that a snapshot image without (valid) > + signature be restored. Without this option, a unauthenticated an > + snapshot image can be restored but the restored kernel will be > + tainted. Which also means that the hibernation can be triggered s/Which/This/ or like this: tainted, which also > + without snapshot key but kernel will be tainted without this > + option. > + -- ~Randy