optee: use export_uuid() to copy client UUID
stable inclusion from stable-5.10.43 commit 426ba49ec50b5f1c8c10fdef095b5718b673d121 bugzilla: 109284 CVE: NA -------------------------------- [ Upstream commit 673c7aa2 ] 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: c5b4312b ("tee: optee: Add support for session login client UUID generation") Suggested-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NJens Wiklander <jens.wiklander@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录