Skip to contentSkip to conversation

Trustzone-based security solution for ARM Linux

Ksummit-2013-discuss Barry Song 1 participant 1 message Aug 19, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Barry Song

author
#1 lore raw

2013/8/16 Dave Martin <[email protected]>:

Quoted 34 lines · Barry Song
Quoted 26 lines

[snip]

Quoted 4 lines

Needless to say, there are multiple proprietary blobs out there which do much what you describe, though these are closed and locked down.

yes. i have listed [1][2][3] as examples.
[1]SafeG (Safety Gate): http://www.toppers.jp/en/safeg.html
[2]Green Hills Multivisor:
http://www.ghs.com/products/rtos/integrity_virtualization.html
[3]SierraVisor: http://www.openvirtualization.org/

Quoted 5 lines

As others have said, the Secure World is just another execution space, so there's no technical reason not to have some FOSS running in there, be it an RTOS, uClinux or Linux.

non-security world need to know how much time is taken away from security world whatewer OS security world uses.

Quoted 5 lines

However, the ways in which resources can be shared between the Secure World and Normal World are inflexible compared with the kind of sharing you get from a normal hypervisor. The Secure World doesn't have any true virtualisation capabilities.

Quoted 6 lines

except the stolen time issue, actually a high-level msg protocol like virtio and RPMsg will help rich information sharing between non-security and security world than a simple SMC call. these communication channels are not specific to CSR chips, can be re-used by all SoCs if they have similar scenarios. so i am thinking whether we can have some generic framework for that in ARM Linux.

Quoted 3 lines

Despite what I said about TZ not supporting true virtualisation, there are a lot similar issues. This things you mention (IPC, timekeeping, blackout avoidance etc.) don't sound like unique problems.

yes. there are similar issues with a real virtualisation. here the unique problems are callbacks and frameworks which help hook TZ into virtualization-similar architecture without enabling the whole virtualization in kernel. we can have a generic TZ implementation instead of per-soc instance.

Quoted 9 lines

I suppose this may indeed be viewed as a special, limited case of virtualisation, where physical memory is statically partitioned and not virtualised, and there is only one guest*

I guess it would be worth getting ideas from the KVM guys about what concepts can be applied here, even if the code is not directly re-usable.

agree.

Quoted 3 lines

Cheers
---Dave

-barry