Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2382905imm; Sun, 5 Aug 2018 03:03:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcfUakbErL0jykdODOUgWuUiL2vxpk6l00zPCA9QlYZkysbrrEOgsYl9WEVcvEqeS+Fulj7 X-Received: by 2002:a62:d1b:: with SMTP id v27-v6mr12500967pfi.87.1533463431322; Sun, 05 Aug 2018 03:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533463431; cv=none; d=google.com; s=arc-20160816; b=J4p73hJJgRtsltqF021E85Gen3ANrqej4Jesa47vHqxTP5gbP0eF3C2RPFQpee1Wpd 8ZH3jMT2DM4al+4C38VMx/JUFFzDv7B5eJQhoWGpEshrFislGBgItZ44ob1P9y0ZiDa6 y13fD4pHgf1BobRCe5QQ2NatcC7tskTkwzQQ88tbPXnWS9vBQWWxPESxz6kc7I+K5xAd y/1wx8eL5v8857jPQLB+uQ3grDkoUVOt7GWjza83O4m5pBJSRiyVDwUbV+s8bfPfhQEB 2bwD2PxsDDtISgD8MPPBYqM6ucH3YNeW/P5Gye5YgVeqtbFC7CPHnOydBRQy5TeDYL+P gTJw== 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=KHYaaHLDVRfC3y4+UHtu2BUFvmHXySWblseYfrZACXE=; b=ItYvuY+19tPJ/CeiT4w6VFfF7Xp+9cky1e4/t03XyVcc+38b3mY3M+diRUKiOMFMFo PBpXyZhxWwJX9FLltuz1jnN8NI5KkVVaS2ViyocK2xwqSivK35SyvdbqjAHMyKL/jIBj IuaFlp4KHcZalxvICmbRUzuMAyi/WmApOphKE7GdXeqPmfU2faNDlocbSrFDGP2jPPcu hDsghCTnikGxWu3LwV2FfcZEoS5K56wMk729yXW+eg1CtViHjztkwp9zUJOT9rEYaZUz jt+h5oPgaFZxC+mkfyT3xDvKBQ55ZCStsonon/EOxEjTMVkTzoZYbFmEiB1AfX0ZxgF6 blYg== 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 p81-v6si10974458pfi.345.2018.08.05.03.03.23; Sun, 05 Aug 2018 03:03:51 -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 S1726264AbeHEMGE (ORCPT + 99 others); Sun, 5 Aug 2018 08:06:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52685 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbeHEMGE (ORCPT ); Sun, 5 Aug 2018 08:06:04 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 92B8A8061C; Sun, 5 Aug 2018 12:02:00 +0200 (CEST) Date: Sun, 5 Aug 2018 12:02:00 +0200 From: Pavel Machek To: Ryan Chen Cc: jlee@suse.com, Chen Yu , 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: <20180805100200.GB22948@amd> References: <20180719132003.GA30981@sandybridge-desktop> <20180720102532.GA20284@amd> <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gj572EiMnwbLXET9" Content-Disposition: inline In-Reply-To: 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 --gj572EiMnwbLXET9 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 service > > 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 No, I don't think that's purpose here. Purpose here is to prevent user from reading/modifying kernel memory content on machine he owns. Strange as it may sound, that is what "secure" boot requires (and what Disney wants). I guess it may have some non-evil uses, too... https://www.linux.com/news/matthew-garrett-explains-how-increase-sec= urity-boot-time =09 Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --gj572EiMnwbLXET9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltmyxcACgkQMOfwapXb+vLgdgCcCgfNMlQjTf1H5wowJUF9tzdz DiQAn1P1w9iLF/MQ4Ihimsvs1Uhx5WXx =+5iu -----END PGP SIGNATURE----- --gj572EiMnwbLXET9--