Files
kernel_common_drivers/drivers/aml_tee
Shuo Liu 57c536fb68 tee: fix dead lock in timer task [1/1]
PD#SWPL-233260

Problem:
after playing secure video, the clear stream
can not be played. It hangs in tee_unprotect_mem.
If there is dead lock when handle_rpc_func_cmd_timer_destroy,
all the CA will block when call
optee_timer_missed_destroy->mutex_lock.

Solution:
when TA destroy timer, it should not call
cancel_delayed_work_sync, it may deadlock.
try to cancel it, if the work queue is running,
just set a flag(atomic operation).

Verify:
S6 + Android U + Kernel 6.12

Change-Id: Ia2773edf50ddcbd10ace67d3e62c0bf7a25119e2
Signed-off-by: Shuo Liu <shuo.liu@amlogic.com>
2025-12-07 18:13:14 -08:00
..
2025-02-27 05:59:04 -08:00