You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
The error is caused by the code attempting to modify the vm_flags field of the vma structure directly, which is marked as read-only in recent kernel versions.
Solution
To resolve this issue, modify the sgx_main.c file to use an indirect method for modifying the vm_flags field. Here’s the corrected code snippet:
Attempt to build the driver using make on a system with kernel version 6.5.0-1021-azure.
Observe the compilation error related to the vm_flags field in sgx_main.c.
Expected Behavior
The driver should compile without errors.
Environment
Kernel Version: 6.5.0-1021-azure
GCC Version: 11.4.0
Intel SGX Driver Version: 2.14.0
Additional Context
This issue and its solution were discussed and resolved during a development process. The fix involves using a safer approach to modify the read-only vm_flags field.
xanimo, ChyiYaqing, dashuaic, GermanAizek and chichidd