Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1107209imm; Wed, 8 Aug 2018 10:51:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz8nzBspPMcHAJNecjhzk71r8wx86OKEOJWdZnOe2sk0HcqdlJDs0tDG8IeZjavo82r2TOJ X-Received: by 2002:a63:5350:: with SMTP id t16-v6mr3429614pgl.196.1533750703243; Wed, 08 Aug 2018 10:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533750703; cv=none; d=google.com; s=arc-20160816; b=WcmTOvCNAE1cN2ufLk01tJAFOrj4VVmNG8vFkYrSuaFge01LSAKeUXCstO9QWbboEA hn3GKyvOeQPK2PuIpxcWljtiDCZe5qyeTBiq1zbxSYhOnESojNAZphAOpbOzsqNSfr9m MSFvZT+8RRBhe+AC164rDk8pWH54HhD7cwiy84wvNNEII+jVsma9pMCoWptIiKY49QtV JJN/C7EpBEQ1h1QF55UIRUKw9DciSdH2Y7qJs/CMH9Q8sLTEbL+87v9ADgpZ9MDb91/z Fj478xYm5TNmtkMaQCogSpHhqDMtdHrIrtN0cLyJr7T37IPJqM5PwELFdaBnH9KxIN5r TZdA== 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=5kZfjRnl7WCTqa/kQ/az4lJLEHi9+Hx0DcESfzkNaHw=; b=daPAeTvH1OkVMIIUB3xu3j63H5ZAHAIKYORDjZhfdXB+Ba+ccwSrnFYYFwhHdITrOI PHHvk+p6B0LwpMVRHd3BnPc5LYW+id7nOTa6CQx8IsKgDz7KEjbmh2sk+A4ZxT7b+/LI XjPWbzs3rtw72koUh+fkFBTfpB0a7h4C6dvV8SWcptIQLrDk0mIRukTuzLxAFel/CeYB 46cacGo/yRBOrgtdt48x0Xx2PEUWMBtE7qBzJdv2tkxH1FAlZo5puUULM3ScTtD1Js5X M3CxgZrADtHtM+lB/OHVWPiGEyQ9MYNpGIaOqJPAjX7u79RMM2IB1HJnNDVz07tvv/ll ygaA== 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 h185-v6si4868870pfc.172.2018.08.08.10.51.28; Wed, 08 Aug 2018 10:51:43 -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 S1728554AbeHHULY (ORCPT + 99 others); Wed, 8 Aug 2018 16:11:24 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35314 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbeHHULX (ORCPT ); Wed, 8 Aug 2018 16:11:23 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9CF6D8063D; Wed, 8 Aug 2018 19:50:36 +0200 (CEST) Date: Wed, 8 Aug 2018 19:50:36 +0200 From: Pavel Machek To: Yu Chen Cc: Ryan Chen , jlee@suse.com, oneukum@suse.com, "Rafael J. Wysocki" , ebiggers@google.com, Theodore Ts'o , smueller@chronox.de, denkenz@gmail.com, Linux PM list , linux-crypto@vger.kernel.org, Linux Kernel Mailing List , kookoo.gu@intel.com, Zhang Rui Subject: Re: [PATCH 0/4][RFC v2] Introduce the in-kernel hibernation encryption Message-ID: <20180808175036.GA16217@amd> References: <1532346156.3057.11.camel@suse.com> <20180723162302.GA4503@sandybridge-desktop> <1532590246.7411.3.camel@suse.com> <20180726081404.GG4244@linux-l9pv.suse> <20180730170415.GQ4244@linux-l9pv.suse> <20180803033702.GB416@sandybridge-desktop> <20180803053445.GC4244@linux-l9pv.suse> <20180805100200.GB22948@amd> <20180806084534.GB12124@chenyu-desktop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20180806084534.GB12124@chenyu-desktop> 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 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > > User space doesn't need to involve. The EFI root key is generated by > > > > EFI boot stub and be transfer to kernel. It's stored in EFI boot se= rvice > > > > variable that it can only be accessed by trusted EFI binary when > > > > secure boot is enabled. > > > > > > > Okay, this apply to the 'suspend' phase, right? > > > I'm still a little confused about the 'resume' phase. > > > Taking encryption as example(not signature), > > > the purpose of doing hibernation encryption is to prevent other users > > > from stealing ram content. Say, user A uses a passphrase to generate= the > >=20 > > No, I don't think that's purpose here. > >=20 > > Purpose here is to prevent user from reading/modifying kernel memory > > content on machine he owns. > > > Say, A puts his laptop into hibernation and walks away, > and B walks by, and opens A's laptop and wakes up the system and he > can do what he wants. Although EFI key/TPM trusted key is enabled, > currently there's no certification during resume, which sounds > unsafe to me. Afterall, the original requirement is to probe Define unsafe. If you want security against bad people resuming your machines, please take a look at existing uswsusp solutions. It defends against that. If you want security against bad people tampering with your machines physically, sorry, there's no way to defend against that. But I thought you were trying to do something for secure boot, and "bad person resumes your machine" is out of scope there. So please always explain security against _what kind of attack_ you are trying to improve; intelligent communication is not possible without that. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltrLWwACgkQMOfwapXb+vJriwCeMEH0FxLppyjbtaP2vkRpY8NQ jOwAnjWz691CHnHSi4qRKDxI5a2mGXq+ =Rbr4 -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--