aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/Kconfig
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2013-03-11 17:17:50 -0400
committerMatt Fleming <matt.fleming@intel.com>2013-03-21 08:43:46 -0400
commitec0971ba5372a4dfa753f232449d23a8fd98490e (patch)
tree1c364f3e1fbbd75a413edc80c1c237e210e997c0 /drivers/firmware/Kconfig
parented9dc8ce7a1c8115dba9483a9b51df8b63a2e0ef (diff)
efivars: Add module parameter to disable use as a pstore backend
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 pstore_module parameter to efivars to allow disabling its use as a backend for pstore. Also add a config option, CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE, to allow setting the default value of this paramter to true (i.e. disabled by default). Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Cc: Josh Boyer <jwboyer@redhat.com> Cc: Matthew Garrett <mjg59@srcf.ucam.org> Cc: Seiji Aguchi <seiji.aguchi@hds.com> Cc: Tony Luck <tony.luck@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers/firmware/Kconfig')
-rw-r--r--drivers/firmware/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 898023d8e486..42c759a4d047 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -62,6 +62,15 @@ config EFI_VARS_PSTORE
62 will allow writing console messages, crash dumps, or anything 62 will allow writing console messages, crash dumps, or anything
63 else supported by pstore to EFI variables. 63 else supported by pstore to EFI variables.
64 64
65config EFI_VARS_PSTORE_DEFAULT_DISABLE
66 bool "Disable using efivars as a pstore backend by default"
67 depends on EFI_VARS_PSTORE
68 default n
69 help
70 Saying Y here will disable the use of efivars as a storage
71 backend for pstore by default. This setting can be overridden
72 using the efivars module's pstore_disable parameter.
73
65config EFI_PCDP 74config EFI_PCDP
66 bool "Console device selection via EFI PCDP or HCDP table" 75 bool "Console device selection via EFI PCDP or HCDP table"
67 depends on ACPI && EFI && IA64 76 depends on ACPI && EFI && IA64