android_system_core/trusty/utils
Arve Hjønnevåg f29f1a2a38 trusty-ut-ctrl: Allow stream mode
When using vsock in stream mode (or any other stream mode connection)
message boundaries are not preserved, so the original messages can get
both split and merged. The TEST_MESSAGE and TEST_TEXT messages don't
have a length field which makes it imposible to support every possible
message that can be sent over a channel that preserves message
boundaries. Since the current message header types don't contain any
printable character, we assume any of these characters in a message
payload means that two messages got merged, so we split them back up.
Additionally, if we receive a message that does not start with a valid
message header, we assume it is a continuation of the previous message.

Test: trusty-ut-ctrl -D VSOCK:2:1 com.android.libctest ^Z fg
Bug: 298705967
Change-Id: I0e470a23664268f86e4defd824c47be3479c8f25
2024-10-03 04:33:38 +00:00
..
acvp trusty: Remove explicit page-alignment of mmap and dmabuf allocations 2023-10-12 13:50:31 -07:00
coverage-controller [Trusty][Coverage] Update counter to let Trusty know coverage dump has been read 2024-05-07 15:07:35 +00:00
rpmb_dev trusty: support secure storage in system-ext 2024-09-25 06:46:54 +00:00
spiproxyd [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
trusty-ut-ctrl trusty-ut-ctrl: Allow stream mode 2024-10-03 04:33:38 +00:00