Skip to content

Segfault running usr_study client application #19

@PedroBorges9

Description

@PedroBorges9

Hello I've managed to compile and install Open-TEE on a Ubuntu VM.
I've managed to run conn_test successfully but the same is not true for the usr_study client application.
When I run it, the terminal output returns TEE_ERROR_TARGET_DEAD and I get a segfault on syslog:

Jul 19 11:36:56 ubuntu libuser_study.so/opt/OpenTee/lib/TAs/libuser_study.so: ../../TAs/usr_study_ta/usr_study_ta.c:TA_CreateEntryPoint:349 Calling the create entry point
Jul 19 11:36:56 ubuntu libuser_study.so/opt/OpenTee/lib/TAs/libuser_study.so: ../../TAs/usr_study_ta/usr_study_ta.c:TA_OpenSessionEntryPoint:366 Calling the Open session entry point
Jul 19 11:36:56 ubuntu kernel: [33768.564430] libuser_study.s[18408]: segfault at 7fa49eefdeb7 ip 00007fa39e63f4b8 sp 00007fa39d435e58 error 4 in libc-2.23.so[7fa39e4f2000+1c0000]

Also, I've tried building a simple client and trusted application by myself. I've followed the structure of usr_study and I'm getting the same segfault. It's related to a memmove on line 236 of usr_study_ta.c:

TEE_MemMove(new_trans->message, params[1].memref.buffer, ~params[1].memref.size);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions