Wykres commitów

12 Commity

Autor SHA1 Wiadomość Data
wenji
1bdcb08f83 securemsm-kernel: Postpone the shambridge created by smcinvoke
1. When there is a large shambridge memory which is not
   deleted in time, The shambridge in QTEE might be out of
   memory. we met this issue in the TVM TUI unit test.

  TrustedUISampleTest -vm  --gtest_filter=*Basic_TUIStartStop*

2. To avoid being out of shambridge memory, we should postpone
   the deletion of shambridge created by smcinvoke itself.

Change-Id: I2ef837339881c1dcd78a0da10fc848488c9819ca
Signed-off-by: wenji <quic_wenji@quicinc.com>
2022-07-18 11:56:34 +08:00
Nitin LNU
e2231d0fe2 securemsm-kernel: Post process shmbridge delete and object release
1.When the QTEE is busy with a high concurrency, the objects and shared
memory bridge will not be released and deleted in time, this will lead
to memory leakage issues in the QTEE.
2.To avoid the memory leakage in case of EBUSY, we add 2 exclusive worker
threads to postprocess the object release and shmbridge deletion
separately.

Change-Id: I94c656d191d5098f1c093650e4321e6b5353e45e
Signed-off-by: Nitin LNU <quic_nlakra@quicinc.com>
2022-06-23 22:32:26 -07:00
Bruce Levy
995c3731b7 smcinvoke: Fix mutex lock and unlock
Acquire lock before delete_cb_txn_locked.
This API expects the lock is aquired before calling it
release the lock afterwards.

Also rename the api with_locked to state that api
needs to be called on locked mutex.

Change-Id: I6384ff60004da90b46904823e399c62c55ea4273
2022-06-07 08:26:27 -07:00
Pavan Bobba
d577197ff2 smcinvoke : file private data validation which is sent by userspace
a validation added to check  whether retrieved struct smcinvoke_file_data
inside the function get_server_id belongs to g_smcinvoke_fops or not.

Change-Id: I50bce93ab89759b4fdcb76e41f699d8199771fbd
Signed-off-by: Pavan Bobba <quic_pav@quicinc.com>
2022-05-23 00:03:42 -07:00
Pavan Bobba
828d87565b smcinvoke: SHM create/delete handling in memory objects
simplify handling of shm bridge create and delete
Signed-off-by: Pavan Bobba <quic_pav@quicinc.com>

Change-Id: I231d982ff27725bd20efc0080c6871f079e1be2a
2022-05-17 14:19:00 +05:30
Jeevan Shriram
ce09152acc smcinvoke: Add MODULE_IMPORT_NS for smcinvoke driver
Add MODULE_IMPORT_NS for smcinvoke driver to ignore consider it as as
filesystem and not a driver.

Change-Id: I839b972f68f45f184f6a46de6779ac6adace9d38
2022-05-10 14:24:28 -07:00
Sonal Aggarwal
4f96dd41ec securemsm-kernel : Add new functionality in HLOS for TZ to sleep for certain
amount of time.

Change-Id: I6352bbe201ffcf81fde6ac7fc65e6f8eaeb0c64e
2022-05-06 23:28:07 +05:30
Nitin LNU
d1d7d597d6 smcinvoke: take lock again in free_mem_obj_locked
insted of premature unlock return with lock in free_mem_obj_locked
api.

Signed-off-by: Nitin LNU <quic_nlakra@quicinc.com>
2022-04-14 11:06:50 -07:00
Bruce Levy
5387ff0884 smcinvoke: Upgrade smcinvoke to latest
pull commits

smcinvoke: Release lock for non critical region

When entering into non critical region make sure to release the lock and
increase reference for memobj instead of holding the lock and causing
memobj not to be released when third party module using it.

smcinvoke: Add support for splitbin

Remove hard limit on the number of splitbins available.
Let the TZ decide if the reassembled binary is good for usage.
cherrypicked from I6d7b5c3154c8c362be0a6bad2da1c4687191536d

Change-Id: Ibb12bc906fb3e995928a0b51b742e8193d737ba3
2022-04-11 12:35:03 -07:00
Ashish Pratap Singh Bhadoria
5f29ef701b securemsm-kernel: Correction in LF Copyright 2022-03-09 12:35:31 +05:30
Sonal Aggarwal
c1f17b2adc securemsm-kernel : Add new functionality in HLOS for TZ to sleep for certain
amount of time.
2022-02-21 15:45:54 +05:30
Smita Ghosh
e190b86556 secuemsm-kernel : Enable DLKM's from vendor
SSG's kernel modules will be loaded through userspace
init instead of kernel.

Change-Id: Ibf88a6a56df65a933d451d39136060967595e5b7
2021-12-14 12:52:18 -08:00