linaro-swg / linux

Linux kernel source tree
Other
41 stars 79 forks source link

optee: fix registration of kernel private shared memory #83

Closed jenswi-linaro closed 3 years ago

jenswi-linaro commented 3 years ago

Until now has kernel private shared memory allocated as dynamic shared memory (not from the static shared memory pool) been returned if it was from the static shared memory pool. This causes OP-TEE to refuse the offered shared memory. Fix this by instead report the shared memory as any other dynamically allocated shared memory, that is, supply the list of physical pages which are used.

Fixes: 53a107c812de ("tee: optee: add registered buffers handling into RPC calls") Signed-off-by: Jens Wiklander jens.wiklander@linaro.org

jforissier commented 3 years ago

I don't see any patch for this upstream in linux-next, is that expected? Is this still relevant and does this PR need to be merged?

jenswi-linaro commented 3 years ago

Thanks for the reminder. We can close this. It turned out that the problem only was with single page mappings so we could make some shortcuts.