Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752422Ab3IEN2d (ORCPT ); Thu, 5 Sep 2013 09:28:33 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:36005 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712Ab3IEN2b (ORCPT ); Thu, 5 Sep 2013 09:28:31 -0400 Subject: Re: [PATCH 11/18] Hibernate: introduced RSA key-pair to verify signature of snapshot From: joeyli To: Matt Fleming 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 , Takashi Iwai In-Reply-To: <20130905103158.GM28598@console-pimps.org> References: <1377169317-5959-1-git-send-email-jlee@suse.com> <1377169317-5959-12-git-send-email-jlee@suse.com> <20130905085348.GJ28598@console-pimps.org> <1378376016.6193.71.camel@linux-s257.site> <20130905103158.GM28598@console-pimps.org> Content-Type: text/plain; charset="UTF-8" Date: Thu, 05 Sep 2013 21:28:57 +0800 Message-ID: <1378387737.6193.75.camel@linux-s257.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1082 Lines: 28 於 四,2013-09-05 於 11:31 +0100,Matt Fleming 提到: > On Thu, 05 Sep, at 06:13:36PM, joeyli wrote: > > This S4WakeKey is a VOLATILE variable that could not modify by > > SetVariable() at runtime. So, it's read only even through efivars. > > > > Does it what your concern? > > No, the UEFI spec probibits certain runtime functions from being > executed concurrently on separate cpus and the spinlock used in the > efivars code ensures that we adhere to that restriction. See table 31 in > section 7.1 of the UEFI 2.4 spec for the list of services that are > non-reentrant. > > The problem isn't that we want to avoid simultaneous access to > S4WakeKey, it's that we can't invoke any of the variable runtime service > functions concurrently. > I see! I will use efivar api to access EFI variable. Thanks a lot! Joey Lee -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/