linux/drivers
Quentin Casasnovas 197b3975f4 regmap: fix kernel hang on regmap_bulk_write with zero val_count.
Fixes commit 2f06fa04cf which was an
incorrect backported version of commit
d6b41cb060 upstream.

If val_count is zero we return -EINVAL with map->lock_arg locked, which
will deadlock the kernel next time we try to acquire this lock.

This was introduced by f5942dd ("regmap: fix possible ZERO_SIZE_PTR pointer
dereferencing error.") which improperly back-ported d6b41cb0.

This issue was found during review of Ubuntu Trusty 3.13.0-40.68 kernel to
prepare Ksplice rebootless updates.

Fixes: f5942dd ("regmap: fix possible ZERO_SIZE_PTR pointer dereferencing error.")
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-21 09:23:06 -08:00
..
accessibility
acpi ACPI / scan: Correct error return value of create_modalias() 2014-10-05 14:52:16 -07:00
amba
ata ata: sata_rcar: Disable DIPM mode for r8a7790 ES1 2014-11-21 09:23:02 -08:00
atm atm: slight optimization of addr compare 2013-12-26 13:31:34 -05:00
auxdisplay
base regmap: fix kernel hang on regmap_bulk_write with zero val_count. 2014-11-21 09:23:06 -08:00
bcma
block zram: avoid kunmap_atomic() of a NULL pointer 2014-11-21 09:23:00 -08:00
bluetooth Bluetooth: Fix issue with USB suspend in btusb driver 2014-10-30 09:38:23 -07:00
bus bus: mvebu-mbus: allow several windows with the same target/attribute 2014-06-07 10:28:22 -07:00
cdrom
char hwrng: pseries - port to new read API and fix stack corruption 2014-11-21 09:23:01 -08:00
clk clk: qcom: mdp_lut_clk is a child of mdp_src 2014-10-05 14:52:24 -07:00
clocksource clocksource: Exynos_mct: Register clock event after request_irq() 2014-06-07 10:28:08 -07:00
connector net: Use netlink_ns_capable to verify the permisions of netlink messages 2014-06-26 15:15:38 -04:00
cpufreq intel_pstate: Correct BYT VID values. 2014-11-14 09:00:01 -08:00
cpuidle
crypto crypto: caam - remove duplicated sg copy functions 2014-11-21 09:23:01 -08:00
dca
devfreq Merge branches 'pm-cpufreq' and 'pm-devfreq' 2014-01-29 11:48:23 +01:00
dio
dma dmaengine: dw: don't perform DMA when dmaengine_submit is called 2014-10-05 14:52:24 -07:00
edac cpc925_edac: Report UE events properly 2014-11-14 09:00:09 -08:00
eisa Revert "EISA: Initialize device before its resources" 2014-01-17 14:57:29 -07:00
extcon extcon: max14577: Properly handle regmap_irq_get_virq error 2014-06-30 20:11:52 -07:00
firewire firewire: cdev: prevent kernel stack leaking into ioctl arguments 2014-11-21 09:23:02 -08:00
firmware firmware: Do not use WARN_ON(!spin_is_locked()) 2014-09-17 09:19:08 -07:00
fmc drivers/fmc/fmc-write-eeprom.c: fix decimal permissions 2014-02-25 15:25:43 -08:00
gpio gpio: mcp23s08: Bug fix of SPI device tree registration. 2014-06-11 11:54:14 -07:00
gpu drm/radeon: add missing crtc unlock when setting up the MC 2014-11-21 09:23:02 -08:00
hid HID: usbhid: enable always-poll quirk for Elan Touchscreen 016f 2014-11-14 09:00:06 -08:00
hsi
hv Drivers: hv: vmbus: Fix a bug in vmbus_open() 2014-10-30 09:38:21 -07:00
hwmon hwmon: (ds1621) Update zbits after conversion rate change 2014-10-05 14:52:19 -07:00
hwspinlock A single patch from Vincent extending OMAP's hwspinlock support to OMAP5. 2013-05-07 14:01:27 -07:00
i2c i2c: at91: don't account as iowait 2014-11-14 09:00:13 -08:00
ide
idle
iio iio: st_sensors: Fix buffer copy 2014-11-14 09:00:01 -08:00
infiniband IB/core: Clear AH attr variable to prevent garbage data 2014-11-21 09:23:04 -08:00
input Input: alps - ignore bad data on Dell Latitudes E6440 and E7440 2014-11-21 09:23:03 -08:00
iommu iommu/arm-smmu: fix programming of SMMU_CBn_TCR for stage 1 2014-10-05 14:52:15 -07:00
ipack
irqchip irqchip: gic: Fix core ID calculation when topology is read from DT 2014-07-28 08:06:02 -07:00
isdn isdnloop: several buffer overflows 2014-04-14 06:50:04 -07:00
leds leds: leds-pwm: properly clean up after probe failure 2014-06-07 10:28:18 -07:00
lguest
macintosh
mailbox
md md: Always set RECOVERY_NEEDED when clearing RECOVERY_FROZEN 2014-11-21 09:23:04 -08:00
media media: ttusb-dec: buffer overflow in ioctl 2014-11-21 09:23:04 -08:00
memory memory: mvebu-devbus: fix the conversion of the bus width 2014-06-07 10:28:22 -07:00
memstick
message mptfusion: enable no_write_same for vmware scsi disks 2014-10-30 09:38:20 -07:00
mfd mfd: rtsx_pcr: Fix MSI enable error handling 2014-11-14 08:59:50 -08:00
misc mei: bus: fix possible boundaries violation 2014-10-30 09:38:21 -07:00
mmc mmc: sdhci-pci: SDIO host controller support for Intel Quark X1000 2014-11-14 09:00:00 -08:00
mtd UBI: add missing kmem_cache_free() in process_pool_aeb error path 2014-11-14 08:59:49 -08:00
net iwlwifi: configure the LTR 2014-11-21 09:23:06 -08:00
nfc NFC: microread: Potential overflows in microread_target_discovered() 2014-10-05 14:52:18 -07:00
ntb
nubus nubus: Kill nubus_proc_detach_device() 2013-05-04 14:47:26 -04:00
of of: Fix overflow bug in string property parsing functions 2014-11-14 09:00:13 -08:00
oprofile oprofile: get rid of pointless forward declarations of struct super_block 2013-09-03 22:52:48 -04:00
parisc
parport parport: fix menu breakage 2014-07-31 12:52:56 -07:00
pci PCI: Rename sysfs 'enabled' file back to 'enable' 2014-11-14 09:00:09 -08:00
pcmcia PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
phy usb: phy: twl4030-usb: Fix regressions to runtime PM on omaps 2014-10-05 14:52:14 -07:00
pinctrl pinctrl: baytrail: show output gpio state correctly on Intel Baytrail 2014-11-14 09:00:12 -08:00
platform dell-wmi: Fix access out of memory 2014-11-21 09:23:05 -08:00
pnp ACPI / PNP: Fix acpi_pnp_match() 2014-08-07 14:52:37 -07:00
power power: bq2415x_charger: Fix memory leak on DTS parsing error 2014-11-21 09:23:03 -08:00
powercap powercap / RAPL: add support for ValleyView Soc 2013-12-22 01:27:51 +01:00
pps
ps3
ptp
pwm pwm: lp3943: Fix potential memory leak during request 2014-02-26 15:45:12 +01:00
rapidio rapidio/tsi721_dma: fix failure to obtain transaction descriptor 2014-08-07 14:52:37 -07:00
regulator regulator: max77693: Fix use of uninitialized regulator config 2014-11-14 09:00:13 -08:00
remoteproc
reset
rpmsg A small pull request consisting of: 2013-05-07 14:02:00 -07:00
rtc drivers/rtc/rtc-puv3.c: use dev_dbg() instead of dev_debug() for typo issue 2014-07-17 16:21:06 -07:00
s390 s390/chsc: fix SEI usage on old FW levels 2014-05-13 13:32:49 +02:00
sbus bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000 2014-08-14 09:38:26 +08:00
scsi scsi: only re-lock door after EH on devices that were reset 2014-11-21 09:23:03 -08:00
sfi
sh
sn
spi spi: pxa2xx: toggle clocks on suspend if not disabled by runtime PM 2014-11-14 09:00:05 -08:00
ssb
staging staging:iio:ade7758: Remove "raw" from channel name 2014-11-14 09:00:02 -08:00
target target: Fix APTPL metadata handling for dynamic MappedLUNs 2014-11-14 08:59:57 -08:00
tc
thermal thermal: hwmon: Make the check for critical temp valid consistent 2014-07-17 16:21:03 -07:00
tty tty: Fix high cpu load if tty is unreleaseable 2014-11-14 09:00:10 -08:00
uio
usb usb: gadget: f_fs: remove redundant ffs_data_get() 2014-11-14 09:00:11 -08:00
uwb uwb: init beacon cache entry before registering uwb device 2014-10-05 14:52:14 -07:00
vfio mm: close PageTail race 2014-03-04 07:55:47 -08:00
vhost vhost: validate vhost_get_vq_desc return value 2014-03-28 16:10:35 -04:00
video framebuffer: fix border color 2014-11-14 08:59:52 -08:00
virt
virtio virtio_pci: fix virtio spec compliance on restore 2014-11-14 08:59:50 -08:00
vlynq drivers/vlynq/vlynq.c: fix another resource size off by 1 error 2014-01-23 16:36:55 -08:00
vme
w1 w1: fix w1_send_slave dropping a slave id 2014-05-06 07:59:26 -07:00
watchdog watchdog: kempld-wdt: Use the correct value when configuring the prescaler with the watchdog 2014-07-06 18:57:27 -07:00
xen xen/manage: Always freeze/thaw processes when suspend/resuming 2014-10-05 14:52:17 -07:00
zorro zorro/UAPI: Use proper types (endianness/size) in <linux/zorro.h> 2013-11-26 11:09:09 +01:00
Kconfig
Makefile