Alexey V. Vissarionov
1cd70d8427
scsi: hpsa: Fix allocation size for scsi_host_alloc()
...
[ Upstream commit bbbd25499100c810ceaf5193c3cfcab9f7402a33 ]
The 'h' is a pointer to struct ctlr_info, so it's just 4 or 8 bytes, while
the structure itself is much bigger.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: edd163687e ("hpsa: add driver for HP Smart Array controllers.")
Link: https://lore.kernel.org/r/20230118031255.GE15213@altlinux.org
Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org>
Acked-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-06 07:52:43 +01:00
..
accessibility
acpi
ACPICA: Fix error code path in acpi_ds_call_control_method()
2023-01-18 11:41:34 +01:00
amba
android
binder: Gracefully handle BINDER_TYPE_FDA objects with num_fds=0
2022-12-08 11:23:01 +01:00
ata
ata: ahci: Fix PCS quirk application for suspend
2023-01-18 11:41:42 +01:00
atm
auxdisplay
base
driver core: Fix test_async_probe_init saves device in wrong array
2023-02-06 07:52:40 +01:00
bcma
block
drbd: use after free in drbd_create_device()
2022-11-25 17:42:16 +01:00
bluetooth
Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:16 +01:00
bus
bus: sunxi-rsb: Support atomic transfers
2022-12-08 11:22:57 +01:00
cdrom
char
ipmi: fix use after free in _ipmi_destroy_user()
2023-01-18 11:41:49 +01:00
clk
clk: Provide new devm_clk helpers for prepared and enabled clocks
2023-02-06 07:52:34 +01:00
clocksource
clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled
2023-01-18 11:40:56 +01:00
connector
counter
counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update
2023-01-18 11:41:24 +01:00
cpufreq
cpufreq: armada-37xx: stop using 0 as NULL pointer
2023-02-06 07:52:41 +01:00
cpuidle
cpuidle: dt: Return the correct numbers of parsed idle states
2023-01-18 11:40:53 +01:00
crypto
crypto: n2 - add missing hash statesize
2023-01-18 11:41:50 +01:00
dax
dca
devfreq
PM/devfreq: governor: Add a private governor_data for governor
2023-01-18 11:41:52 +01:00
dio
drivers: dio: fix possible memory leak in dio_init()
2023-01-18 11:41:21 +01:00
dma
dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
2023-02-06 07:52:40 +01:00
dma-buf
udmabuf: Set the DMA mask for the udmabuf device (v2)
2022-09-05 10:27:45 +02:00
edac
EDAC/highbank: Fix memory leak in highbank_mc_probe()
2023-02-06 07:52:35 +01:00
eisa
extcon
firewire
firmware
gsmi: fix null-deref in gsmi_get_variable
2023-01-24 07:18:01 +01:00
fpga
fsi
fsi: core: Check error number after calling ida_simple_get
2022-10-26 13:22:41 +02:00
gnss
gpio
gpio: mxc: Always set GPIOs used as interrupt source to INPUT mode
2023-02-06 07:52:37 +01:00
gpu
drm: Add orientation quirk for Lenovo ideapad D330-10IGL
2023-02-06 07:52:41 +01:00
greybus
hid
HID: betop: check shape of output reports
2023-02-06 07:52:39 +01:00
hsi
HSI: omap_ssi_core: Fix error handling in ssi_init()
2023-01-18 11:41:28 +01:00
hv
Drivers: hv: vmbus: fix possible memory leak in vmbus_device_register()
2022-12-08 11:22:58 +01:00
hwmon
hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new()
2022-12-08 11:23:03 +01:00
hwspinlock
hwtracing
i2c
i2c: ismt: Fix an out-of-bounds bug in ismt_access()
2023-01-18 11:41:26 +01:00
i3c
ide
idle
intel_idle: Disable IBRS during long idle
2022-10-07 09:16:55 +02:00
iio
iio: adc128s052: add proper .data members in adc128_of_match table
2023-01-18 11:41:41 +01:00
infiniband
IB/hfi1: Fix expected receive setup error exit issues
2023-02-06 07:52:36 +01:00
input
Input: elants_i2c - properly handle the reset GPIO when power is off
2023-01-18 11:41:03 +01:00
interconnect
iommu
iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()
2023-01-18 11:42:05 +01:00
ipack
irqchip
irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()
2023-01-18 11:40:54 +01:00
isdn
mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:32 +01:00
leds
lightnvm
macintosh
macintosh/macio-adb: check the return value of ioremap()
2023-01-18 11:41:29 +01:00
mailbox
mailbox: zynq-ipi: fix error handling while device_register() fails
2023-01-18 11:41:33 +01:00
mcb
mcb: mcb-parse: fix error handing in chameleon_parse_gdd()
2023-01-18 11:41:25 +01:00
md
dm thin: resume even if in FAIL mode
2023-01-18 11:41:53 +01:00
media
media: s5p-mfc: Fix in register read and write for H264
2023-01-18 11:41:53 +01:00
memory
memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()
2023-02-06 07:52:34 +01:00
memstick
message
mfd
mfd: sm501: Add check for platform_driver_register()
2022-10-26 13:22:42 +02:00
misc
misc: fastrpc: Fix use-after-free race condition for maps
2023-01-24 07:18:00 +01:00
mmc
mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting
2023-02-06 07:52:42 +01:00
mtd
mtd: spi-nor: Check for zero erase size in spi_nor_find_best_erase_type()
2023-01-18 11:41:49 +01:00
mux
net
net: dsa: microchip: ksz9477: port map correction in ALU table entry register
2023-02-06 07:52:40 +01:00
nfc
nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame()
2023-01-18 11:42:04 +01:00
ntb
nubus
nvdimm
nvme
nvme-pci: fix doorbell buffer value endianness
2023-01-18 11:41:42 +01:00
nvmem
of
of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
2023-01-18 11:41:14 +01:00
opp
oprofile
parisc
parisc: led: Fix potential null-ptr-deref in start_task()
2023-01-18 11:41:50 +01:00
parport
parport_pc: Avoid FIFO port location truncation
2022-11-25 17:42:14 +01:00
pci
PCI/sysfs: Fix double free in error path
2023-01-18 11:41:49 +01:00
pcmcia
perf
perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()
2023-01-18 11:40:50 +01:00
phy
phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
2023-02-06 07:52:37 +01:00
pinctrl
pinctrl: pinconf-generic: add missing of_node_put()
2023-01-18 11:41:06 +01:00
platform
platform/x86: asus-nb-wmi: Add alternate mapping for KEY_SCREENLOCK
2023-02-06 07:52:42 +01:00
pnp
PNP: fix name memory leak in pnp_alloc_dev()
2023-01-18 11:40:54 +01:00
power
power: supply: fix null pointer dereferencing in power_supply_get_battery_info
2023-01-18 11:41:28 +01:00
powercap
powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
2022-10-26 13:22:47 +02:00
pps
ps3
ptp
pwm
pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
2023-01-18 11:41:30 +01:00
rapidio
rapidio: devices: fix missing put_device in mport_cdev_open
2023-01-18 11:40:59 +01:00
ras
regulator
regulator: da9211: Use irq handler when ready
2023-01-18 11:42:04 +01:00
remoteproc
remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()
2023-01-18 11:41:31 +01:00
reset
rpmsg
rpmsg: qcom: glink: replace strncpy() with strscpy_pad()
2022-10-15 07:54:38 +02:00
rtc
rtc: mxc_v2: Add missing clk_disable_unprepare()
2023-01-18 11:41:32 +01:00
s390
s390/lcs: Fix return type of lcs_start_xmit()
2023-01-18 11:41:36 +01:00
sbus
scsi
scsi: hpsa: Fix allocation size for scsi_host_alloc()
2023-02-06 07:52:43 +01:00
sfi
sh
siox
siox: fix possible memory leak in siox_device_add()
2022-11-25 17:42:14 +01:00
slimbus
slimbus: stream: correct presence rate frequencies
2022-11-25 17:42:17 +01:00
soc
ARM: ux500: do not directly dereference __iomem
2023-01-18 11:41:46 +01:00
soundwire
spi
spi: spidev: remove debug messages that access spidev->spi without locking
2023-02-06 07:52:41 +01:00
spmi
spmi: pmic-arb: correct duplicate APID to PPID mapping logic
2022-10-26 13:22:43 +02:00
ssb
staging
comedi: adv_pci1760: Fix PWM instruction handling
2023-01-24 07:18:00 +01:00
target
scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus()
2022-11-25 17:42:20 +01:00
tc
tee
tee: optee: fix possible memory leak in optee_register_device()
2022-12-08 11:22:57 +01:00
thermal
thermal: intel_powerclamp: Use first online CPU as control_cpu
2022-10-26 13:23:01 +02:00
thunderbolt
thunderbolt: Use the actual buffer in tb_async_error()
2022-09-15 12:04:52 +02:00
tty
serial: atmel: fix incorrect baudrate setup
2023-01-24 07:18:01 +01:00
uio
uio: uio_dmem_genirq: Fix deadlock between irq config and handling
2023-01-18 11:41:22 +01:00
usb
Revert "Revert "xhci: Set HCD flag to defer primary roothub registration""
2023-02-06 07:52:43 +01:00
vfio
vfio: platform: Do not pass return buffer to ACPI _RST method
2023-01-18 11:41:22 +01:00
vhost
vhost: fix range used in translate_desc()
2023-01-18 11:41:57 +01:00
video
fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
2023-01-18 11:41:27 +01:00
virt
virtio
visorbus
vlynq
vme
vme: Fix error not catched in fake_init()
2023-01-18 11:41:26 +01:00
w1
w1: fix WARNING after calling w1_process()
2023-02-06 07:52:40 +01:00
watchdog
xen
xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
2023-01-18 11:40:57 +01:00
zorro
Kconfig
Makefile