نمودار کامیت

239 کامیت‌ها

مولف SHA1 پیام تاریخ
qctecmdr
f5557b6e65 Merge "securemsm-kernel: Add rules to build qtee modules on sun" 2023-09-20 02:06:53 -07:00
qctecmdr
bf4015d2f7 Merge "securemsm-kernel: qseecom: remove ion.h header include" 2023-09-19 14:43:12 -07:00
Anmolpreet Kaur
e22a42f5fe securemsm-kernel: Add rules to build qtee modules on sun
Add changes to support compilation and enablement for
qtee modules on sun. These changes do not enable the
compilation but add a support to enable the driver
compilation just by setting ENABLE_SECUREMSM_QTEE_DLKM to true.

1. Flag ENABLE_SECUREMSM_QTEE_DLKM ensures that we can
enable compilation and enablement of smcinvoke,tzlog and qseecom
driver irrespective of high level KERNEL_DLKM* flags.
2. BUILD.bazel and build/sun.bzl changes to enable bazel
configurations for smcinvoke and tzlog driver once they are enabled
in Android.mk.

Change-Id: I5574c4b328266c3344aac435d034e6639a05fb12
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-09-19 23:02:36 +05:30
qctecmdr
a3aa2b7dc0 Merge "qrng: fix module remove sequence" 2023-09-14 20:14:51 -07:00
qctecmdr
1a392c58fd Merge "qcedev: Fix null-ptr-deref in qcedev_cipher_req_cb" 2023-09-13 14:20:49 -07:00
qctecmdr
dea84289f9 Merge "Fix for StsHostTestCases (CVE_2016_6752) failure" 2023-09-13 09:53:07 -07:00
Om Prakash Singh
d374955003 qrng: fix module remove sequence
Module remove call is not cleaning up char dev completely.

Update remove call sequence to call class_destroy, device_destroy
and cdev_del to clean up char dev complexly.

Change-Id: I07f28c27ac0ca78cb8223118bd0be3b3a5654224
Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
2023-09-13 20:26:53 +05:30
Anmolpreet Kaur
ec134edd3b securemsm-kernel: qseecom: remove ion.h header include
ion is deprecated now. Removing header as it is no longer
needed.

Test:
Tested compilation on sun and pineapple builds.

Change-Id: Ic67d389b7161e7c1daade147a719140456156ca3
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-09-12 06:34:34 -07:00
qctecmdr
dc7a556fa0 Merge "sec-kernel: Enable LV securemsmdlkm" 2023-09-11 07:45:19 -07:00
kodanda rami reddy v
f93cb74fda Fix for StsHostTestCases (CVE_2016_6752) failure
StsHostTestCases-android.security.sts.Poc16_11#testPocCVE_2016_6752 is
failed due to assertion error due to address pattern.

Change-Id: Id1bdf0637ac9ee1bc493e87147128153faaed546
Signed-off-by: kodanda rami reddy v <quic_kreddyv@quicinc.com>
2023-09-10 19:56:10 -07:00
qctecmdr
5c778942e7 Merge "securemsm-kernel: Fix format-specifier errors" 2023-09-06 21:07:39 -07:00
Anmolpreet Kaur
2e42ca628b securemsm-kernel: Fix format-specifier errors
Moving to a new kernel version has led to
enablement of new compiler warnings. These
issues came during compilation enablement
of securemsm modules for sun.

Change-Id: Id807a642b9465dda79680c28d4a6eeef64a45eba
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-09-05 08:53:17 -07:00
jianshu
cee3f2165c sec-kernel: Enable LV securemsmdlkm
The clean command will clear the KERNEL_SRC path, then cause
securemsmdlkm compile fail.

Change-Id: I3b956f87b2d46d21399104796ac5f7d2a5521cbd
Signed-off-by: jianshu <quic_jianshu@quicinc.com>
2023-09-04 23:35:06 -07:00
Amirreza Zarrabi
73d246b23b securemsm-kernel: smcinvoke: Add missing unlock on function return
Also reset the output buffer after processing.

