From: joeyli Subject: Re: [RFC PATCH 00/18 v3] Signature verification of hibernate snapshot Date: Thu, 29 Aug 2013 08:01:45 +0800 Message-ID: <1377734505.19568.39.camel__46875.2895402305$1377734632$gmane$org@linux-s257.site> References: <1377169317-5959-1-git-send-email-jlee@suse.com> <87eh9dzg00.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-efi@vger.kernel.org, linux-pm@vger.kernel.org, linux-crypto@vger.kernel.org, opensuse-kernel@opensuse.org, David Howells , "Rafael J. Wysocki" , Matthew Garrett , Len Brown , Pavel Machek , Josh Boyer , Vojtech Pavlik , Matt Fleming , James Bottomley , Greg KH , JKosina@suse.com, Rusty Russell , Herbert Xu , "David S. Miller" , "H. Peter Anvin" , Michal Marek , Gary Lin , Vivek Goyal To: Florian Weimer Return-path: Received: from smtp.nue.novell.com ([195.135.221.5]:58774 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917Ab3H2ADZ (ORCPT ); Wed, 28 Aug 2013 20:03:25 -0400 In-Reply-To: <87eh9dzg00.fsf@mid.deneb.enyo.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: Hi Florian,=20 Thanks for your response. =E6=96=BC =E4=B8=89=EF=BC=8C2013-08-28 =E6=96=BC 23:01 +0200=EF=BC=8CFl= orian Weimer =E6=8F=90=E5=88=B0=EF=BC=9A > * Chun-Yi Lee: >=20 > > + EFI bootloader must generate RSA key-pair when system boot: I should add more information on this sentence for mention need GenS4Ke= y runtime variable then re-generate key-pair. Thanks! > > - Bootloader store the public key to EFI boottime variable by it= self > > - Bootloader put The private key to S4SignKey EFI variable for f= orward to > > kernel. >=20 > Is the UEFI NVRAM really suited for such regular updates? >=20 Yes, Matthew raised this concern at before. I modified patch to load private key in efi stub kernel, before ExitBootServices(), that means w= e don't need generate key-pair at every system boot. So, the above procedure of efi bootloader will only run one time.=20 User can enable SNAPSHOT_REGEN_KEYS kernel config to notify efi booloader regenerate key-pair for every S4 to improve security if he want. So, the key-pair re-generate procedure will only launched when S4 resume, not every system boot. Thanks a lot! Joey Lee