Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp46152img; Tue, 19 Mar 2019 15:17:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOxzQcxmFgqFCmsY11S1remtourR33SSxY+0kWbh3KQx+jAK1W8ZvzOC495W4lbXxBgrvU X-Received: by 2002:a17:902:2bab:: with SMTP id l40mr4352739plb.273.1553033875305; Tue, 19 Mar 2019 15:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553033875; cv=none; d=google.com; s=arc-20160816; b=DyIi6pGTghWlEzbL7TAHI3SkyEqvvVqNqNvjVMgbY2ZnQPlKea1LaPYA/mIbf5yaax Bxs/blm/rPNGS2tfyS9F/iAnDrKzp4mM//9mX+uXAjF8+ghdNV/0qqVo6DPPYuY2Xj+u yihBgZymdlvI0tIy0sFPgE3jazSovjuc3nm2Gdw0z3wL1ydhU5bzSEF+FNDIafinkc3K UveeEQqhN5ii8w1zVe8Kfvl2zqm1JIoQgND/BYMttT4k66eeRjnFY46R1qA8cxFnm15E 7j3IxHo1PbeSixQ3Ib7BOaFMo30NAEj0fK+t3UGdLcxlU4pZEks/DY9/JCSK3hh+db+s 95EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dgwdBeEI6Qo0/t+xnBTzDEYdM+J4g/cX79R3m4WeefY=; b=pbtllwtBTklHA5R2B0DUtz//EvAoPEd+y8DRNy0OMiTVrGmbJxztbjTrX4tMgGnA6H egueIoFGm8j/73Z17cmxr56o7tZJNQEPfKx2t654KqEKVHEhTYGZr1N8qzlzaGfbFxcT 5vvN1oOXXKxIFtKwqTKScsEVA0emnOvpfTnuMfY9rp8V2b3o0uVA14swlegwkPWAfOdV erInZKmed3AJxNjymqePoQ6t7s0tKk+D86rHP6qahM5jbMPcPFMnQHlVpGOn9BK6ZxBb e89rsoUKtWN+yX+GCl589wjX4r8ZQ3A6V6VLm4UMbw0+XLo8IpUrd2SSrW03Znqs4D/j IivQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d8si166795plo.41.2019.03.19.15.17.39; Tue, 19 Mar 2019 15:17:55 -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; 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 S1727146AbfCSWPG (ORCPT + 99 others); Tue, 19 Mar 2019 18:15:06 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41392 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726908AbfCSWPG (ORCPT ); Tue, 19 Mar 2019 18:15:06 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7E49580328; Tue, 19 Mar 2019 23:14:54 +0100 (CET) Date: Tue, 19 Mar 2019 23:15:01 +0100 From: Pavel Machek To: Matthew Garrett Cc: jmorris@namei.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, dhowells@redhat.com Subject: Re: [PATCH 09/27] hibernate: Disable when the kernel is locked down Message-ID: <20190319221501.GA31551@amd> References: <20190228231203.212359-1-matthewgarrett@google.com> <20190228231203.212359-9-matthewgarrett@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <20190228231203.212359-9-matthewgarrett@google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-02-28 15:11:45, Matthew Garrett wrote: > From: Josh Boyer >=20 > There is currently no way to verify the resume image when returning > from hibernate. This might compromise the signed modules trust model, > so until we can work with signed hibernate images we disable it when the > kernel is locked down. >=20 > Signed-off-by: Josh Boyer > Signed-off-by: David Howells > Reviewed-by: "Lee, Chun-Yi" > cc: linux-pm@vger.kernel.org It would be good to cc hibernation maintainers here. > --- > kernel/power/hibernate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c > index abef759de7c8..802795becb88 100644 > --- a/kernel/power/hibernate.c > +++ b/kernel/power/hibernate.c > @@ -70,7 +70,7 @@ static const struct platform_hibernation_ops *hibernati= on_ops; > =20 > bool hibernation_available(void) > { > - return (nohibernate =3D=3D 0); > + return nohibernate =3D=3D 0 && !kernel_is_locked_down("Hibernation"); > } > =20 > /** --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlyRaeUACgkQMOfwapXb+vIrUgCePR4ZNP1PZ7BgmovegoMQ5dqX iY0An36y/i6DyGJVSq+OnY+TW+3rjpmC =0rTS -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--