]> git.ipfire.org Git - thirdparty/linux.git/commit
accel/qaic: Synchronize access to DBC request queue head & tail pointer
authorPranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Tue, 7 Oct 2025 06:18:37 +0000 (08:18 +0200)
committerJeff Hugo <jeff.hugo@oss.qualcomm.com>
Tue, 14 Oct 2025 14:56:31 +0000 (08:56 -0600)
commit52e59f7740ba23bbb664914967df9a00208ca10c
tree736cb9347f0ae7cbc51177206683931cc3a61b41
parent11f08c30a3e4157305ba692f1d44cca5fc9a8fca
accel/qaic: Synchronize access to DBC request queue head & tail pointer

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: ff13be830333 ("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
drivers/accel/qaic/qaic.h
drivers/accel/qaic/qaic_data.c
drivers/accel/qaic/qaic_drv.c