Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932952Ab3CGWPk (ORCPT ); Thu, 7 Mar 2013 17:15:40 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:54753 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759870Ab3CGWPc (ORCPT ); Thu, 7 Mar 2013 17:15:32 -0500 Message-ID: <1362694529.15011.211.camel@mfleming-mobl1.ger.corp.intel.com> Subject: Re: [PATCH] efivars: Allow disabling use as a pstore backend From: Matt Fleming To: Seth Forshee Cc: "H. Peter Anvin" , Matthew Garrett , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Date: Thu, 07 Mar 2013 22:15:29 +0000 In-Reply-To: <20130307205915.GF24233@thinkpad-t410> References: <1362678017-2862-1-git-send-email-seth.forshee@canonical.com> <5138FAD9.7050504@zytor.com> <20130307205915.GF24233@thinkpad-t410> Organization: Intel Corporation (UK) Ltd. - Registered No. 1134945 - Pipers Way, Swindon SN3 1RJ Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1851 Lines: 38 On Thu, 2013-03-07 at 14:59 -0600, Seth Forshee wrote: > On Thu, Mar 07, 2013 at 12:38:49PM -0800, H. Peter Anvin wrote: > > On 03/07/2013 09:40 AM, Seth Forshee wrote: > > > We know that with some firmware implementations writing too much data to > > > UEFI variables can lead to bricking machines. Recent changes attempt to > > > address this issue, but for some it may still be prudent to avoid > > > writing large amounts of data until the solution has been proven on a > > > wide variety of hardware. > > > > > > Crash dumps or other data from pstore can potentially be a large data > > > source. Add a new option, CONFIG_EFI_VARS_PSTORE, which can be set to N > > > to avoid using efivars as a backend to pstore. > > > > What about a command line option? > > That could be done. I'm assuming you want this instead of a config > option, defaulted to on? > > How would you feel about a config option for the default value of the > command line option? I intend to default this to off in Ubuntu for a > while as a colleague's machine was recently bricked on two different > occasions after the kernel oopsed. The config option would simplify > things a bit for us, though we could always carry a patch changing the > default value. Not sure why a command line option would be a more natural solution to this problem? The original patch looked fine to me. All other pstore backends are guarded by Kconfig options. Though I could see an argument for a kernel parameter to turn off the EFI pstore backend code, even if it's compiled into the kernel. But that would be better as an additional patch. -- 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/