]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/ivpu: Fix race condition when mapping dmabuf
authorWludzik, Jozef <jozef.wludzik@intel.com>
Tue, 14 Oct 2025 07:17:25 +0000 (09:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:28 +0000 (14:02 +0100)
commitfe14b92fb97c38ab40216165bab5fa3cd9cbd386
treeefd261400a3ee9f62c75b7b0c09d92e8c5e2a115
parent157d7d16f81714eb278927e210c4c164031ffa92
accel/ivpu: Fix race condition when mapping dmabuf

[ Upstream commit 63c7870fab67b2ab2bfe75e8b46f3c37b88c47a8 ]

Fix a race that can occur when multiple jobs submit the same dmabuf.
This could cause the sg_table to be mapped twice, leading to undefined
behavior.

Fixes: e0c0891cd63b ("accel/ivpu: Rework bind/unbind of imported buffers")
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://lore.kernel.org/r/20251014071725.3047287-1-karol.wachowski@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/ivpu/ivpu_gem.c