Browse Source

securemsm-kernel: Remove interruptable signal

1. When invoke thread have resumed from freezing to running or is
   killed, the interruption signals will always interrupt the
   smcinvoke callback calls. this will lead the QTEE and listener
   to be out of sync.
2. To fix this issue, we remove the signal interruption, this solution
   will prevent the smcinvoke from being out of sync.

Change-Id: I8f0cd7342784564ce12e617dc4076638f365aba9
Signed-off-by: wenji <[email protected]>
wenji 2 years ago
parent
commit
20f8c5a846
1 changed files with 1 additions and 1 deletions
  1. 1 1
      smcinvoke/smcinvoke.c

+ 1 - 1
smcinvoke/smcinvoke.c

@@ -1464,7 +1464,7 @@ static void process_tzcb_req(void *buf, size_t buf_len, struct file **arr_filp)
 	timeout_jiff = msecs_to_jiffies(1000);
 
 	while (cbobj_retries < CBOBJ_MAX_RETRIES) {
-		ret = wait_event_interruptible_timeout(srvr_info->rsp_wait_q,
+		ret = wait_event_timeout(srvr_info->rsp_wait_q,
 				(cb_txn->state == SMCINVOKE_REQ_PROCESSED) ||
 				(srvr_info->state == SMCINVOKE_SERVER_STATE_DEFUNCT),
 				timeout_jiff);