Received: by 10.192.165.148 with SMTP id m20csp1695325imm; Thu, 26 Apr 2018 00:28:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/82tLPiGrnsO5M/KPagx3T6DWBpz1p/hyqt2fxl+C3ybJJGPJePvwpdkHzmrLB54LNWSkR X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr31923350plb.224.1524727727384; Thu, 26 Apr 2018 00:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524727727; cv=none; d=google.com; s=arc-20160816; b=RR6ChqKlCXJNkZPsDDhpNKbroVsT7RX93xaF8FR1MV1B88hQYIjRL8QGPiIHC2UJiv qPOO5ekNMxMa1g3nfEdmCF3bKTIMGPx2SxJyykzCkhyIjX+5YLRfRKMXjsz4jabaf8RD 7h2NAvhnesFcUEW5jjZgpQZduORVY5BMCt2cp+Eifx4lblAmyMM/1taz6KTN9Wbn7EwE zpqrgI8PdKW3XKfW5/ah1rVGr/ckVZ0P5SFy6nAcc1gqk5QO2p9pM38tYQcJlqO4JoCO yXth/rOHP+zsO0VIQK6PI7bloQHVyIHseToCEqRCihPtz4bpjdw+MQhVWpk+5foamtbS 9spg== 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:arc-authentication-results; bh=814Xk7WpbNIw2q4mhieTENbO/z7uA07HumCC5pSLsQY=; b=bh07R4GkstNWyZrDeO+/vcfCmIgIaQITYrXTnIWQzOuJp6hlG4Kl0tYtH/BxYJYfHl AoOo7uHhe8ndFb/i6q1FhrGB2RLi+l59+l6WvKmg6P8bSkdNDpD2L2B5lN1IkU9rYGjL n2ijQpPkrTF1mHzj25idV2RXscjN9lTSKl7De6oTIuKZkRkg0odB7T/nohUkNRzbk2i9 CNxmvstD+rjgwSXR6/HoVcR3M1s9kJ+mAG0Vxuy1QiUIDkzanbEm4Vd1gqw7WkPD0ah5 BJ+8U2n1DAkF3bnTUpJERsCjPOk12xVYqLH3K9dP1JMNUxGjYVkQFZCXVEC3yNr43pCT /DuQ== 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 p5si14392012pgu.158.2018.04.26.00.28.32; Thu, 26 Apr 2018 00:28:47 -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 S1754144AbeDZH0x (ORCPT + 99 others); Thu, 26 Apr 2018 03:26:53 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57048 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752148AbeDZH0s (ORCPT ); Thu, 26 Apr 2018 03:26:48 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C515580494; Thu, 26 Apr 2018 09:26:46 +0200 (CEST) Date: Thu, 26 Apr 2018 09:26:46 +0200 From: Pavel Machek To: David Howells , jikos@suse.cz Cc: torvalds@linux-foundation.org, linux-man@vger.kernel.org, linux-api@vger.kernel.org, jmorris@namei.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 07/24] hibernate: Disable when the kernel is locked down Message-ID: <20180426072646.GA31822@amd> References: <20180413202234.GA4484@amd> <152346387861.4030.4408662483445703127.stgit@warthog.procyon.org.uk> <152346392521.4030.5108539377959227838.stgit@warthog.procyon.org.uk> <27926.1524148733@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <27926.1524148733@warthog.procyon.org.uk> 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 --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-04-19 15:38:53, David Howells wrote: > Pavel Machek wrote: >=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 > > I'd rather see hibernation fixed than disabled like this. >=20 > The problem is that you have to store the hibernated kernel image encrypt= ed, > but you can't store the decryption key on disk unencrypted or you've just > wasted the effort. That's not how the crypto needs to work. Talk to Jiri Kosina, ok? Firmware gives you a key, you keep it secret, use it to sign the hibernation image on suspend, and verify the signature on resume. Or something like that. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrhfzYACgkQMOfwapXb+vKUbACffzbN2YGUihEbD3PcpM1b3kG9 rwAAoMO4Nkw+49H7bkdJebvsBuJXZDeP =wRwy -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--