linux/drivers/accel
Pranjal Ramajor Asha Kanojiya 21ba0445e4 accel/qaic: Synchronize access to DBC request queue head & tail pointer
[ Upstream commit 52e59f7740 ]

Two threads of the same process can potential read and write parallelly to
head and tail pointers of the same DBC request queue. This could lead to a
race condition and corrupt the DBC request queue.

Fixes: ff13be8303 ("accel/qaic: Add datapath")
Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Reviewed-by: Carl Vanderlip <carl.vanderlip@oss.qualcomm.com>
[jhugo: Add fixes tag]
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251007061837.206132-1-youssef.abdulrahman@oss.qualcomm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-23 16:20:36 +02:00
..
habanalabs accel/habanalabs/gaudi2: Use kvfree() for memory allocated with kvcalloc() 2025-08-28 16:31:06 +02:00
ivpu accel/ivpu: Prevent recovery work from being queued during device removal 2025-09-09 18:58:14 +02:00
qaic accel/qaic: Synchronize access to DBC request queue head & tail pointer 2025-10-23 16:20:36 +02:00
drm_accel.c accel: Use XArray instead of IDR for minors 2024-08-26 17:06:22 +02:00
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00