Eric Auger
1717136231
vfio/pci: Move dummy_resources_list init in vfio_pci_probe()
...
[ Upstream commit 16b8fe4caf499ae8e12d2ab1b1324497e36a7b83 ]
In case an error occurs in vfio_pci_enable() before the call to
vfio_pci_probe_mmaps(), vfio_pci_disable() will try to iterate
on an uninitialized list and cause a kernel panic.
Lets move to the initialization to vfio_pci_probe() to fix the
issue.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Fixes: 05f0c03fba ("vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive")
CC: Stable <stable@vger.kernel.org> # v4.7+
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-09 13:35:48 +01:00
..
accessibility
acpi
ACPI: PNP: compare the string length in the matching_id()
2020-12-29 13:45:03 +01:00
amba
android
binder: Prevent context manager from incrementing ref 0
2020-08-21 11:01:55 +02:00
ata
ata: sata_rcar: Fix DMA boundary mask
2020-11-10 10:23:51 +01:00
atm
atm: nicstar: Unmap DMA on send error
2020-11-24 13:02:52 +01:00
auxdisplay
base
device property: Don't clear secondary pointer for shared primary firmware node
2020-11-10 10:24:00 +01:00
bcma
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA
2020-01-29 10:24:31 +01:00
block
xen-blkback: set ring->xenblkd to NULL after kthread_stop()
2020-12-29 13:45:07 +01:00
bluetooth
Bluetooth: btusb: fix PM leak in error case of setup
2020-01-12 11:24:16 +01:00
bus
mips: cdmm: fix use-after-free in mips_cdmm_bus_discover
2020-12-29 13:44:56 +01:00
cdrom
cdrom: respect device capabilities during opening action
2020-01-04 13:41:02 +01:00
char
random32: make prandom_u32() output unpredictable
2020-11-18 18:26:29 +01:00
clk
clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9
2020-12-29 13:45:07 +01:00
clocksource
clocksource/drivers/arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI
2020-12-29 13:44:58 +01:00
connector
cpufreq
cpufreq: scpi: Add missing MODULE_ALIAS
2020-12-29 13:44:58 +01:00
cpuidle
cpuidle: Fix three reference count leaks
2020-06-20 10:24:18 +02:00
crypto
crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe
2020-12-29 13:44:55 +01:00
dax
dca
devfreq
PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out
2020-10-01 20:40:02 +02:00
dio
dma
dmaengine: pl330: _prep_dma_memcpy: Fix wrong burst size
2020-12-02 08:31:26 +01:00
dma-buf
dma-buf: Fix memory leak in sync_file_merge()
2019-12-21 10:42:32 +01:00
edac
EDAC/i5100: Fix error handling order in i5100_init_one()
2020-10-29 09:05:32 +01:00
eisa
extcon
extcon: max77693: Fix modalias string
2020-12-29 13:45:00 +01:00
firewire
net: add annotations on hh->hh_len lockless accesses
2020-01-12 11:24:19 +01:00
firmware
efi: Make it possible to disable efivar_ssdt entirely
2020-07-09 09:35:57 +02:00
fmc
fpga
gpio
gpio: tc35894: fix up tc35894 interrupt configuration
2020-10-14 09:48:12 +02:00
gpu
drm/dp_aux_dev: check aux_dev before use in drm_dp_aux_dev_get_by_minor()
2020-12-29 13:45:06 +01:00
hid
HID: i2c-hid: add Vero K147 to descriptor override
2020-12-29 13:44:52 +01:00
hsi
HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()
2020-12-29 13:44:56 +01:00
hv
Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload
2020-09-23 08:46:15 +02:00
hwmon
hwmon: (applesmc) check status earlier.
2020-09-12 11:47:32 +02:00
hwspinlock
hwtracing
intel_th: Fix user-visible error codes
2020-04-02 17:20:25 +02:00
i2c
i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()
2020-12-11 13:38:01 +01:00
ide
block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h>
2020-09-12 11:47:36 +02:00
idle
iio
iio:pressure:mpl3115: Force alignment of buffer
2020-12-29 13:45:07 +01:00
infiniband
RDMA/cxgb4: Validate the number of CQEs
2020-12-29 13:44:55 +01:00
input
Input: cyapa_gen6 - fix out-of-bounds stack access
2020-12-29 13:45:02 +01:00
iommu
iommu/amd: Set DTE[IntTabLen] to represent 512 IRTEs
2020-12-11 13:38:00 +01:00
ipack
irqchip
irqchip/alpine-msi: Fix freeing of interrupts on allocation error path
2020-12-29 13:45:00 +01:00
isdn
staging: gigaset: add endpoint-type sanity check
2019-12-21 10:41:50 +01:00
leds
leds: bcm6328, bcm6358: use devres LED registering function
2020-11-10 10:23:56 +01:00
lguest
lightnvm
macintosh
drivers/macintosh: Fix memleak in windfarm_pm112 driver
2020-06-20 10:24:21 +02:00
mailbox
mcb
md
dm ioctl: fix error return code in target_message
2020-12-29 13:44:58 +01:00
media
media: netup_unidvb: Don't leak SPI master in probe error path
2020-12-29 13:45:02 +01:00
memory
memory: emif: Remove bogus debugfs error handling
2020-11-10 10:23:55 +01:00
memstick
memstick: r592: Fix error return in r592_probe()
2020-12-29 13:44:58 +01:00
message
scsi: mptfusion: Fix null pointer dereferences in mptscsih_remove()
2020-11-10 10:23:57 +01:00
mfd
misc: rtsx: Fix memory leak in rtsx_pci_probe
2020-10-29 09:05:44 +01:00
misc
mei: protect mei_cl_mtu from null dereference
2020-11-18 18:26:28 +01:00
mmc
mmc: via-sdmmc: Fix data race bug
2020-11-10 10:23:53 +01:00
mtd
mtd: parser: cmdline: Fix parsing of part-names with colons
2020-12-29 13:45:07 +01:00
net
qlcnic: Fix error code in probe
2020-12-29 13:45:01 +01:00
nfc
nfc: s3fwrn5: Release the nfc firmware
2020-12-29 13:45:00 +01:00
ntb
NTB: hw: amd: fix an issue about leak system resources
2020-10-29 09:05:41 +01:00
nubus
nvdimm
block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h>
2020-09-12 11:47:36 +02:00
nvme
nvmet: fix uninitialized work for zero kato
2020-10-29 09:05:41 +01:00
nvmem
nvmem: qfprom: remove incorrect write support
2020-06-11 09:22:22 +02:00
of
of/address: Fix of_node memory leak in of_dma_is_coherent
2020-11-18 18:26:27 +01:00
oprofile
parisc
parisc: mask out enable and reserved bits from sba imask
2020-08-21 11:02:06 +02:00
parport
parport: load lowlevel driver if ports not found
2020-01-04 13:39:55 +01:00
pci
PCI: Fix pci_slot_release() NULL pointer dereference
2020-12-29 13:45:07 +01:00
pcmcia
perf
phy
phy: tegra: xusb: Fix dangling pointer on probe failure
2020-12-02 08:31:27 +01:00
pinctrl
pinctrl: falcon: add missing put_device() call in pinctrl_falcon_probe()
2020-12-29 13:44:58 +01:00
platform
platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE
2020-12-29 13:44:47 +01:00
pnp
power
power: supply: test_power: add missing newlines when printing parameters by sysfs
2020-11-10 10:23:54 +01:00
powercap
powercap: restrict energy meter to root access
2020-11-10 21:04:57 +01:00
pps
ps3
powerpc/ps3: use dma_mapping_error()
2020-12-29 13:45:00 +01:00
ptp
ptp: free ptp device pin descriptors properly
2020-05-20 08:15:33 +02:00
pwm
pwm: bcm-iproc: handle clk_get_rate() return
2020-08-21 11:02:10 +02:00
rapidio
rapidio: fix the missed put_device() for rio_mport_add_riodev
2020-10-29 09:05:39 +01:00
ras
regulator
regulator: workaround self-referent regulators
2020-12-02 08:31:29 +01:00
remoteproc
remoteproc: Fix wrong rvring index computation
2020-05-02 17:23:14 +02:00
reset
reset: Fix potential use-after-free in __of_reset_control_get()
2019-11-25 09:53:42 +01:00
rpmsg
rtc
rtc: rx8010: don't modify the global rtc ops
2020-11-10 10:23:59 +01:00
s390
s390/dasd: fix list corruption of lcu list
2020-12-29 13:45:03 +01:00
sbus
scsi
scsi: fnic: Fix error return code in fnic_probe()
2020-12-29 13:44:59 +01:00
sfi
sh
sn
soc
soc: qcom: smp2p: Safely acquire spinlock without IRQs
2020-12-29 13:45:07 +01:00
spi
spi: st-ssc4: Fix unbalanced pm_runtime_disable() in probe error path
2020-12-29 13:45:06 +01:00
spmi
ssb
staging
staging: comedi: mf6x4: Fix AI end-of-conversion detection
2020-12-29 13:45:03 +01:00
target
scsi: target: iscsi: Fix cmd abort fabric stop race
2020-12-02 08:31:26 +01:00
tc
thermal
thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430
2020-09-12 11:47:34 +02:00
thunderbolt
tty
serial_core: Check for port state when tty is in error state
2020-12-29 13:44:52 +01:00
uio
uio_pdrv_genirq: fix use without device tree and no interrupt
2020-07-22 09:10:53 +02:00
usb
USB: serial: keyspan_pda: fix write unthrottling
2020-12-29 13:45:04 +01:00
uwb
vfio
vfio/pci: Move dummy_resources_list init in vfio_pci_probe()
2021-01-09 13:35:48 +01:00
vhost
vringh: fix __vringh_iov() when riov and wiov are different
2020-11-10 10:23:59 +01:00
video
video: hyperv_fb: Fix the cache type when mapping the VRAM
2020-12-02 08:31:27 +01:00
virt
drivers/virt/fsl_hypervisor: Fix error handling path
2020-10-29 09:05:35 +01:00
virtio
virtio_ring: Avoid loop when vq is broken in virtqueue_poll
2020-08-26 10:29:05 +02:00
vlynq
vme
vme: bridges: reduce stack usage
2020-02-28 15:42:33 +01:00
w1
w1: mxc_w1: Fix timeout resolution problem leading to bus error
2020-11-10 10:23:57 +01:00
watchdog
watchdog: qcom: Avoid context switch in restart handler
2020-12-29 13:45:01 +01:00
xen
xen/events: block rogue events for some time
2020-11-18 18:26:31 +01:00
zorro
Kconfig
Makefile