aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorVisweswara Tanuku <[email protected]>2025-01-24 12:57:40 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-20 14:19:51 +0000
commitdcb0d43ba8eb9517e70b1a0e4b0ae0ab657a0e5a (patch)
treef76158ae825e8680dceb34bb866f8caf899e7f83 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentvbox: add HAS_IOPORT dependency (diff)
downloadkernel-dcb0d43ba8eb9517e70b1a0e4b0ae0ab657a0e5a.tar.gz
kernel-dcb0d43ba8eb9517e70b1a0e4b0ae0ab657a0e5a.zip
slimbus: messaging: Free transaction ID in delayed interrupt scenario
In case of interrupt delay for any reason, slim_do_transfer() returns timeout error but the transaction ID (TID) is not freed. This results into invalid memory access inside qcom_slim_ngd_rx_msgq_cb() due to invalid TID. Fix the issue by freeing the TID in slim_do_transfer() before returning timeout error to avoid invalid memory access. Call trace: __memcpy_fromio+0x20/0x190 qcom_slim_ngd_rx_msgq_cb+0x130/0x290 [slim_qcom_ngd_ctrl] vchan_complete+0x2a0/0x4a0 tasklet_action_common+0x274/0x700 tasklet_action+0x28/0x3c _stext+0x188/0x620 run_ksoftirqd+0x34/0x74 smpboot_thread_fn+0x1d8/0x464 kthread+0x178/0x238 ret_from_fork+0x10/0x20 Code: aa0003e8 91000429 f100044a 3940002b (3800150b) ---[ end trace 0fe00bec2b975c99 ]--- Kernel panic - not syncing: Oops: Fatal exception in interrupt. Fixes: afbdcc7c384b ("slimbus: Add messaging APIs to slimbus framework") Cc: stable <[email protected]> Signed-off-by: Visweswara Tanuku <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions