]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tee: amdtee: synchronize access to shm list
authorRijo Thomas <Rijo-john.Thomas@amd.com>
Wed, 4 Nov 2020 06:26:10 +0000 (11:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:38:57 +0000 (13:38 +0100)
commitcb03bd50f557a46f2f68af75d5614e76ab9f2cc8
tree160fedd33b02ba3a500590281f8e2283fd9b6bcc
parent5d53c196c84c2f83a04f712b71eda8a994c98ad3
tee: amdtee: synchronize access to shm list

[ Upstream commit be353be27874f40837327d9a39e3ad2149ab66d3 ]

Synchronize access to shm or shared memory buffer list to prevent
race conditions due to concurrent updates to shared shm list by
multiple threads.

Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver")
Reviewed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tee/amdtee/amdtee_private.h
drivers/tee/amdtee/core.c