Re: [PATCH backport 5.4 v2] optee: use driver internal tee_context for some rpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 21, 2022 at 11:48:59PM +0100, Jens Wiklander wrote:
> commit aceeafefff736057e8f93f19bbfbef26abd94604 upstream
> 
> Adds a driver private tee_context to struct optee.
> 
> The new driver internal tee_context is used when allocating driver
> private shared memory. This decouples the shared memory object from its
> original tee_context. This is needed when the life time of such a memory
> allocation outlives the client tee_context.
> 
> This fixes a problem where the tee_context allocated on behalf of a
> process outlives the process because some longer lived driver internal
> shared memory has been allocated using that tee_context.
> 
> Fixes: 217e0250cccb ("tee: use reference counting for tee_context")
> Reported-by: Lars Persson <larper@xxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx # 1e2c3ef0496e tee: export teedev_open() and teedev_close_context()
> Cc: stable@xxxxxxxxxxxxxxx
> Reviewed-by: Sumit Garg <sumit.garg@xxxxxxxxxx>
> [JW: backport to 5.4-stable + update commit message]
> Signed-off-by: Jens Wiklander <jens.wiklander@xxxxxxxxxx>
> ---
> Hi,
> 
> This is an update to the previous patch posted with the same name.

What changed in v2?



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux