Comments (15)
For which kernel are you compiling?
from linux-sgx-driver.
$ uname -r
4.20.3-685.native
from linux-sgx-driver.
Yes, there is a change in kernel 4.20 that causes this build error and we are going to fix it.
Stay tuned or try an older kernel.
from linux-sgx-driver.
No worries, I'm not blocked because I can unpack the installer and
$ sed -i -e 's/vm_insert_pfn/vmf_insert_pfn/g' /opt/intel/sgxdriver/package/sgx_*.c
from linux-sgx-driver.
@sergeay there's also something else with 4.20: aesm_service fails to load AEs' with 4.20. The debug output is:
[enclave_initialize sgx_enclave_common.cpp:467]
SGX_IOC_ENCLAVE_INIT failed error = 4
the same aesm_service binary starts OK with an older kernel (that unfortunately has a different .config too). Any ideas where to look?
from linux-sgx-driver.
This is unexpected...
Can you do the following for me:
$ sudo su
$ echo module isgx +p > /sys/kernel/debug/dynamic_debug/control
$ dmesg -wT | grep sgx
then run your scenario and drop the above dmesg output here.
Thanks
from linux-sgx-driver.
[Mon Jan 28 13:59:43 2019] calling init_sgx_module+0x0/0x60 [isgx] @ 266
[Mon Jan 28 13:59:43 2019] intel_sgx: Intel SGX Driver v0.11
[Mon Jan 28 13:59:43 2019] intel_sgx INT0E0C:00: EPC bank 0x70200000-0x76000000
[Mon Jan 28 13:59:43 2019] intel_sgx: second initialization call skipped
[Mon Jan 28 13:59:43 2019] probe of intel_sgx.0 returned 1 after 17 usecs
[Mon Jan 28 13:59:43 2019] initcall init_sgx_module+0x0/0x60 [isgx] returned 0 a fter 22278 usecs
[Mon Jan 28 14:00:45 2019] intel_sgx: [786:0x00000000432c5878] EINIT returned 4
[Mon Jan 28 14:01:00 2019] intel_sgx: [814:0x000000002e384b53] EINIT returned 4
[Mon Jan 28 14:01:22 2019] intel_sgx: [838:0x000000000313851d] EINIT returned 4
[Mon Jan 28 14:02:06 2019] intel_sgx: [853:0x00000000966f5758] EINIT returned 4
The last line repeats for all /opt/intel/sgxpsw/aesm/aesm_service
attempts.
from linux-sgx-driver.
Which version of psw are you using or do you build the open source package?
from linux-sgx-driver.
I'm pulling 'b2' branch from this repo, and psw (from linux-sgx) I've tried with master, 2.4, and 2.3.1.
from linux-sgx-driver.
I can see that. It is reproducible with 2.1 as well.
Possibly some system call in the kernel has changed its behavior or exposed a bug.
We will check it.
from linux-sgx-driver.
I suppose you are not blocked in the mean time and can use 4.19 or an older kernel.
from linux-sgx-driver.
@sergeay thanks for your help! I'm not blocked now that I know where the problem is (would prefer to stay with my distro's default kernel though, which is 4.20)
from linux-sgx-driver.
Does the AESM failure only happen with kernel 4.2? Can you reproduce the same issue (EINIT returned 4) with 4.19?
from linux-sgx-driver.
@ZongminGu I'm not able to check with 4.19 today. I'll get back to that question later in the week. It worked with 4.18 for sure.
from linux-sgx-driver.
The latest master helps to get aesm.service
running. The latest SDK/PSW causes SIGILL
with the SampleEnclave
but that's probably something else.
from linux-sgx-driver.
Related Issues (20)
- Enclave creation fails with out of memory. Unable to run sample code HOT 1
- cant found isgx.ko HOT 1
- New release? HOT 2
- "Failed to load enclave." error with Centos7.8 release HOT 2
- WSL2 - Which should I choose as my installation method HOT 1
- Why do we need to grab a enclave lock during do fault?
- About the driver's stability through reboots HOT 3
- Linux sgx driver 2.14 tag name HOT 1
- /dev/isgx does not get installed HOT 6
- make fails: Skipping BTF generation for ...isgx.ko due to unavailability of vmlinux HOT 4
- It's not possible to get more than one page fault on a single page on an EDMM system HOT 1
- How to add driver module in Linux Kernel 5.17? HOT 5
- win的SGX SDK无法下载 HOT 1
- Calling enclave_alloc error HOT 10
- EACCEPT returns SGX_PAGE_ATTRIBUTES_MISMATCH
- linux-sgx-driver compilation fails when the kernel version is 6.4. HOT 2
- Non FLC SGX device, Linux Kernel 5.15
- Illegal 32bit value shift during initialization
- run ./sgx_linux_x64_driver_1.36.2.bin error HOT 2
- Error in sgx_main.c - Assignment of Read-Only Member vm_flags on Branch 2.14
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 linux-sgx-driver.