linux-stable/drivers
Gerald Schaefer b48b0fe5be iommu/vt-d: Fix memory leak in intel_iommu_put_resv_regions()
commit 198bc3252e upstream.

Commit 9d3a4de4cb ("iommu: Disambiguate MSI region types") changed
the reserved region type in intel_iommu_get_resv_regions() from
IOMMU_RESV_RESERVED to IOMMU_RESV_MSI, but it forgot to also change
the type in intel_iommu_put_resv_regions().

This leads to a memory leak, because now the check in
intel_iommu_put_resv_regions() for IOMMU_RESV_RESERVED will never
be true, and no allocated regions will be freed.

Fix this by changing the region type in intel_iommu_put_resv_regions()
to IOMMU_RESV_MSI, matching the type of the allocated regions.

Fixes: 9d3a4de4cb ("iommu: Disambiguate MSI region types")
Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-06 17:31:34 +01:00
..
accessibility
acpi acpi/nfit: Fix command-supported detection 2019-01-31 08:13:45 +01:00
amba
android binder: fix race that allows malicious free of live buffer 2018-12-05 19:41:26 +01:00
ata libata: whitelist all SAMSUNG MZ7KM* solid-state disks 2018-12-21 14:13:15 +01:00
atm atm: zatm: Fix potential Spectre v1 2018-07-22 14:28:43 +02:00
auxdisplay auxdisplay: fix broken menu 2018-07-03 11:24:56 +02:00
base sysfs: Disable lockdep for driver bind/unbind files 2019-01-26 09:37:06 +01:00
bcma
block nbd: Use set_blocksize() to set device blocksize 2019-01-23 08:09:51 +01:00
bluetooth Bluetooth: btbcm: Add entry for BCM4335C0 UART bluetooth 2018-11-13 11:14:54 -08:00
bus bus: arm-cci: remove unnecessary unreachable() 2018-12-01 09:42:49 +01:00
cdrom cdrom: fix improper type cast, which can leat to information leak. 2018-11-21 09:24:04 +01:00
char char/mwave: fix potential Spectre v1 vulnerability 2019-01-31 08:13:43 +01:00
clk clk: imx6q: reset exclusive gates on init 2019-01-26 09:37:03 +01:00
clocksource clocksource/drivers/integrator-ap: Add missing of_node_put() 2019-01-26 09:37:05 +01:00
connector
cpufreq cpufreq: imx6q: add return value check for voltage scale 2018-12-01 09:42:53 +01:00
cpuidle powerpc/pseries/cpuidle: Fix preempt warning 2019-01-26 09:37:02 +01:00
crypto crypto: talitos - fix ablkcipher for CONFIG_VMAP_STACK 2019-01-23 08:09:48 +01:00
dax dev-dax: check_vma: ratelimit dev_info-s 2018-08-24 13:09:08 +02:00
dca
devfreq
dio
dma dmaengine: cppi41: delete channel from pending list when stop channel 2018-12-13 09:18:52 +01:00
dma-buf dma-buf: remove redundant initialization of sg_table 2018-06-05 11:41:57 +02:00
edac EDAC, skx_edac: Fix logical channel intermediate decoding 2018-11-13 11:15:06 -08:00
eisa
extcon extcon: Release locking when sending the notification of connector state 2018-09-09 19:55:56 +02:00
firewire
firmware efi/arm: Revert deferred unmap of early memmap mapping 2018-12-01 09:42:54 +01:00
fmc
fpga
fsi
gpio gpio: pl061: Move irq_chip definition inside struct pl061 2019-01-26 09:37:01 +01:00
gpu drm/i915/gvt: Fix mmap range check 2019-01-26 09:37:07 +01:00
hid HID: ite: Add USB id match for another ITE based keyboard rfkill key quirk 2019-01-13 10:00:56 +01:00
hsi
hv Drivers: hv: vmbus: Check for ring when getting debug info 2019-01-31 08:13:44 +01:00
hwmon hwmon: (w83795) temp4_type has writable permission 2018-12-17 09:28:49 +01:00
hwspinlock
hwtracing intel_th: msu: Fix an off-by-one in attribute store 2019-01-13 10:01:07 +01:00
i2c i2c: dev: prevent adapter retries and timeout being set as minus value 2019-01-16 22:07:12 +01:00
ide ide: pmac: add of_node_put() 2018-12-21 14:13:14 +01:00
idle intel_idle: Graceful probe failure when MWAIT is disabled 2018-08-09 12:16:39 +02:00
iio iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-12-17 09:28:49 +01:00
infiniband IB/usnic: Fix potential deadlock 2019-01-26 09:37:06 +01:00
input Input: uinput - fix undefined behavior in uinput_validate_absinfo() 2019-01-31 08:13:45 +01:00
iommu iommu/vt-d: Fix memory leak in intel_iommu_put_resv_regions() 2019-02-06 17:31:34 +01:00
ipack
irqchip irqchip/gic-v3-its: Align PCI Multi-MSI allocation on their size 2019-01-31 08:13:46 +01:00
isdn isdn: fix kernel-infoleak in capi_unlocked_ioctl 2019-01-09 17:14:43 +01:00
leds
lightnvm lightnvm: pblk: fix two sleep-in-atomic-context bugs 2018-11-13 11:14:52 -08:00
macintosh macintosh/via-pmu: Add missing mmio accessors 2018-09-19 22:43:41 +02:00
mailbox mailbox: xgene-slimpro: Fix potential NULL pointer dereference 2018-09-09 19:55:54 +02:00
mcb
md dm crypt: fix parsing of extended IV arguments 2019-01-31 08:13:45 +01:00
media media: venus: core: Set dma maximum segment size 2019-01-26 09:37:03 +01:00
memory memory: tegra: Apply interrupts mask per SoC 2018-08-03 07:50:38 +02:00
memstick
message
mfd mfd: tps6586x: Handle interrupts on suspend 2019-01-23 08:09:49 +01:00
misc mei: me: add denverton innovation engine device IDs 2019-01-31 08:13:42 +01:00
mmc mmc: Kconfig: Enable CONFIG_MMC_SDHCI_IO_ACCESSORS 2019-01-31 08:13:42 +01:00
mtd mtd: atmel-quadspi: disallow building on ebsa110 2019-01-09 17:14:47 +01:00
mux
net ipvlan, l3mdev: fix broken l3s mode wrt local routes 2019-02-06 17:31:33 +01:00
nfc NFC: nfcmrvl_uart: fix OF child-node lookup 2018-12-01 09:42:54 +01:00
ntb
nubus
nvdimm libnvdimm, pfn: Pad pfn namespaces relative to other regions 2018-12-13 09:18:54 +01:00
nvme nvmet-rdma: fix null dereference under heavy load 2019-01-31 08:13:47 +01:00
nvmem nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us 2018-08-24 13:09:14 +02:00
of OF: properties: add missing of_node_put 2019-01-23 08:09:49 +01:00
oprofile
parisc
parport parport: sunbpp: fix error return code 2018-09-26 08:38:12 +02:00
pci PCI: dwc: Move interrupt acking into the proper callback 2019-01-26 09:37:07 +01:00
pcmcia pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges 2018-11-13 11:14:46 -08:00
perf arm64: perf: Reject stand-alone CHAIN events for PMUv3 2018-10-18 09:16:24 +02:00
phy phy: phy-mtk-tphy: use auto instead of force to bypass utmi signals 2018-08-15 18:12:48 +02:00
pinctrl pinctrl: meson: fix pull enable register calculation 2019-01-13 10:00:56 +01:00
platform platform/x86: asus-wmi: Tell the EC the OS will handle the display off hotkey 2019-01-26 09:37:01 +01:00
pnp
power power: supply: olpc_battery: correct the temperature units 2019-01-13 10:01:07 +01:00
powercap
pps
ps3
ptp x86/pvclock: add setter for pvclock_pvti_cpu0_va 2019-01-31 08:13:47 +01:00
pwm pwm: meson: Fix mux clock names 2018-09-15 09:45:27 +02:00
rapidio
ras
regulator regulator: fix crash caused by null driver data 2018-10-03 17:00:55 -07:00
remoteproc remoteproc: qcom: Fix potential device node leaks 2018-06-21 04:02:48 +09:00
reset reset: make device_reset_optional() really optional 2018-12-08 13:03:40 +01:00
rpmsg rpmsg: smd: fix memory leak on channel create 2018-11-13 11:15:12 -08:00
rtc rtc: m41t80: Correct alarm month range with RTC reads 2019-01-09 17:14:52 +01:00
s390 s390/smp: fix CPU hotplug deadlock with CPU rescan 2019-01-31 08:13:43 +01:00
sbus drivers/sbus/char: add of_node_put() 2018-12-21 14:13:13 +01:00
scsi scsi: megaraid: fix out-of-bound array accesses 2019-01-26 09:37:06 +01:00
sfi
sh
sn
soc soc: ti: QMSS: Fix usage of irq_set_affinity_hint 2018-11-21 09:24:09 +01:00
spi spi: bcm2835: Unbreak the build of esoteric configs 2019-01-09 17:14:53 +01:00
spmi
ssb
staging staging: rtl8188eu: Add device code for D-Link DWA-121 rev B1 2019-01-31 08:13:43 +01:00
target scsi: target: use consistent left-aligned ASCII INQUIRY data 2019-01-26 09:37:03 +01:00
tc TC: Set DMA masks for devices 2018-11-13 11:15:11 -08:00
tee tee: check shm references are consistent in offset/size 2018-06-21 04:02:54 +09:00
thermal thermal/drivers/hisi: Remove costly sensor inspection 2018-12-08 13:03:40 +01:00
thunderbolt
tty vt: invoke notifier on screen size change 2019-01-31 08:13:46 +01:00
uio uio: Fix an Oops on load 2018-11-27 16:10:51 +01:00
usb xhci: Fix leaking USB3 shared_hcd at xhci removal 2019-01-31 08:13:47 +01:00
uwb uwb: hwa-rc: fix memory leak at probe 2018-10-03 17:00:46 -07:00
vfio vfio/type1: Fix task tracking for QEMU vCPU hotplug 2018-08-03 07:50:23 +02:00
vhost vhost: log dirty page correctly 2019-01-31 08:13:41 +01:00
video omap2fb: Fix stack memory disclosure 2019-01-23 08:09:49 +01:00
virt
virtio virtio_balloon: fix increment of vb->num_pfns in fill_balloon() 2018-10-13 09:27:30 +02:00
vlynq
vme
w1 w1: omap-hdq: fix missing bus unregister at removal 2018-11-13 11:15:09 -08:00
watchdog watchdog: da9063: Fix updating timeout value 2018-08-03 07:50:24 +02:00
xen xen: Fix x86 sched_clock() interface for xen 2019-01-31 08:13:48 +01:00
zorro
Kconfig
Makefile