linux/drivers/accel
farah kassabri 03be3489b1 accel/habanalabs: fix bug in timestamp interrupt handling
[ Upstream commit 0165994c21 ]

There is a potential race between user thread seeking to re-use
a timestamp record with new interrupt id, while this record is still
in the middle of interrupt handling and it is about to be freed.
Imagine the driver set the record in_use to 0 and only then fill the
free_node information. This might lead to unpleasant scenario where
the new registration thread detects the record as free to use, and
change the cq buff address. That will cause the free_node to get
the wrong buffer address to put refcount to.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-08-29 17:33:27 +02:00
..
habanalabs accel/habanalabs: fix bug in timestamp interrupt handling 2024-08-29 17:33:27 +02:00
ivpu kthread: add kthread_stop_put 2024-06-12 11:12:52 +02:00
qaic accel/qaic: Implement quirk for SOC_HW_VERSION 2024-01-10 17:16:47 +01:00
drm_accel.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01: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