linux-stable/drivers
Jeffrey Hugo 7556e63b40 dmaengine: qcom: bam_dma: Fix resource leak
commit 7667819385 upstream.

bam_dma_terminate_all() will leak resources if any of the transactions are
committed to the hardware (present in the desc fifo), and not complete.
Since bam_dma_terminate_all() does not cause the hardware to be updated,
the hardware will still operate on any previously committed transactions.
This can cause memory corruption if the memory for the transaction has been
reassigned, and will cause a sync issue between the BAM and its client(s).

Fix this by properly updating the hardware in bam_dma_terminate_all().

Fixes: e7c0fe2a5c ("dmaengine: add Qualcomm BAM dma driver")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191017152606.34120-1-jeffrey.l.hugo@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-10 11:25:37 +01:00
..
accessibility
acpi ACPI / PCI: fix acpi_pci_irq_enable() memory leak 2019-10-05 12:48:00 +02:00
amba
android binder: fix possible UAF when freeing buffer 2019-08-04 09:32:01 +02:00
ata libata: add SG safety checks in SFF pio transfers 2019-08-29 08:26:41 +02:00
atm Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105 2019-09-21 07:15:34 +02:00
auxdisplay auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach 2019-09-06 10:20:43 +02:00
base cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown 2019-10-29 09:17:44 +01:00
bcma
block nbd: handle racing with error'ed out commands 2019-11-10 11:25:20 +01:00
bluetooth Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices 2019-10-05 12:47:39 +02:00
bus
cdrom
char ipmi_si: Only schedule continuously in the thread in maintenance mode 2019-10-07 18:54:59 +02:00
clk clk: boston: unregister clks on failure in clk_boston_setup() 2019-11-06 12:42:55 +01:00
clocksource clocksource/drivers/exynos_mct: Increase priority over ARM arch timer 2019-07-31 07:28:30 +02:00
connector
cpufreq cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown 2019-10-29 09:17:44 +01:00
cpuidle
crypto crypto: caam - fix concurrency issue in givencrypt descriptor 2019-10-11 18:18:33 +02:00
dax
dca
devfreq PM / devfreq: tegra: Fix kHz to Hz conversion 2019-10-11 18:18:30 +02:00
dio
dma dmaengine: qcom: bam_dma: Fix resource leak 2019-11-10 11:25:37 +01:00
dma-buf dma-buf/sw_sync: Synchronize signal vs syncpt free 2019-10-07 18:55:07 +02:00
edac EDAC/amd64: Decode syndrome before translating address 2019-10-05 12:47:54 +02:00
eisa
extcon extcon: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:47:28 -07:00
firewire
firmware efi/cper: Fix endianness of PCIe class code 2019-11-06 12:43:11 +01:00
fmc
fpga fpga: altera-ps-spi: Fix getting of optional confd gpio 2019-09-21 07:15:32 +02:00
fsi
gpio gpio: max77620: Use correct unit for debounce times 2019-11-06 12:43:09 +01:00
gpu drm/amdgpu: Bail earlier when amdgpu.cik_/si_support is not set to 1 2019-10-29 09:17:36 +01:00
hid HID: fix error message in hid_open_report() 2019-11-06 12:43:33 +01:00
hsi
hv
hwmon hwmon: (acpi_power_meter) Change log level for 'unsafe software power cap' 2019-10-05 12:48:00 +02:00
hwspinlock
hwtracing coresight: etm4x: Use explicit barriers on enable/disable 2019-10-11 18:18:48 +02:00
i2c i2c: stm32f7: remove warning when compiling with W=1 2019-11-10 11:25:19 +01:00
ide
idle
iio iio: fix center temperature of bmc150-accel-core 2019-11-06 12:43:01 +01:00
infiniband RDMA/iwcm: Fix a lock inversion issue 2019-11-06 12:43:06 +01:00
input Input: synaptics-rmi4 - avoid processing unknown IRQs 2019-10-29 09:17:33 +01:00
iommu iommu/iova: Avoid false sharing on fq_timer_on 2019-10-05 12:47:58 +02:00
ipack
irqchip irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices 2019-10-05 12:47:36 +02:00
isdn net: use skb_queue_empty_lockless() in poll() handlers 2019-11-10 11:25:34 +01:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2019-10-05 12:47:45 +02:00
lightnvm
macintosh
mailbox mailbox: handle failed named mailbox channel request 2019-07-31 07:28:55 +02:00
mcb
md dm: Use kzalloc for all structs with embedded biosets/mempools 2019-11-06 12:42:52 +01:00
media media: vimc: Remove unused but set variables 2019-11-06 12:42:58 +01:00
memory memory: tegra: Fix integer overflow on tick value calculation 2019-05-25 18:25:25 +02:00
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:17:43 +01:00
message
mfd mfd: intel-lpss: Remove D3cold delay 2019-10-07 18:55:08 +02:00
misc VMCI: Release resource if the work is already queued 2019-09-06 10:20:59 +02:00
mmc mmc: sdhci-of-esdhc: set DMA snooping based on DMA coherence 2019-10-11 18:18:36 +02:00
mtd mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword() 2019-10-05 12:47:33 +02:00
mux
net vxlan: check tun_info options_len properly 2019-11-10 11:25:35 +01:00
nfc NFC: pn533: fix use-after-free and memleaks 2019-11-06 12:43:37 +01:00
ntb
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
nvme nvmet: fix data units read and written counters in SMART log 2019-10-05 12:47:58 +02:00
nvmem nvmem: Use the same permissions for eeprom as for nvmem 2019-09-19 09:08:08 +02:00
of of: unittest: fix memory leak in unittest_data_add 2019-11-10 11:25:17 +01:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 12:48:05 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2019-06-25 11:36:51 +08:00
pci PCI/PME: Fix possible use-after-free on remove 2019-11-06 12:42:59 +01:00
pcmcia
perf drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-08-06 19:05:27 +02:00
phy phy: renesas: rcar-gen3-usb2: Disable clearing VBUS in over-current 2019-09-21 07:15:27 +02:00
pinctrl pinctrl: ns2: Fix off by one bugs in ns2_pinmux_enable() 2019-11-10 11:25:07 +01:00
platform platform/x86: pmc_atom: Add CB4063 Beckhoff Automation board to critclk_systems DMI table 2019-09-19 09:08:08 +02:00
pnp
power power: supply: max14656: fix potential use-after-free 2019-11-06 12:43:00 +01:00
powercap
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:32:03 +02:00
ps3
ptp
pwm pwm: stm32-lp: Add check in case requested period cannot be achieved 2019-10-11 18:18:40 +02:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings 2019-08-06 19:05:24 +02:00
ras RAS/CEC: Fix pfn insertion 2019-07-31 07:28:24 +02:00
regulator regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized 2019-11-10 11:25:05 +01:00
remoteproc
reset
rpmsg
rtc rtc: pcf8523: set xtal load capacitance from DT 2019-11-06 12:42:56 +01:00
s390 scsi: zfcp: fix reaction on bit error threshold notification 2019-10-29 09:17:37 +01:00
sbus
scsi scsi: fix kconfig dependency warning related to 53C700_LE_ON_BE 2019-11-10 11:25:11 +01:00
sfi
sh
sn
soc soc: rockchip: Set the proper PWM for rk3288 2019-06-15 11:54:55 +02:00
spi spi: bcm2835aux: fix corruptions for longer spi transfers 2019-09-10 10:32:19 +01:00
spmi
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2019-05-31 06:47:13 -07:00
staging staging: rtl8188eu: fix null dereference when kzalloc fails 2019-11-06 12:43:04 +01:00
target scsi: target: core: Do not overwrite CDB byte 1 2019-11-10 11:25:15 +01:00
tc
tee
thermal thermal: Fix use-after-free when unregistering thermal zone device 2019-10-11 18:18:41 +02:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2019-11-06 12:43:22 +01:00
tty serial: mctrl_gpio: Check for NULL pointer 2019-11-06 12:43:11 +01:00
uio
usb USB: serial: whiteheat: fix line-speed endianness 2019-11-06 12:43:31 +01:00
uwb
vfio vfio_pci: Restore original state on release 2019-10-07 18:55:03 +02:00
vhost vhost: make sure log_num < in_num 2019-09-16 08:20:46 +02:00
video video: ssd1307fb: Start page range at page_offset 2019-10-07 18:54:58 +02:00
virt drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl 2019-05-16 19:42:35 +02:00
virtio
vlynq
vme
w1 w1: fix the resume command API 2019-05-31 06:47:21 -07:00
watchdog watchdog: aspeed: Add support for AST2600 2019-10-11 18:18:39 +02:00
xen xen/pci: reserve MCFG areas earlier 2019-10-11 18:18:38 +02:00
zorro
Kconfig
Makefile