Change-Id: Ib8d9b3ffe4c25c3c699df561d7f37776a8fcd538
Signed-off-by: Amirreza Zarrabi <quic_azarrabi@quicinc.com>
2023-09-04 22:07:01 -07:00
qctecmdr
0876cca974 Merge "securemsm-kernel: Fixed multiple listener registration on same fd" 2023-09-04 02:45:24 -07:00
qctecmdr
2f83bab3e0 Merge "securemsm-kernel: Add framework to piggy back for call back" 2023-09-04 00:31:29 -07:00
Udit Tiwari
48d10387ac qcedev: Fix null-ptr-deref in qcedev_cipher_req_cb
adding missing NULL check for qcedev_areq in
qcedev_offload_cipher_req_cb and qcedev_cipher_req_cb.

Change-Id: Ibbb037b12b1c6264376fe1f3185bd0b392447a65
Signed-off-by: Udit Tiwari <quic_utiwari@quicinc.com>
2023-08-31 13:02:53 +05:30
qctecmdr
e43059f322 Merge "securemsm-kernel: fix smcinvoke dependency" 2023-08-30 00:51:19 -07:00
qctecmdr
ae7eb3e1c9 Merge "pineapple:Fix smcinvoke_dlkm.ko dependency error when DLKM is enabled" 2023-08-30 00:51:19 -07:00
Xhoendi Collaku
cd59be71f8 pineapple:Fix smcinvoke_dlkm.ko dependency error when DLKM is enabled
Adding conditional check in securemsm_kernel_vendor_board.mk.

Change-Id: Icf7fe1f03ff7016381f5fdbc81946d799169c5b6
Signed-off-by: Xhoendi Collaku <quic_xcollaku@quicinc.com>
2023-08-28 15:55:42 -07:00
Chris Goldsworthy
009ea1b0a5 smmu-proxy: Correctly allow a DMA-BUF to be mapped as RW
mem_buf_retrieve() is what will actually create a DMA-BUF, along with
the struct file that underpins the DMA-BUF's lifetime and user space
interface. The FD RWX permissions are set during this time, and
currently, we just supply a flags value of 0, corresponding to
read-only. Set the file permissions as O_RDWR accordingly.

Separately, dma_buf_fd(), which just exposes a DMA-BUF's struct file
to user space, ignores all other arguments other than O_CLOEXEC, so
discard the other arguments.

Change-Id: I5e81909f3b87edb28cbbb087ec1994004fd82e45
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-08-25 13:41:35 -07:00
Nitin LNU
3eda31424a securemsm-kernel: Add framework to piggy back for call back
Add framework for piggy back of mo at time of callback too.

TEST Cases:
1. Ran GP TEST cases with MO for 5 hours.
2. L0 testing done.
3. Added new test for same in tzecotest load app.

Change-Id: I4d0d0b30303264f105f976109d44ca03159b970c
Signed-off-by: Nitin LNU <quic_nlakra@quicinc.com>
2023-08-24 05:58:24 -07:00
Reut Zysman
a0b09e0715 securemsm-kernel: fix smcinvoke dependency
For hdcp and smmu, include smcinvoke_object.h
instead of smcinvoke.h.

Change-Id: Ieab17cfe70b779bd19d7596a3057e6d6c530b997
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-08-23 21:32:02 -07:00
qctecmdr
8f1ef6a771 Merge "securemsm-kernel: remove qcedev_compat support" 2023-08-22 14:17:25 -07:00
qctecmdr
6b2e851182 Merge "securemsm-kernel: smcinvoke: add forward declaration" 2023-08-19 22:36:38 -07:00
Udit Tiwari
f214d2e6b8 securemsm-kernel: remove qcedev_compat support
cleanup qcedev_compat driver support that is not
needed on latest Qualcomm Technologies, Inc. plateforms.

