]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
optee: use export_uuid() to copy client UUID
authorJens Wiklander <jens.wiklander@linaro.org>
Mon, 19 Apr 2021 16:46:30 +0000 (18:46 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 30 Jun 2021 06:27:50 +0000 (08:27 +0200)
commitdcbf647e0fc7f327fdea6201dfa90127c384dd18
tree3d220aaf990cdc83b67ca020adcb03a75a6d79e2
parent833793c038d97fa0bcbeabc3465038eaf823b6b0
optee: use export_uuid() to copy client UUID

BugLink: https://bugs.launchpad.net/bugs/1933691
[ Upstream commit 673c7aa2436bfc857b92417f3e590a297c586dde ]

Prior to this patch optee_open_session() was making assumptions about
the internal format of uuid_t by casting a memory location in a
parameter struct to uuid_t *. Fix this using export_uuid() to get a well
defined binary representation and also add an octets field in struct
optee_msg_param in order to avoid casting.

Fixes: c5b4312bea5d ("tee: optee: Add support for session login client UUID generation")
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/tee/optee/call.c
drivers/tee/optee/optee_msg.h