Skip to content

libqcomtee: Restrict object-id space to 32-bits#27

Open
harshaldev27 wants to merge 1 commit into
quic:mainfrom
harshaldev27:fork
Open

libqcomtee: Restrict object-id space to 32-bits#27
harshaldev27 wants to merge 1 commit into
quic:mainfrom
harshaldev27:fork

Conversation

@harshaldev27

Copy link
Copy Markdown
Contributor

Restrict the object-id space for user-space invoked objects to 32-bits. This allows the QCOMTEE driver to infer whether the object is being invoked from the kernel-space or user-space. The kernel-space dictates a as 64-bit object-id field whose MSB is set when the object is invoked by a kernel client. By restricting the user-space to a 32-bit field, we ensure that the MSB is always unset.
This is also in-line with QTEE expectation of 32-bit object ids.

Restrict the object-id space for user-space invoked objects to 32-bits.
This allows the QCOMTEE driver to infer whether the object is being
invoked from the kernel-space or user-space. The kernel-space dictates a
as 64-bit object-id field whose MSB is set when the object is invoked
by a kernel client. By restricting the user-space to a 32-bit field, we
ensure that the MSB is always unset.
This is also in-line with QTEE expectation of 32-bit object ids.

Signed-off-by: Harshal Dev <harshal.dev@oss.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant