ENUM SGX_RETURN_CODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the enum sgx_return_code(9) page from the Kernel API Manual πŸ’–. This is literally enum sgx_return_code β€” the return code type for ENCLS, ENCLU and ENCLV. no cap, that’s the whole name vibe.

🌸 SYNOPSIS 🌸

enum sgx_return_code {
    SGX_EPC_PAGE_CONFLICT ,
    SGX_NOT_TRACKED ,
    SGX_CHILD_PRESENT ,
    SGX_INVALID_EINITTOKEN ,
    SGX_PAGE_NOT_MODIFIABLE ,
    SGX_INSUFFICIENT_ENTROPY ,
    SGX_NO_UPDATE ,
    SGX_UNMASKED_EVENT

};

πŸŽ€ Constants πŸŽ€

vibe check: these are the constants, and every single one matters 🫢

  • SGX_EPC_PAGE_CONFLICT β€” page is being written by other ENCLS function. πŸ’…
  • SGX_NOT_TRACKED β€” previous ETRACK's shootdown sequence has not been completed yet. 😭
  • SGX_CHILD_PRESENT β€” SECS has child pages present in the EPC. πŸ¦‹
  • SGX_INVALID_EINITTOKEN β€” EINITTOKEN is invalid and enclave signer's public key does not match IA32_SGXLEPUBKEYHASH. 🚨
  • SGX_PAGE_NOT_MODIFIABLE β€” the EPC page cannot be modified because it is in the PENDING or MODIFIED state. πŸ”’
  • SGX_INSUFFICIENT_ENTROPY β€” insufficient entropy in RNG. 🎲
  • SGX_NO_UPDATE β€” EUPDATESVN could not update the CPUSVN because the current SVN was not newer than CPUSVN. This is the most common error code returned by EUPDATESVN. πŸ‘‘
  • SGX_UNMASKED_EVENT β€” an unmasked event, e.g. INTR, was received. πŸ“£

πŸ¦‹ SEE ALSO πŸ¦‹

okay, go peek at these too πŸ‘€

  • Kernel file ./arch/x86/include/asm/sgx.h
  • SGX_ENCLS_FAULT_FLAG(9)
  • enum sgx_miscselect(9)
  • enum sgx_attribute(9)
  • struct sgx_secs(9)
  • enum sgx_tcs_flags(9)
  • struct sgx_tcs(9)
  • struct sgx_pageinfo(9)
  • enum sgx_page_type(9)
  • enum sgx_secinfo_flags(9)
  • struct sgx_secinfo(9)
  • struct sgx_pcmd(9)
  • struct sgx_sigstruct_header(9)
  • struct sgx_sigstruct_body(9)
  • struct sgx_sigstruct(9)

that’s the whole manual page, bestie 🫢 it comes from ./arch/x86/include/asm, dated October 2026, and the page is enum sgx_return_code(9). periodt πŸ’…βœ¨

πŸ“¦ where this page comes from