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

Does Asylo's toolchain support sanitizers? #70

Open
ahawad opened this issue Apr 29, 2021 · 0 comments
Open

Does Asylo's toolchain support sanitizers? #70

ahawad opened this issue Apr 29, 2021 · 0 comments

Comments

@ahawad
Copy link

ahawad commented Apr 29, 2021

Hey.

I wanted to compile the hello world example with ASAN, but it seems like asylo's toolchain does not include sanitizers. I can understand why you may not want to build trusted components with ASAN, I have successfully added fsanitize=address to the enclave_loader's copts and linkopts parameters and that seems to work for the untrusted components.

Based on my simple experiment, I wanted to ask about the possibility for running sanitizers on trusted code. Some options I can think of include:

  • Creating different binaries that test trusted code but are built using the host's toolchain
  • Maybe supporting sanitizers in simulation mode?
  • Maybe supporting sanitizers for debug enclaves?

A follow-on question that is loosely linked to the above: is there a way to specify flags specifically for targets built using the host toolchain in .bazelrc (to allow one to invoke sanitizers by something like bazel --config=asan test ....).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant