linux/drivers/gpu/drm
Zhi Wang 9802f0a63b drm/nouveau: fix a use-after-free in r535_gsp_rpc_push()
The RPC container is released after being passed to r535_gsp_rpc_send().

When sending the initial fragment of a large RPC and passing the
caller's RPC container, the container will be freed prematurely. Subsequent
attempts to send remaining fragments will therefore result in a
use-after-free.

Allocate a temporary RPC container for holding the initial fragment of a
large RPC when sending. Free the caller's container when all fragments
are successfully sent.

Fixes: 176fdcbddf ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Signed-off-by: Zhi Wang <zhiw@nvidia.com>
Link: https://lore.kernel.org/r/20250527163712.3444-1-zhiw@nvidia.com
[ Rebase onto Blackwell changes. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-06-13 16:38:06 +02:00
..
adp
amd treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
arm drm/arm/malidp: Silence informational message 2025-06-12 13:11:25 +01:00
armada
aspeed
ast drm/ast: Do not include <linux/export.h> 2025-06-13 08:54:18 +02:00
atmel-hlcdc
bridge treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ci
clients
display drm/connector: only call HDMI audio helper plugged cb if non-null 2025-05-27 23:08:21 +03:00
etnaviv
exynos treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
fsl-dcu
gma500 pci-v6.16-changes 2025-06-04 11:26:17 -07:00
gud treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hisilicon pci-v6.16-changes 2025-06-04 11:26:17 -07:00
hyperv
i915 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
imagination
imx
ingenic
kmb
lib
lima
logicvc
loongson
mcde
mediatek treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
meson drm/meson: fix more rounding issues with 59.94Hz modes 2025-06-10 14:15:42 +02:00
mgag200 drm/mgag200: Do not include <linux/export.h> 2025-06-13 08:54:31 +02:00
msm treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
mxsfb
nouveau drm/nouveau: fix a use-after-free in r535_gsp_rpc_push() 2025-06-13 16:38:06 +02:00
nova gpu: drm: nova: select AUXILIARY_BUS instead of depending on it 2025-05-15 20:59:32 +02:00
omapdrm
panel drm-fixes for v6.16-rc1 2025-06-06 09:26:47 -07:00
panfrost
panthor
pl111
qxl
radeon drm fixes for 6.16-rc1 2025-06-06 08:09:56 -07:00
renesas
rockchip
scheduler drm-fixes for v6.16-rc1 2025-06-06 09:26:47 -07:00
sitronix drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS 2025-06-11 10:44:56 +02:00
solomon drm/ssd130x: fix ssd132x_clear_screen() columns 2025-06-12 14:04:56 +02:00
sprd
sti
stm
sun4i
sysfb
tegra
tests
tidss
tilcdc
tiny pci-v6.16-changes 2025-06-04 11:26:17 -07:00
ttm treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
tve200
udl
v3d drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
vboxvideo
vc4 drm/vc4: fix infinite EPROBE_DEFER loop 2025-06-10 10:47:04 +02:00
vgem treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
virtio
vkms
vmwgfx pci-v6.16-changes 2025-06-04 11:26:17 -07:00
xe drm fixes for 6.16-rc1 2025-06-06 08:09:56 -07:00
xen
xlnx
drm_atomic_helper.c
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_atomic.c
drm_auth.c
drm_blend.c
drm_bridge_helper.c
drm_bridge.c
drm_buddy.c
drm_cache.c
drm_client_event.c
drm_client_modeset.c
drm_client.c
drm_color_mgmt.c
drm_connector.c
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h
drm_crtc.c
drm_damage_helper.c
drm_debugfs_crc.c
drm_debugfs.c
drm_displayid_internal.h
drm_displayid.c
drm_draw_internal.h
drm_draw.c
drm_drv.c drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
drm_eld.c
drm_encoder.c
drm_exec.c
drm_fb_dma_helper.c
drm_fb_helper.c
drm_fbdev_dma.c
drm_fbdev_shmem.c
drm_fbdev_ttm.c
drm_file.c amd-drm-next-6.16-2025-05-09: 2025-05-12 07:14:34 +10:00
drm_flip_work.c
drm_format_helper.c
drm_format_internal.h
drm_fourcc.c
drm_framebuffer.c
drm_gem_atomic_helper.c
drm_gem_dma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c
drm_gem_ttm_helper.c
drm_gem_vram_helper.c
drm_gem.c
drm_gpusvm.c drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
drm_gpuvm.c
drm_internal.h
drm_ioc32.c
drm_ioctl.c
drm_kms_helper_common.c
drm_lease.c
drm_managed.c
drm_mipi_dbi.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c
drm_panel_backlight_quirks.c
drm_panel_orientation_quirks.c
drm_panel.c
drm_panic_qr.rs
drm_panic.c
drm_pci.c
drm_plane_helper.c
drm_plane.c
drm_prime.c
drm_print.c
drm_privacy_screen_x86.c
drm_privacy_screen.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_suballoc.c
drm_syncobj.c
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank_work.c
drm_vblank.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
drm_vma_manager.c
drm_writeback.c
Kconfig pci-v6.16-changes 2025-06-04 11:26:17 -07:00
Kconfig.debug
Makefile drm for 6.16-rc1 2025-05-28 09:46:39 -07:00