Edgeless RT is an SDK and a runtime for Intel SGX. It combines top-notch Go support with simplicity, robustness and a small TCB. Developing confidential microservices has never been easier! C++17 and Rust (experimental) are also supported.
The previous approach selected the vDSO clock offsets by checking the kernel version. This turned out to not be reliable because there are kernels with old version numbers but backported vDSO structs. This caused clock_gettime to always return 0 timestamps.
This PR
removes support for vDSO clock on default kernels < 4.20 (heuristic check that will cause a fallback to ocalls)
fixes support for kernels < 4.20 that have respective backports
adds an env var to disable the feature in case of problems
The previous approach selected the vDSO clock offsets by checking the kernel version. This turned out to not be reliable because there are kernels with old version numbers but backported vDSO structs. This caused clock_gettime to always return 0 timestamps.
This PR