mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
qseecom: Remove virtual address print
Printing virtual address can leak kernel addresses.So remove vaddr print to not leak kernel pointers to unprivileged users. Change-Id: I1823573a35fb16195a20a8362a4648dc12694271 Signed-off-by: Kuldeep Singh <quic_kuldsing@quicinc.com>
This commit is contained in:
parent
eeafe4140a
commit
4e22be36ab
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
* QTI Secure Execution Environment Communicator (QSEECOM) driver
|
||||
*
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "QSEECOM: %s: " fmt, __func__
|
||||
|
|
@ -2066,8 +2066,8 @@ static int qseecom_set_client_mem_param(struct qseecom_dev_handle *data,
|
|||
|
||||
if ((req.ifd_data_fd <= 0) || (req.virt_sb_base == NULL) ||
|
||||
(req.sb_len == 0)) {
|
||||
pr_err("Invalid input(s)ion_fd(%d), sb_len(%d), vaddr(0x%pK)\n",
|
||||
req.ifd_data_fd, req.sb_len, req.virt_sb_base);
|
||||
pr_err("Invalid input(s)ion_fd(%d), sb_len(%d), paddr: 0x%llx\n",
|
||||
req.ifd_data_fd, req.sb_len, virt_to_phys(req.virt_sb_base));
|
||||
return -EFAULT;
|
||||
}
|
||||
if (!access_ok((void __user *)req.virt_sb_base,
|
||||
|
|
|
|||
Loading…
Reference in a new issue