Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PAL] Fix attestation LibOS regression test for UBSan #2004

Merged
merged 1 commit into from
Sep 26, 2024

Commits on Sep 26, 2024

  1. [PAL] Fix attestation LibOS regression test for UBSan

    UBSan detects an uninitialized boolean variable on a DCAP SGX machine on
    the remote attestation example, failing with the message:
    
        error: ubsan: load of invalid value for bool or enum: 100
        error: ubsan: ../pal/src/host/linux-sgx/pal_misc.c:724:43
    
    This happens because `bool linkable` variable is assigned only in the
    EPID attestation scheme, but left unassigned in the DCAP scheme. This
    commit fixes this (though it's not a bug since DCAP never uses
    `linkable` anyway). Hence, UBSan doesn't complain anymore.
    
    Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
    Dmitrii Kuvaiskii authored and mkow committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    8404397 View commit details
    Browse the repository at this point in the history