linux-stable/drivers
Halil Pasic ffcad0a8f4 s390/virtio: handle find on invalid queue gracefully
commit 3438b2c039 upstream.

A queue with a capacity of zero is clearly not a valid virtio queue.
Some emulators report zero queue size if queried with an invalid queue
index. Instead of crashing in this case let us just return -ENOENT. To
make that work properly, let us fix the notifier cleanup logic as well.

Cc: stable@vger.kernel.org
Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 13:19:46 +01:00
..
accessibility
acpi ACPI / device_sysfs: Avoid OF modalias creation for removed device 2019-03-23 13:19:46 +01:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-01 15:13:08 -07:00
android binder: fix proc->files use-after-free 2018-12-08 13:05:07 +01:00
ata sata_rcar: fix deferred probing 2019-02-12 19:44:54 +01:00
atm atm: he: fix sign-extension overflow on large shift 2019-02-27 10:06:59 +01:00
auxdisplay
base drivers: core: Remove glue dirs from sysfs earlier 2019-02-06 17:33:29 +01:00
bcma
block floppy: check_events callback should not return a negative number 2019-03-23 13:19:41 +01:00
bluetooth Revert "Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV" 2018-11-27 16:09:40 +01:00
bus bus: arm-cci: remove unnecessary unreachable() 2018-12-05 19:42:41 +01:00
cdrom gdrom: fix a memory leak bug 2019-02-12 19:44:58 +01:00
char applicom: Fix potential Spectre v1 vulnerabilities 2019-03-13 14:04:54 -07:00
clk clk: sunxi: A31: Fix wrong AHB gate number 2019-03-23 13:19:42 +01:00
clocksource clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown 2019-03-23 13:19:46 +01:00
connector
cpufreq cpufreq: Use struct kobj_attribute instead of struct global_attr 2019-03-13 14:04:51 -07:00
cpuidle cpuidle: big.LITTLE: fix refcount leak 2019-02-12 19:44:55 +01:00
crypto crypto: caam - fixed handling of sg list 2019-03-23 13:19:40 +01:00
dax
dca
devfreq
dio
dma dmaengine: dmatest: Abort test in case of mapping error 2019-03-13 14:05:00 -07:00
dma-buf dma-buf: remove redundant initialization of sg_table 2018-06-06 16:44:33 +02:00
edac EDAC, skx_edac: Fix logical channel intermediate decoding 2018-11-13 11:16:56 -08:00
eisa
extcon
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-05-30 07:50:18 +02:00
firmware iscsi_ibft: Fix missing break in switch statement 2019-03-13 14:05:01 -07:00
fmc
fpga
gpio gpio: vf610: Mask all GPIO interrupts 2019-03-13 14:04:57 -07:00
gpu gpu: ipu-v3: Fix CSI offsets for imx53 2019-03-23 13:19:41 +01:00
hid HID: debug: fix the ring buffer implementation 2019-02-15 08:07:39 +01:00
hsi
hv Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels 2018-12-29 13:40:15 +01:00
hwmon hwmon: (lm80) Fix missing unlock on error in set_fan_div() 2019-02-23 09:05:58 +01:00
hwspinlock
hwtracing stm class: Prevent division by zero 2019-03-23 13:19:44 +01:00
i2c i2c: cadence: Fix the hold bit setting 2019-03-23 13:19:42 +01:00
ide ide: pmac: add of_node_put() 2018-12-21 14:11:37 +01:00
idle
iio iio: adc: exynos-adc: Fix NULL pointer exception on unbind 2019-03-23 13:19:40 +01:00
infiniband IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM 2019-03-13 14:04:55 -07:00
input Input: st-keyscan - fix potential zalloc NULL dereference 2019-03-23 13:19:42 +01:00
iommu iommu/amd: Fix IOMMU page flush when detach device from a domain 2019-03-13 14:04:55 -07:00
ipack
irqchip irqchip/mmp: Only touch the PJ4 IRQ & FIQ bits on enable/disable 2019-03-13 14:04:59 -07:00
isdn isdn: isdn_tty: fix build warning of strncpy 2019-03-13 14:04:52 -07:00
leds leds: lp5523: fix a missing check of return value of lp55xx_read 2019-02-27 10:07:00 +01:00
lguest
lightnvm
macintosh macintosh/rack-meter: Convert cputime64_t use to u64 2018-10-20 09:51:32 +02:00
mailbox mailbox: xgene-slimpro: Fix potential NULL pointer dereference 2018-09-09 20:01:19 +02:00
mcb
md It's wrong to add len to sector_nr in raid10 reshape twice 2019-03-19 13:14:11 +01:00
media media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused() 2019-03-23 13:19:40 +01:00
memory memory: tegra: Apply interrupts mask per SoC 2018-08-03 07:55:24 +02:00
memstick memstick: Prevent memstick host from getting runtime suspended during card detection 2019-02-12 19:44:55 +01:00
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-25 16:13:06 +02:00
mfd mfd: mc13xxx: Fix a missing check of a register-read failure 2019-02-27 10:06:59 +01:00
misc eeprom: at24: add support for 24c2048 2019-02-20 10:18:25 +01:00
mmc mmc: tmio_mmc_core: don't claim spurious interrupts 2019-03-19 13:14:11 +01:00
mtd mtd: rawnand: gpmi: fix MX28 bus master lockup problem 2019-02-15 08:07:37 +01:00
net net: set static variable an initial value in atl2_probe() 2019-03-23 13:19:44 +01:00
nfc NFC: nxp-nci: Include unaligned.h instead of access_ok.h 2019-01-09 16:16:39 +01:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-05-30 07:50:22 +02:00
nubus
nvdimm libnvdimm: Fix altmap reservation size calculation 2019-03-23 13:19:45 +01:00
nvme nvmet-rdma: fix null dereference under heavy load 2019-01-31 08:12:37 +01:00
nvmem nvmem: properly handle returned value nvmem_reg_read 2018-08-03 07:55:22 +02:00
of of: add helper to lookup compatible child node 2018-12-01 09:44:21 +01:00
oprofile
parisc parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode 2018-05-30 07:50:43 +02:00
parport parport: sunbpp: fix error return code 2018-09-26 08:36:38 +02:00
pci PCI: vmd: Free up IRQs on suspend path 2019-02-12 19:45:02 +01:00
pcmcia pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges 2018-11-13 11:16:46 -08:00
perf
phy phy: tegra: remove redundant self assignment of 'map' 2019-02-27 10:07:03 +01:00
pinctrl pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins 2019-03-23 13:19:43 +01:00
platform platform/x86: Fix unmet dependency warning for SAMSUNG_Q10 2019-03-13 14:04:57 -07:00
pnp
power power: supply: olpc_battery: correct the temperature units 2019-01-13 10:03:55 +01:00
powercap
pps
ps3
ptp ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl 2019-02-12 19:44:52 +01:00
pwm pwm: tiehrpwm: Fix disabling of output of PWMs 2018-09-09 20:01:25 +02:00
rapidio
ras
regulator regulator: s2mpa01: Fix step values for some LDOs 2019-03-23 13:19:46 +01:00
remoteproc
reset reset: make device_reset_optional() really optional 2018-12-08 13:05:08 +01:00
rpmsg rpmsg: smd: fix memory leak on channel create 2018-11-13 11:17:03 -08:00
rtc rtc: m41t80: Correct alarm month range with RTC reads 2019-01-09 16:16:45 +01:00
s390 s390/virtio: handle find on invalid queue gracefully 2019-03-23 13:19:46 +01:00
sbus drivers/sbus/char: add of_node_put() 2018-12-21 14:11:36 +01:00
scsi scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task 2019-03-23 13:19:42 +01:00
sfi
sh
sn
soc soc: fsl: qbman: avoid race in clearing QMan interrupt 2019-03-13 14:04:58 -07:00
spi spi: pxa2xx: Setup maximum supported DMA transfer length 2019-03-23 13:19:46 +01:00
spmi
ssb
staging staging: android: ion: fix sys heap pool's gfp_flags 2019-03-13 14:04:52 -07:00
target scsi: target: use consistent left-aligned ASCII INQUIRY data 2019-01-26 09:38:34 +01:00
tc TC: Set DMA masks for devices 2018-11-13 11:17:02 -08:00
thermal drivers: thermal: int340x_thermal: Fix sysfs race condition 2019-03-05 17:57:05 +01:00
thunderbolt
tty serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling 2019-03-05 17:57:05 +01:00
uio uio: Fix an Oops on load 2018-11-27 16:09:41 +01:00
usb usb: phy: fix link errors 2019-03-13 14:04:59 -07:00
uwb uwb: hwa-rc: fix memory leak at probe 2018-10-03 17:01:42 -07:00
vfio vfio: platform: Fix reset module leak in error path 2018-08-03 07:55:13 +02:00
vhost vhost/vsock: fix vhost vsock cid hashing inconsistent 2019-03-19 13:14:12 +01:00
video fbdev: fbcon: Fix unregister crash when more than one framebuffer 2019-02-12 19:44:57 +01:00
virt
virtio virtio: pci-legacy: Validate queue pfn 2018-09-15 09:42:57 +02:00
vlynq
vme
w1 w1: omap-hdq: fix missing bus unregister at removal 2018-11-13 11:17:01 -08:00
watchdog watchdog: sbsa: use 32-bit read for WCV 2018-05-30 07:50:34 +02:00
xen xen: xlate_mmu: add missing header to fix 'W=1' warning 2018-12-17 09:38:34 +01:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:50:44 +02:00
Kconfig
Makefile