Change-Id: Id61e06a5a3cc1b3e9474c328f26761ffda9a55e0
Signed-off-by: Udit Tiwari <quic_utiwari@quicinc.com>
2023-08-17 21:29:26 -07:00
Anmolpreet Kaur
e2e161b34c securemsm-kernel: smcinvoke: Release map objs if invoke call fails
This change is a correction on top of commit: b1c6f1e9
which provided the fix for same issue but had a catch.
In the previous change, kref_put was being done on an
empty list. This change fixes that issue and deletes the
list after kref_put is done.

Root cause of original issue:
If invoke call fails due to some reason, map objects created
for memory objects should also be released. Failing to do so,
creates a memory leak as TZ is unaware of these objects and
no one calls release on these.

Change-Id: Ibad583f6c45fbed05539757eb50a39289d532328
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-08-17 19:46:33 -07:00
Pawan Rai
00266e4044 securemsm-kernel: Fixed multiple listener registration on same fd
Added check to prevent more than one listener registration
on a fd. This could lead to potential vulnerabilities of use
after free while unregistering the listener.

Change-Id: Ia2973853943b5619bcf2047629b9c193f6a8c5cf
Signed-off-by: Pawan Rai <quic_pawarai@quicinc.com>
2023-08-17 09:08:51 -07:00
qctecmdr
f20c65ab0e Merge "smmu-proxy: Change location of UAPI directory" 2023-08-15 14:27:42 -07:00
Reut Zysman
60fd58f999 securemsm-kernel: smcinvoke: add forward declaration
Add a forward declaration to avoid compilation errors.

Change-Id: I2b72059a6f739cc89c2da255bba736a2b4a1402a
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-08-09 23:54:33 -07:00
Sheik Anwar Shabic Y
5b4eba2697 securemsm-kernel : Add validation check for shm handle release call
1.Invalid shm handle release causing in to invalid address access.
  so added check to release the handle only if it is valid.
2.Skip the error if hdcpsrm ta loading is failing with already
  loaded error becase hdcpsrm can be loaded from wfd stack
  also when external monior is connected with sink device.

Change-Id: Ic6c48eabfc383352e8de781bebbc2e6cd7e964e0
Signed-off-by: Sheik Anwar Shabic Y <quic_sheikanw@quicinc.com>
2023-08-02 15:36:35 +05:30
qctecmdr
ae47124ef5 Merge "securemsm-kernel: Add reboot notifier for resource cleanup at reboot" 2023-08-01 13:04:00 -07:00
qctecmdr
a81e34e070 Merge "securemsm-kernel: smcinvoke: Fix mapping requests log" 2023-08-01 10:48:01 -07:00
qctecmdr
a7f959ccdb Merge "qcedev: Remove excessive logging on failure" 2023-07-31 14:27:33 -07:00
Chris Goldsworthy
6c1aa1e334 smmu-proxy: Change location of UAPI directory
Change the location of our UAPI directory in order to satisfy
directory structure requirements.

Change-Id: I620f441833fc1cbe5cd871028f2babba47af5ef4
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-07-31 12:53:37 -07:00
qctecmdr
4ab10179bf Merge "qcom: tz_log: Avoid creating proc node in case of init failures" 2023-07-31 12:12:40 -07:00
qctecmdr
b24614812d Merge "securemsm-kernel:Initialize Camera driver structure and fix compilation error" 2023-07-31 09:56:41 -07:00
Indranil Pradhan
b682fbfef0 securemsm-kernel: Add reboot notifier for resource cleanup at reboot
Added reboot notifier function to do resource clean up during reboot
as mutliple issues during reboot were noticed where release call was
not invoked by OS for qseecom driver. This lead listener req to wait for
for response which hold reboot for infinite time.
Test Cases:
1. Ran HDCP_denit at reboot to check reboot stuck.
2. Mutliple Reboots.

