linux-stable/drivers
Aleksandr Mishin 37a438704d net: wwan: iosm: Fix tainted pointer delete is case of region creation fail
[ Upstream commit b0c9a26435 ]

In case of region creation fail in ipc_devlink_create_region(), previously
created regions delete process starts from tainted pointer which actually
holds error code value.
Fix this bug by decreasing region index before delete.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 4dcd183fbd ("net: wwan: iosm: devlink registration")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240604082500.20769-1-amishin@t-argos.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-21 14:40:08 +02:00
..
accel
accessibility
acpi ACPI: APEI: EINJ: Fix einj_dev release leak 2024-06-16 13:51:05 +02:00
amba
android
ata ata: pata_legacy: make legacy_exit() work again 2024-06-16 13:50:56 +02:00
atm
auxdisplay
base module: don't ignore sysfs_create_link() failures 2024-06-12 11:39:09 +02:00
bcma
block null_blk: Fix return value of nullb_device_power_store() 2024-06-12 11:39:50 +02:00
bluetooth Bluetooth: HCI: Remove HCI_AMP support 2024-05-30 09:44:41 +02:00
bus
cache
cdrom
cdx
char tpm_tis: Do *not* flush uninitialized work 2024-06-16 13:51:06 +02:00
clk clk: qcom: apss-ipq-pll: use stromer ops for IPQ5018 to fix boot failure 2024-06-16 13:51:03 +02:00
clocksource
comedi
connector
counter
cpufreq cpufreq: amd-pstate: remove global header file 2024-06-21 14:40:00 +02:00
cpuidle
crypto crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak 2024-06-16 13:51:04 +02:00
cxl cxl/region: Fix cxlr_pmem leaks 2024-06-12 11:39:33 +02:00
dax dax/bus.c: use the right locking mode (read vs write) in size_show 2024-05-30 09:44:59 +02:00
dca
devfreq
dio
dma dmaengine: idxd: Avoid unnecessary destruction of file_ida 2024-06-12 11:39:17 +02:00
dma-buf dma-buf/sw-sync: don't enable IRQ from sync_print_obj() 2024-06-12 11:39:48 +02:00
dpll dpll: fix return value check for kmemdup 2024-05-30 09:44:39 +02:00
edac EDAC/igen6: Convert PCIBIOS_* return codes to errnos 2024-06-16 13:51:13 +02:00
eisa
extcon extcon: max8997: select IRQ_DOMAIN instead of depending on it 2024-06-12 11:39:18 +02:00
firewire
firmware LoongArch: Fix entry point in kernel image header 2024-06-16 13:51:03 +02:00
fpga fpga: region: add owner module and take its refcount 2024-06-12 11:39:13 +02:00
fsi
gnss
gpio gpiolib: acpi: Fix failed in acpi_gpiochip_find() by adding parent node match 2024-06-12 11:39:25 +02:00
gpu Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices" 2024-06-16 13:51:01 +02:00
greybus
hid HID: i2c-hid: elan: fix reset suspend current leakage 2024-06-16 13:51:05 +02:00
hsi
hte
hv
hwmon hwmon: (ltc2992) Fix memory leak in ltc2992_parse_dt() 2024-06-16 13:51:12 +02:00
hwspinlock
hwtracing intel_th: pci: Add Meteor Lake-S CPU support 2024-06-16 13:51:07 +02:00
i2c i2c: acpi: Unbind mux adapters before delete 2024-06-16 13:51:05 +02:00
i3c i3c: master: svc: fix invalidate IBI type and miss call client IBI handler 2024-06-16 13:51:12 +02:00
idle
iio iio: adc: PAC1934: fix accessing out of bounds array index 2024-06-12 11:39:16 +02:00
infiniband inet: introduce dst_rtable() helper 2024-06-12 11:39:55 +02:00
input Input: cyapa - add missing input core locking to suspend/resume functions 2024-06-12 11:39:31 +02:00
interconnect interconnect: qcom: qcm2290: Fix mas_snoc_bimc QoS port assignment 2024-06-12 11:39:09 +02:00
iommu iommu/amd: Enable Guest Translation after reading IOMMU feature register 2024-05-30 09:44:58 +02:00
ipack
irqchip irqchip/riscv-intc: Prevent memory leak when riscv_intc_init_common() fails 2024-06-16 13:51:09 +02:00
isdn
leds leds: pwm: Disable PWM when going to suspend 2024-06-12 11:39:15 +02:00
macintosh
mailbox mailbox: mtk-cmdq: Fix pm_runtime_get_sync() warning in mbox shutdown 2024-06-12 11:39:25 +02:00
mcb
md md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING 2024-06-16 13:50:57 +02:00
media media: v4l: async: Fix notifier list entry init 2024-06-16 13:50:59 +02:00
memory
memstick
message
mfd
misc VMCI: Fix an error handling path in vmci_guest_probe_device() 2024-06-12 11:39:15 +02:00
mmc mmc: sdhci-acpi: Add quirk to enable pull-up on the card-detect GPIO on Asus T100TA 2024-06-16 13:51:00 +02:00
most
mtd mtd: rawnand: hynix: fixed typo 2024-05-30 09:44:43 +02:00
mux
net net: wwan: iosm: Fix tainted pointer delete is case of region creation fail 2024-06-21 14:40:08 +02:00
nfc
ntb
nubus
nvdimm
nvme nvmet: fix ns enable/disable possible hang 2024-06-12 11:39:47 +02:00
nvmem
of of: module: add buffer overflow check in of_modalias() 2024-05-30 09:45:00 +02:00
opp
parisc
parport
pci PCI/EDR: Align EDR_PORT_LOCATE_DSM with PCI Firmware r3.3 2024-06-12 11:39:18 +02:00
pcmcia
peci
perf perf/arm-dmc620: Fix lockdep assert in ->event_init() 2024-06-12 11:39:37 +02:00
phy phy: qcom: qmp-combo: fix sm8650 voltage swing table 2024-06-12 11:39:27 +02:00
pinctrl pinctrl: qcom: pinctrl-sm7150: Fix sdc1 and ufs special pins regs 2024-06-12 11:39:16 +02:00
platform platform/chrome: cros_ec: Handle events during suspend after resume completion 2024-06-16 13:50:56 +02:00
pmdomain
pnp
power power: supply: core: simplify charge_behaviour formatting 2024-05-30 09:44:52 +02:00
powercap
pps
ps3
ptp ptp: Fix error message on failed pin verification 2024-06-21 14:40:07 +02:00
pwm
rapidio
ras
regulator regulator: tps6594-regulator: Correct multi-phase configuration 2024-06-12 11:39:41 +02:00
remoteproc
reset
rpmsg
rtc
s390 s390/ap: Fix crash in AP internal function modify_bitmap() 2024-06-16 13:51:11 +02:00
sbus
scsi scsi: core: Handle devices which return an unusually large VPD page count 2024-06-16 13:51:05 +02:00
sh
siox
slimbus
soc soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request 2024-06-16 13:50:56 +02:00
soundwire soundwire: cadence: fix invalid PDI offset 2024-06-12 11:39:08 +02:00
spi spi: stm32: Don't warn about spurious interrupts 2024-06-12 11:39:54 +02:00
spmi spmi: pmic-arb: Replace three IS_ERR() calls by null pointer checks in spmi_pmic_arb_probe() 2024-06-12 11:39:18 +02:00
ssb
staging greybus: arche-ctrl: move device table to its right location 2024-06-12 11:39:09 +02:00
target
tc
tee
thermal thermal/drivers/qcom/lmh: Check for SCM availability at probe 2024-06-16 13:50:56 +02:00
thunderbolt
tty serial: sh-sci: protect invalidating RXDMA on shutdown 2024-06-12 11:39:21 +02:00
ufs scsi: ufs: mcq: Fix error output and clean up ufshcd_mcq_abort() 2024-06-21 14:40:03 +02:00
uio
usb usb: fotg210: Add missing kernel doc description 2024-06-12 11:39:22 +02:00
vdpa
vfio vfio/pci: fix potential memory leak in vfio_intx_enable() 2024-06-12 11:39:13 +02:00
vhost
video fbdev: savage: Handle err return when savagefb_check_var failed 2024-06-16 13:51:01 +02:00
virt drivers/virt/acrn: fix PFNMAP PTE checks in acrn_vm_ram_map() 2024-05-30 09:44:58 +02:00
virtio virtio: delete vq in vp_find_vqs_msix() when request_irq() fails 2024-06-12 11:39:42 +02:00
w1
watchdog watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin 2024-06-16 13:51:08 +02:00
xen drivers/xen: Improve the late XenStore init protocol 2024-06-12 11:39:43 +02:00
zorro
Kconfig
Makefile