]> git.ipfire.org Git - thirdparty/linux.git/commit
sync_file: Protect access to driver and timeline name
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Tue, 10 Jun 2025 16:42:23 +0000 (17:42 +0100)
committerTvrtko Ursulin <tursulin@ursulin.net>
Fri, 13 Jun 2025 07:24:12 +0000 (08:24 +0100)
commitad10976d6cf092a3ea5128d0bc5ab9318f71875f
tree4768f8de71c883fb027d5b1a47dabf0af00a6c98
parenta979a54165c224f3a469b59dcbd2e9754e7e0f41
sync_file: Protect access to driver and timeline name

Protect the access to driver and timeline name which otherwise could be
freed as dma-fence exported is signalling fences.

This prepares the code for incoming dma-fence API changes which will start
asserting these accesses are done from a RCU locked section.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20250610164226.10817-2-tvrtko.ursulin@igalia.com
drivers/dma-buf/sync_file.c