Change-Id: I7917cf9a89feca731e479538e7f4fa0671a29edd
Signed-off-by: Indranil Pradhan <quic_ipradhan@quicinc.com>
2023-07-30 23:41:32 -07:00
Kuldeep Singh
6455a9d5ca qcom: tz_log: Avoid creating proc node in case of init failures
As per the current flow, tme_log dir is created by default for all type
of targets.
Below are the cases where tme_log should not be created:
    - For non TME targets.
    - Target support TME, but tmecrashdump-address-offset value is not
      specified in DT.
    - If DT value is provided, but faced an error in ioremapping passed
      address value.

Alongwith tme_log, fix hyp/rm log node creation behavior as well by
extending this interface.

Change-Id: Ie26701d551aa48ff896642e04db2392860035e1e
Signed-off-by: Kuldeep Singh <quic_kuldsing@quicinc.com>
2023-07-28 02:57:04 -07:00
Ravi Kumar Bokka
d927db8e99 securemsm-kernel:Initialize Camera driver structure and fix compilation error
CameraDriver structure initialized explicitly to get version info
and remove INT32_C undefined macro definition to avoid compilation error.

Change-Id: If79a83383634fb379d860746ea3611e46295cd64
Signed-off-by: Ravi Kumar Bokka <quic_c_rbokka@quicinc.com>
2023-07-28 10:20:19 +05:30
Daniel Perez-Zoghbi
58d9594d22 qcedev: Remove excessive logging on failure
Previously on sps_transfer failure, a fail message and descriptor
information would be logged. Changed to only log a fail message.
Descriptor can still be logged with QCE_DEBUG defined.

Change-Id: I3dfc2d0f58ea99302a62bf3aeeaa3d3e9f587b16
Signed-off-by: Daniel Perez-Zoghbi <quic_dperezzo@quicinc.com>
2023-07-27 14:16:31 -07:00
venkata sateesh
245961c243 securemsm-kernel: Add support for commonlib loaded from host
Add support for qcom,commonlib-loaded-by-hostvm
to use commonlib loaded by host VM.

Change-Id: I3a9f08bb53dde7545f518247ae885411ae8eef64
Signed-off-by: venkata sateesh <quic_vencher@quicinc.com>
Signed-off-by: Nishant Raj <quic_nishraj@quicinc.com>
2023-07-27 10:39:40 -07:00
Reut Zysman
41db658cfd securemsm-kernel: smcinvoke: Fix mapping requests log
Print the error log indicating that a mapping request
was received only in case the memory object async
support was enabled.

Change-Id: I1e02e4cb8501d539fdd6767152697a41033aa1d6
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-07-26 22:02:32 -07:00
Smita Ghosh
6a927095d1 securemsm-kernel: Use a new QMAA flag for QTEE drivers
Guard enablement of QTEE drivers using a new QMAA flag
so that these driver can be enabled independently.

Change-Id: I8d78499a9ff66519afceb4e36f32737ed30584ed
Signed-off-by: Smita Ghosh <quic_smitag@quicinc.com>
2023-07-19 15:01:45 -07:00
Rajat Singh Deepak
e0ce498b3b securemsm-kernel:Expose header to configure FD port to camera kernel
Added a new API dynamicConfigureFDPort to allow secure/non-secure
FD port configuration from camera kernel.

Change-Id: I928d260249ef7bb10c43c125b5bc1c48379d89d4
Signed-off-by: Rajat Singh Deepak <quic_rajatsin@quicinc.com>
2023-07-17 14:26:01 +05:30
qctecmdr
9b5284a7ec Merge "tz_log: Add tme logs support via tmecom interface" 2023-07-15 14:40:50 -07:00
qctecmdr
89fdde54a1 Merge " securemsm-kernel:smcinvoke: Alt RoT signed TA fails to load." 2023-07-15 12:34:37 -07:00
qctecmdr
72cde93ea0 Merge "securemsm-kernel: Add DDK framework for strait" 2023-07-15 12:34:37 -07:00
qctecmdr
123efdf8f8 Merge "qseecom: changed entry type from unit32_t to int32_t" 2023-07-15 12:34:37 -07:00
qctecmdr
be0b2c330f Merge "compat_qcedev: remove kconfig reference in uapi header" 2023-07-14 04:26:26 -07:00