diff options
| author | Shuvam Pandey <shuvampandey1@gmail.com> | 2026-05-23 13:17:33 +0545 |
|---|---|---|
| committer | Jeff Hugo <jeff.hugo@oss.qualcomm.com> | 2026-10-13 12:54:51 -0600 |
| commit | 1c50c57717c013ca63363eecb4154049cc727767 (patch) | |
| tree | 288442861d183f14eb044769cd5a9bf17dab47dc /include/uapi | |
| parent | c274d6aaa3aa5696ae7813528bdc460a9c72186b (diff) | |
accel/qaic: Protect perf stats BO state with bo->lock
qaic_perf_stats_bo_ioctl() validates each BO by checking bo->sliced and
bo->dbc before returning its perf stats. These fields are changed by the
detach paths while holding bo->lock, but the perf stats ioctl reads them
without that lock.
A concurrent detach can clear bo->dbc and mark the BO unsliced while the
perf stats ioctl is validating the BO. Take bo->lock while checking the
BO state and copying the per-BO stats into the temporary result buffer.
Fixes: 4ddf4ddfceb4 ("accel/qaic: Ensure entry belongs to DBC in qaic_perf_stats_bo_ioctl()")
Signed-off-by: Shuvam Pandey <shuvampandey1@gmail.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/6a115824.a0bed9bd.3c0137.9edf@mx.google.com
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
