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
[LibOS] Emulate in/out instructions as if they generate SIGSEGV #1192
base: master
Are you sure you want to change the base?
[LibOS] Emulate in/out instructions as if they generate SIGSEGV #1192
Commits on Mar 10, 2023
-
[libos] Correctly generates SIGSEGV instead of SIGILL during GPF that…
… occurs when in/out instructions are executed. This fixes issue gramineproject#1191. This fixes the bug where in/out instructions are incorrectly generating SIGSEGV instead of SIGILL. To test this run cd libos/test/fs/ && gramine-test --sgx pytest -v -k test_211_copy_lscpu_test Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for cede66d - Browse repository at this point
Copy the full SHA cede66dView commit details -
fixup! [libos] Correctly generates SIGSEGV instead of SIGILL during G…
…PF that occurs when in/out instructions are executed. Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for 75ae75e - Browse repository at this point
Copy the full SHA 75ae75eView commit details -
fixup! [libos] Correctly generates SIGSEGV instead of SIGILL during G…
…PF that occurs when in/out instructions are executed. Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for 5fc4b44 - Browse repository at this point
Copy the full SHA 5fc4b44View commit details -
fixup! [libos] Correctly generates SIGSEGV instead of SIGILL during G…
…PF that occurs when in/out instructions are executed. Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for e9ff6b8 - Browse repository at this point
Copy the full SHA e9ff6b8View commit details -
fixup! [libos] Correctly generates SIGSEGV instead of SIGILL during G…
…PF that occurs when in/out instructions are executed. Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for 47d1bac - Browse repository at this point
Copy the full SHA 47d1bacView commit details -
[LibOS] Emulate in/out instructions as if they generate SIGSEGV
Executing I/O instructions (e.g., in/out) inside an SGX enclave generates a #UD fault. Gramine's PAL tries to handle this exception and propogates it to LibOS/app as a SIGILL signal. However, I/O instructions result in a #GP fault (which raises a SIGSEGV signal) if I/O is not permitted. Let Gramine emulate these instructions as if they end up in SIGSEGV. This helps some apps, e.g. `lscpu`. Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for 7d255a3 - Browse repository at this point
Copy the full SHA 7d255a3View commit details -
fixup! [LibOS] Emulate in/out instructions as if they generate SIGSEGV
Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for 3b8547f - Browse repository at this point
Copy the full SHA 3b8547fView commit details
Commits on Mar 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fffa97f - Browse repository at this point
Copy the full SHA fffa97fView commit details
Commits on Mar 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5add302 - Browse repository at this point
Copy the full SHA 5add302View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19c0b36 - Browse repository at this point
Copy the full SHA 19c0b36View commit details
Commits on Mar 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b5254a1 - Browse repository at this point
Copy the full SHA b5254a1View commit details
Commits on Mar 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5d4676c - Browse repository at this point
Copy the full SHA 5d4676cView commit details
Commits on Mar 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ad4aa0e - Browse repository at this point
Copy the full SHA ad4aa0eView commit details
Commits on Apr 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6c1d0bd - Browse repository at this point
Copy the full SHA 6c1d0bdView commit details
Commits on Feb 22, 2024
-
Moved the in/out detection logic in PAL linux-sgx
Signed-off-by: Nirjhar Roy <nirjhar.roy@fortanix.com>
Configuration menu - View commit details
-
Copy full SHA for c628bb4 - Browse repository at this point
Copy the full SHA c628bb4View commit details
Commits on May 14, 2024
-
fixup! Moved the in/out detection logic in PAL linux-sgx
Signed-off-by: Dmitrii Kuvaiskii <dmitrii.kuvaiskii@intel.com>
Configuration menu - View commit details
-
Copy full SHA for 183635f - Browse repository at this point
Copy the full SHA 183635fView commit details