Comments (11)
Hey @jopasserat I think I found the reason this doesn't work. I tested this on a t3a.2xlarge
machine on AWS and it also broke for me. It works every else though. I looked into this instance and it looks like the t3a.2xlarge
uses an AMD processor. While a goal of asylo is to be agnostic to CPUs and enclaves I think right now they leverage Intel's SDKs quite a bit. Like they are just using Intel's SGX Simulator and only support Intel SGX. Assuming the simulator doesn't work on AMD CPUs. I'd recommend using t3.2xlarge
.
from tf-trusted.
Is this a requirement to have SGX even for the simulation mode?
It's intended to run locally without an SGX device. So this is definitely a bug
from tf-trusted.
Yeah. You shouldn't need a machine with sgx to be able run in simulation mode. Can you give us some more information about your environment? Linux vs macos, etc. And anything else you can think of. Those error messages aren't very helpful so any more info you can provide will help us solve the problem. Thanks!
from tf-trusted.
I'm working on a AWS VM (t3a.2xlarge) running Ubuntu 18.04 with docker 18.09
(base) ubuntu@ip-XX-XX:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
(base) ubuntu@ip-XX-XX:~$ docker --version
Docker version 18.09.6, build 481bc77
Nothing installed on the machine apart from that and working from a tf-trusted clone up to date with the current master branch.
Any steps I should run to provide you with more information?
from tf-trusted.
Thanks for this. The first thing that comes to mind is I'm not sure I've run this on Ubuntu 18.04. Maybe only 16.04. If you want to try on a fresh 16.04 that'd be great and I can try on 18.04 when I get back on Monday.
Another thing is I've usually run on GCP not AWS. Shouldn't matter but you never know.
from tf-trusted.
Same on Ubuntu 16.04, would have been crazy since all the build happens in docker.
A bit more context around the error:
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-writable-strings'
INFO: From SkylarkAction external/com_github_grpc_grpc/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:
bazel-out/k8-fastbuild/genfiles/external/com_github_grpc_grpc/external/com_github_grpc_grpc: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_protobuf/python/google/protobuf/any_pb2.py [for host]:
external/com_google_protobuf/python: warning: directory does not exist.
INFO: From SkylarkAction external/com_github_grpc_grpc/src/proto/grpc/reflection/v1alpha/reflection.pb.h:
bazel-out/k8-fastbuild/genfiles/external/com_github_grpc_grpc/external/com_github_grpc_grpc: warning: directory does not exist.
Target //tf_trusted:tf_trusted up-to-date:
bazel-bin/tf_trusted/tf_trusted
INFO: Elapsed time: 1828.954s, Critical Path: 105.60s
INFO: 1938 processes: 1938 processwrapper-sandbox.
INFO: Build completed successfully, 1971 total actions
INFO: Build completed successfully, 1971 total actions
2019-06-21 19:05:52 WARNING untrusted_sgx.cc : 62 : Failed to create an enclave, attempt=0, status=1
2019-06-21 19:05:52 ERROR enclave_manager.cc : 324 : LoadEnclave failed: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
2019-06-21 19:05:52 ERROR enclave_manager.cc : 324 : LoadEnclave failed: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
2019-06-21 19:05:52 FATAL tf_trusted_driver.cc : 54 : Load tf_trusted/tf_trusted_enclave.so failed: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
2019-06-21 19:05:52 FATAL tf_trusted_driver.cc : 54 : Load tf_trusted/tf_trusted_enclave.so failed: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
from tf-trusted.
More info: it seems that the issue comes from Asylo directly, I've tried to run their quickstart on the same machine => same error. Full stacktrace below:
ubuntu@ip-XX-XX:~/asylo-examples$ sudo docker run -it --rm \
> -v bazel-cache:/root/.cache/bazel \
> -v "${MY_PROJECT}":/opt/my-project \
> -w /opt/my-project \
> gcr.io/asylo-framework/asylo \
> bazel run --config=enc-sim //quickstart -- --message="Asylo Rocks"
Starting local Bazel server and connecting to it...
INFO: Analysed target //quickstart:quickstart (65 packages loaded, 3888 targets configured).
INFO: Found 1 target...
Target //quickstart:quickstart up-to-date:
bazel-bin/quickstart/quickstart
INFO: Elapsed time: 22.580s, Critical Path: 10.99s
INFO: 14 processes: 14 processwrapper-sandbox.
INFO: Build completed successfully, 22 total actions
INFO: Build completed successfully, 22 total actions
2019-06-21 19:20:09 WARNING untrusted_sgx.cc : 62 : Failed to create an enclave, attempt=0, status=1
2019-06-21 19:20:09 ERROR enclave_manager.cc : 324 : LoadEnclave failed: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
2019-06-21 19:20:09 ERROR enclave_manager.cc : 324 : LoadEnclave failed: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
2019-06-21 19:20:09 FATAL demo_driver.cc : 59 : LoadEnclave failed with: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
2019-06-21 19:20:09 FATAL demo_driver.cc : 59 : LoadEnclave failed with: ::asylo::error::SgxErrorSpace::Unexpected error: Failed to create an enclave
from tf-trusted.
from tf-trusted.
i hope not because i couldn't even build without this fix :)
from tf-trusted.
Reported upstream to Asylo since I can reproduce the bug with their hello world google/asylo#34
from tf-trusted.
I'm going to close this for now. Let us know if there is anything else!
from tf-trusted.
Related Issues (20)
- Testing, Linting and Continuous Integration
- Error while building Custom Op
- Error while building and Running Tf-Trusted
- Error while running model HOT 7
- Update to Asylo 0.3.4 once tf 1.13.1 is released HOT 1
- Upgrade to Asylo 0.4.0
- ModuleNotFoundError: No module named 'tf_trusted_custom_op' HOT 9
- Investigate how to do training HOT 1
- Is there any example provided for testing HOT 4
- TF prediction computation inside the enclave
- Failure to run model inside SGX enclave HOT 3
- Issue in Hardware Mode: ERROR: Unrecognized option: --incompatible_disallow_filetype=false
- Issue in Start Container (linux build) TF Trusted Custom Operation
- "tf_trusted_config_proto" or "tf_trusted_config_proto_cc" as target deps in BUILD file? HOT 1
- Use TF Trusted instead of tf-trusted
- Approach for performing Deep Learning Inference inside Trusted Enclave HOT 8
- Build error for tf-trusted custom op HOT 10
- Investigate how to implement Remote Attestation
- Audit TF Trusted to remove unneeded exits and system calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf-trusted.