arm-trusted-firmware/services/std_svc/spm
Paul Beesley 00e51ca312 services/spm: Fix service UUID lookup
The spm_sp_get_by_uuid() function is used to look up the secure
partition that provides a given service.

Within this function, memcmp() is used to compare the service
UUIDs but it uses the size of the rdsvc->uuid pointer instead of
the size of its content (missing dereference). This means that only
a partial comparison is performed as UUIDs are 128 bits in length and
rdsvc->uuid is a uint32_t typed pointer.

Instead, use the size of the array pointed to by the svc_uuid parameter,
which will be the full 128 bits, for the comparison.

Change-Id: I258fb0cca3bf19f97b8f2a4c133981647cd050e4
Signed-off-by: Paul Beesley <paul.beesley@arm.com>
2019-04-09 11:10:09 +01:00
..
aarch64 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
README.rst SPM: Remove remaining SMC interfaces 2018-12-11 15:04:24 +00:00
spci.c SPM: Create SPCI auxiliary function 2019-04-01 10:43:42 +01:00
spm.mk Remove support for the SMC Calling Convention 2.0 2019-01-30 16:01:49 +00:00
spm_buffers.c Remove several warnings reported with W=2 2019-04-01 10:43:42 +01:00
spm_main.c services/spm: Fix service UUID lookup 2019-04-09 11:10:09 +01:00
spm_private.h SPM: Refactor xlat context creation 2019-04-03 10:51:31 +01:00
spm_setup.c SPM: Refactor xlat context creation 2019-04-03 10:51:31 +01:00
spm_shim_private.h SPM: Move shim layer to TTBR1_EL1 2019-04-03 10:51:31 +01:00
spm_xlat.c SPM: Adjust size of virtual address space per partition 2019-04-03 10:51:31 +01:00
sprt.c SPM: Remove unnecessary register save 2019-02-14 17:37:56 +00:00

README.rst

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

This is a prototype loosely based on the SPCI Alpha and SPRT pre-alpha specifications. Any interface / platform API introduced for this is subject to change as it evolves.

</html>