linux-stable/drivers
Christian Gmeiner 22e19c8c5f drm/v3d: Stop active perfmon if it is being destroyed
commit 21f1435b1e upstream.

If the active performance monitor (`v3d->active_perfmon`) is being
destroyed, stop it first. Currently, the active perfmon is not
stopped during destruction, leaving the `v3d->active_perfmon` pointer
stale. This can lead to undefined behavior and instability.

This patch ensures that the active perfmon is stopped before being
destroyed, aligning with the behavior introduced in commit
7d1fd3638e ("drm/v3d: Stop the active perfmon before being destroyed").

Cc: stable@vger.kernel.org # v5.15+
Fixes: 26a4dc29b7 ("drm/v3d: Expose performance counters to userspace")
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241118221948.1758130-1-christian.gmeiner@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-13 12:50:44 +01:00
..
accessibility
acpi APEI: GHES: Have GHES honor the panic= setting 2025-03-13 12:50:19 +01:00
amba
android
ata
atm
auxdisplay
base regmap-irq: Add missing kfree() 2025-03-13 12:50:41 +01:00
bcma
block
bluetooth
bus
cdrom
char
clk clk: qcom: clk-rpmh: prevent integer overflow in recalc_rate 2025-03-13 12:50:25 +01:00
clocksource
comedi
connector
counter
cpufreq cpufreq: s3c64xx: Fix compilation warning 2025-03-13 12:50:23 +01:00
cpuidle
crypto crypto: qce - unregister previously registered algos in error path 2025-03-13 12:50:31 +01:00
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware efi: Avoid cold plugged memory for placing the kernel 2025-03-13 12:50:40 +01:00
fpga
fsi
gnss
gpio gpio: stmpe: Check return value of stmpe_reg_read in stmpe_gpio_irq_sync_unlock 2025-03-13 12:50:41 +01:00
gpu drm/v3d: Stop active perfmon if it is being destroyed 2025-03-13 12:50:44 +01:00
greybus
hid HID: multitouch: Add NULL check in mt_input_configured 2025-03-13 12:50:34 +01:00
hsi
hv
hwmon
hwspinlock
hwtracing
i2c i2c: Force ELAN06FA touchpad I2C bus freq to 100KHz 2025-03-13 12:50:19 +01:00
i3c
idle
iio iio: light: as73211: fix channel handling in only-color triggered buffer 2025-03-13 12:50:30 +01:00
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds leds: lp8860: Write full EEPROM, not only half of it 2025-03-13 12:50:23 +01:00
macintosh
mailbox
mcb
md dm-crypt: track tag_offset in convert_context 2025-03-13 12:50:28 +01:00
media media: vidtv: Fix a null-ptr-deref in vidtv_mux_stop_thread 2025-03-13 12:50:36 +01:00
memory memory: tegra20-emc: Correct memory device mask 2025-03-13 12:50:34 +01:00
memstick
message
mfd mfd: lpc_ich: Add another Gemini Lake ISA bridge PCI device-id 2025-03-13 12:50:18 +01:00
misc misc: fastrpc: Fix registered buffer page address 2025-03-13 12:50:33 +01:00
mmc mmc: sdhci-msm: Correctly set the load for the regulator 2025-03-13 12:50:19 +01:00
most
mtd mtd: onenand: Fix uninitialized retlen in do_otp_read() 2025-03-13 12:50:33 +01:00
mux
net mlxsw: Add return value check for mlxsw_sp_port_get_stats_raw() 2025-03-13 12:50:41 +01:00
nfc
ntb
nubus
nvdimm
nvme nvme-pci: Add TUXEDO IBP Gen9 to Samsung sleep quirk 2025-03-13 12:50:29 +01:00
nvmem nvmem: core: improve range check for nvmem_cell_write() 2025-03-13 12:50:32 +01:00
of of: reserved-memory: Fix using wrong number of cells to get property 'alignment' 2025-03-13 12:50:26 +01:00
opp
parisc
parport
pci PCI/DPC: Quirk PIO log size for Intel Raptor Lake-P 2025-03-13 12:50:36 +01:00
pcmcia
perf
phy
pinctrl
platform platform/x86: acer-wmi: Ignore AC events 2025-03-13 12:50:20 +01:00
pnp
power
powercap
pps
ps3
ptp ptp: Ensure info->enable callback is always set 2025-03-13 12:50:33 +01:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi scsi: storvsc: Set correct data length for sending SCSI command without payload 2025-03-13 12:50:29 +01:00
sh
siox
slimbus
soc soc: qcom: smem_state: fix missing of_node_put in error path 2025-03-13 12:50:30 +01:00
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty serial: 8250: Fix fifo underflow on flush 2025-03-13 12:50:40 +01:00
uio
usb USB: serial: option: drop MeiG Smart defines 2025-03-13 12:50:39 +01:00
vdpa
vfio vfio/pci: Enable iowrite64 and ioread64 for vfio pci 2025-03-13 12:50:36 +01:00
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile