android_kernel_samsung_msm8976/drivers
Matt Fleming 15b988cf26 efi: Add pstore variables to the deletion whitelist
commit e246eb568bc4cbbdd8a30a3c11151ff9b7ca7312 upstream.

Laszlo explains why this is a good idea,

 'This is because the pstore filesystem can be backed by UEFI variables,
  and (for example) a crash might dump the last kilobytes of the dmesg
  into a number of pstore entries, each entry backed by a separate UEFI
  variable in the above GUID namespace, and with a variable name
  according to the above pattern.

  Please see "drivers/firmware/efi/efi-pstore.c".

  While this patch series will not prevent the user from deleting those
  UEFI variables via the pstore filesystem (i.e., deleting a pstore fs
  entry will continue to delete the backing UEFI variable), I think it
  would be nice to preserve the possibility for the sysadmin to delete
  Linux-created UEFI variables that carry portions of the crash log,
  *without* having to mount the pstore filesystem.'

There's also no chance of causing machines to become bricked by
deleting these variables, which is the whole purpose of excluding
things from the whitelist.

Use the LINUX_EFI_CRASH_GUID guid and a wildcard '*' for the match so
that we don't have to update the string in the future if new variable
name formats are created for crash dump variables.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Peter Jones <pjones@redhat.com>
Tested-by: Peter Jones <pjones@redhat.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-16 08:41:37 -07:00
..
accessibility
acpi ACPICA: Tables: Fix an issue that FACS initialization is performed twice 2015-08-03 09:29:46 -07:00
amba
ata libata: fix HDIO_GET_32BIT ioctl 2016-03-09 15:31:54 -08:00
atm
auxdisplay auxdisplay: ks0108: fix refcount 2015-09-21 10:00:09 -07:00
base regmap: debugfs: Don't bother actually printing when calculating max length 2015-10-22 14:37:51 -07:00
bcma
block xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing) 2015-11-09 10:12:58 -08:00
bluetooth Bluetooth: btusb: Fix memory leak in Intel setup routine 2015-08-03 09:29:42 -07:00
bus bus: mvebu: pass the coherency availability information at init time 2015-07-03 19:48:09 -07:00
cdrom
char vTPM: fix memory allocation flag for rtce buffer at kernel boot 2016-02-19 14:22:38 -08:00
clk clk: versatile: off by one in clk_sp810_timerclken_of_get() 2015-09-21 10:00:07 -07:00
clocksource clocksource/drivers/vt8500: Increase the minimum delta 2016-03-03 15:06:20 -08:00
connector connector: bump skb->users before callback invocation 2016-01-28 21:49:33 -08:00
cpufreq cpufreq: speedstep-smi: enable interrupts when waiting 2015-03-06 14:40:48 -08:00
cpuidle cpuidle / menu: Return (-1) if there are no suitable states 2015-08-03 09:29:41 -07:00
crypto crypto: caam - fix memory corruption in ahash_final_ctx 2015-09-13 09:07:59 -07:00
dca
devfreq
dio
dma dmaengine: mv_xor: bug fix for racing condition in descriptors cleanup 2015-08-03 09:29:46 -07:00
edac EDAC, mc_sysfs: Fix freeing bus' name 2016-03-09 15:31:53 -08:00
eisa
extcon
firewire firewire: ohci: fix JMicron JMB38x IT context discovery 2016-01-22 19:47:53 -08:00
firmware efi: Add pstore variables to the deletion whitelist 2016-03-16 08:41:37 -07:00
gpio gpio: sysfs: fix memory leaks and device hotplug 2015-05-17 09:51:32 -07:00
gpu Revert "drm/radeon: hold reference to fences in radeon_sa_bo_new" 2016-03-09 15:31:56 -08:00
hid HID: usbhid: fix recursive deadlock 2016-02-19 14:22:37 -08:00
hsi
hv Drivers: hv: vmbus: Don't wait after requesting offers 2015-05-13 05:15:43 -07:00
hwmon hwmon: (mcp3021) Fix broken output scaling 2015-08-03 09:29:46 -07:00
hwspinlock
i2c i2c: rcar: enable RuntimePM before registering to the core 2015-10-27 09:44:50 +09:00
ide
idle
iio iio: dac: mcp4725: set iio name property in sysfs 2016-02-25 11:57:48 -08:00
infiniband IB/qib: fix mcast detach when qp not attached 2016-03-03 15:06:24 -08:00
input Input: i8042 - add Fujitsu Lifebook U745 to the nomux list 2016-02-25 11:57:49 -08:00
iommu iommu/vt-d: Fix 64-bit accesses to 32-bit DMAR_GSTS_REG 2016-02-25 11:57:49 -08:00
ipack
irqchip
isdn ppp, slip: Validate VJ compression slot parameters completely 2016-01-28 21:49:35 -08:00
leds
lguest lguest: fix out-by-one error in address checking. 2015-06-05 23:19:54 -07:00
macintosh windfarm: decrement client count when unregistering 2015-10-22 14:37:49 -07:00
mailbox
md dm snapshot: fix hung bios when copy error occurs 2016-03-03 15:06:23 -08:00
media tda1004x: only update the frontend properties if locked 2016-03-03 15:06:23 -08:00
memory
memstick memstick: mspro_block: add missing curly braces 2015-05-06 21:56:28 +02:00
message mptfusion: enable no_write_same for vmware scsi disks 2014-10-30 09:35:10 -07:00
mfd mfd: sm501: dbg_regs attribute must be read-only 2015-08-16 20:51:37 -07:00
misc mei: bus: fix possible boundaries violation 2014-11-21 09:22:55 -08:00
mmc mmc: mmci: fix an ages old detection error 2016-03-03 15:06:23 -08:00
mtd ubi: Fix out of bounds write in volume update code 2016-03-09 15:31:56 -08:00
net can: sja1000: clear interrupts on start 2016-03-03 15:06:21 -08:00
nfc
ntb
nubus
of of/address: Don't loop forever in of_find_matching_node_by_address(). 2015-09-21 10:00:09 -07:00
oprofile
parisc parisc iommu: fix panic due to trying to allocate too large region 2016-01-28 21:49:36 -08:00
parport drivers: parport: Kconfig: exclude arm64 for PARPORT_PC 2015-05-06 21:56:26 +02:00
pci xen/pcifront: Fix mysterious crashes when NUMA locality information was extracted. 2016-03-03 15:06:25 -08:00
pcmcia Disable write buffering on Toshiba ToPIC95 2015-08-03 09:29:41 -07:00
pinctrl pinctrl: mvebu: armada-xp: fix functions of MPP48 2015-08-03 09:29:42 -07:00
platform intel_scu_ipcutil: underflow in scu_reg_access() 2016-02-25 11:57:49 -08:00
pnp
power wm831x_power: Use IRQF_ONESHOT to request threaded IRQs 2016-03-03 15:06:20 -08:00
pps
ps3
ptp
pwm
rapidio
regulator regulator: core: fix constraints output buffer 2015-08-03 09:29:41 -07:00
remoteproc remoteproc: avoid stack overflow in debugfs file 2016-02-19 14:22:37 -08:00
reset
rpmsg
rtc
s390 s390/dasd: fix refcount for PAV reassignment 2016-03-03 15:06:23 -08:00
sbus
scsi ses: fix additional element traversal bug 2016-03-03 15:06:22 -08:00
sfi
sh
sn
spi spi: fix parent-device reference leak 2016-02-19 14:22:38 -08:00
ssb
ssbi
staging iio: lpc32xx_adc: fix warnings caused by enabling unprepared clock 2016-02-25 11:57:48 -08:00
target iscsi-target: Fix potential dead-lock during node acl delete 2016-02-25 11:57:47 -08:00
tc
thermal
tty pty: make sure super_block is still valid in final /dev/tty close 2016-02-25 11:57:46 -08:00
uio
usb USB: serial: option: add support for Quectel UC20 2016-03-09 15:31:55 -08:00
uwb
vfio vfio-pci: Fix the check on pci device type in vfio_pci_probe() 2015-01-27 07:52:32 -08:00
vhost vhost/scsi: potential memory corruption 2015-10-01 12:07:34 +02:00
video video: vgacon: Don't build on arm64 2015-05-06 21:56:25 +02:00
virt
virtio virtio: fix memory leak of virtio ida cache layers 2016-03-03 15:06:21 -08:00
vlynq
vme
w1
watchdog watchdog: omap: assert the counter being stopped before reprogramming 2015-08-03 09:29:47 -07:00
xen xen/gntdev: Grant maps should not be subject to NUMA balancing 2016-01-28 21:49:28 -08:00
zorro
Kconfig
Makefile