Commit c745cd17 authored by Sumit Garg's avatar Sumit Garg Committed by Jarkko Sakkinen
Browse files

KEYS: trusted: tee: Refactor register SHM usage

The OP-TEE driver using the old SMC based ABI permits overlapping shared
buffers, but with the new FF-A based ABI each physical page may only
be registered once.

As the key and blob buffer are allocated adjancently, there is no need
for redundant register shared memory invocation. Also, it is incompatibile
with FF-A based ABI limitation. So refactor register shared memory
implementation to use only single invocation to register both key and blob
buffers.

[jarkko: Added cc to stable.]
Cc: stable@vger.kernel.org # v5.16+
Fixes: 4615e5a3

 ("optee: add FF-A support")
Reported-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: default avatarSumit Garg <sumit.garg@linaro.org>
Tested-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 31de2873
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment