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

fix compilation on 6.5 and shift op #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshwyant
Copy link

reuse the patch from #151 and fix "shift exponent 32 is too large for 32-bit type 'int'" when loading the isgx module

reuse the patch from intel#151 and fix "shift exponent 32 is too large for 32-bit type 'int'" when loading the isgx module
@joshwyant
Copy link
Author

joshwyant commented Apr 27, 2024

This commit from ticapix@2f69bc4 fixes the issue #152, see #152 (comment)

@andyzyb
Copy link
Contributor

andyzyb commented Apr 28, 2024

It is better to use in-kernel driver instead of this one since kernel 5.11.

@joshwyant
Copy link
Author

joshwyant commented Apr 28, 2024

It is better to use in-kernel driver instead of this one since kernel 5.11.

@andyzyb In the install guide, revision 1.1 from earlier this week 4/22/24, it says, "The Out-of-Tree Driver is recommended for use on platforms that do not support or are not configured for Flexible Launch Control."

My machines don't have Flexible Launch Control.

According to the documentation, the in-kernel driver only supports /dev/sgx_enclave and /dev/sgx_provision, but not /dev/isgx; that's why I need the OOT driver. Also, it looks like I need it in order to use Rust Fortanix Enclave Development Platform as well.

@andyzyb
Copy link
Contributor

andyzyb commented Apr 28, 2024

Then it can only use this driver if no FLC support.

But I think Rust Fortanix EDP should also support other types of drivers as well.

@joshwyant
Copy link
Author

joshwyant commented Apr 28, 2024

Thanks! Yes, this PR will fix the driver again for us. I've tested with my setup. Before the fix it was only working for Ubuntu 16.04 and 18.04. I think this is the only driver that exists for /dev/isgx though.

@JunjunGu1
Copy link

@joshwyant I think this patch only works for the kernel which introduce vma wrapper functions.
It will fail when kernel doesn't have vma wrapper functions.

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

Successfully merging this pull request may close these issues.

None yet

4 participants