Re: [PATCH RFC 0/3] Implement Qualcomm TEE IPC and ioctl calls

2024-07-17 Thread Jens Wiklander
Hi, On Wed, Jul 10, 2024 at 1:17 AM Amirreza Zarrabi wrote: > > > > On 7/3/2024 9:36 PM, Dmitry Baryshkov wrote: > > On Tue, Jul 02, 2024 at 10:57:35PM GMT, Amirreza Zarrabi wrote: > >> Qualcomm TEE hosts Trusted Applications (TAs) and services that run in > >> the secure world. Access to these

Re: [EXT] Re: [PATCH v2 1/1] tee: new ioctl to a register tee_shm from a dmabuf file descriptor

2023-02-13 Thread Jens Wiklander
; > >> >>> the test was already updated to support secure dma heap with > >> >>> Kernel version 5.11 and higher. the userland allocation could be find > >> >>> here: > >> >>> https://eur01.safelinks.protection.outlook.co

Re: [EXT] Re: [PATCH v2 1/1] tee: new ioctl to a register tee_shm from a dmabuf file descriptor

2023-02-13 Thread Jens Wiklander
05e2a64b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63811 > >>> 0243232457377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l > >>> uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=01H96n47K6R > >>> mBKZQhRdcqX3nE5VBHOXNfGuMmmkVSvc%3D=0 > >>&

Re: [PATCH v2 0/1] tee: Add tee_shm_register_fd

2022-08-16 Thread Jens Wiklander
Hi Olivier, On Fri, Aug 12, 2022 at 4:31 PM Olivier Masse wrote: > > Add a new ioctl called TEE_IOC_SHM_REGISTER_FD to register a > shared memory from a dmabuf file descriptor. > This new ioctl will allow the Linux Kernel to register a buffer > to be used by the Secure Data Path OPTEE OS

Re: [PATCH] Properly check tee_shm buffer mmap offset

2020-11-24 Thread Jens Wiklander
Hi, On Mon, Nov 23, 2020 at 8:10 AM gaoyusong wrote: > > The memmap options in tee_shm_op_mmap were not being checked for all > sets of possible crazy values. Fix this up by properly check tee_shm > buffer offsets. > > Signed-off-by: gaoyusong > --- > drivers/tee/tee_shm.c | 10 ++ > 1

Re: [PATCH v3] tee: convert convert get_user_pages() --> pin_user_pages()

2020-08-26 Thread Jens Wiklander
On Tue, Aug 25, 2020 at 10:54 AM John Hubbard wrote: > > On 8/25/20 1:32 AM, Jens Wiklander wrote: > > On Mon, Aug 24, 2020 at 02:11:25PM -0700, John Hubbard wrote: > ... > >> OK, one more try, this time actually handling the _USER_MAPPED vs. > >> _KERNEL_MAPPED p

Re: [PATCH v3] tee: convert convert get_user_pages() --> pin_user_pages()

2020-08-26 Thread Jens Wiklander
> There is some helpful background in [2]: basically, this is a small > part of fixing a long-standing disconnect between pinning pages, and > file systems' use of those pages. > > [1] Documentation/core-api/pin_user_pages.rst > > [2] "Explicit pinning of user-space page

Re: [PATCH v2] tee: convert get_user_pages() --> pin_user_pages()

2020-05-27 Thread Jens Wiklander
uot;Explicit pinning of user-space pages": > https://lwn.net/Articles/807108/ > > Cc: Jens Wiklander > Cc: Sumit Semwal > Cc: tee-...@lists.linaro.org > Cc: linux-me...@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Cc: linaro-mm-...@lists.linaro.org >

Re: [PATCH 12/15] drm/tee_shm: Drop dma_buf_k(unmap) support

2019-11-19 Thread Jens Wiklander
On Mon, Nov 18, 2019 at 11:35:33AM +0100, Daniel Vetter wrote: > There's no in-tree users anymore. > > Signed-off-by: Daniel Vetter > Cc: Arnd Bergmann > Cc: Greg Kroah-Hartman > Cc: Jens Wiklander > Cc: tee-...@lists.linaro.org > -- > Ack for merging this

Re: [PATCH 16/34] drivers/tee: convert put_page() to put_user_page*()

2019-08-02 Thread Jens Wiklander
, as described in commit fc1d8e7cca2d > ("mm: introduce put_user_page*(), placeholder versions"). > > Cc: Jens Wiklander > Signed-off-by: John Hubbard > --- > drivers/tee/tee_shm.c | 10 ++ > 1 file changed, 2 insertions(+), 8 deletions(-) Acked-by: Jens Wik

Re: [PATCH v16 14/16] tee, arm64: untag user pointers in tee_shm_register

2019-06-07 Thread Jens Wiklander
;optee_shm_unregister()->check_mem_type() uses provided > user pointers for vma lookups (via __check_mem_type()), which can only by > done with untagged pointers. > > Untag user pointers in this function. > > Signed-off-by: Andrey Konovalov Acked-by: Jens Wiklander > --- >