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

enclave_idx explain #1

Open
evasokolova1f opened this issue Aug 11, 2022 · 2 comments
Open

enclave_idx explain #1

evasokolova1f opened this issue Aug 11, 2022 · 2 comments

Comments

@evasokolova1f
Copy link

Hello!

Could you explain, what is enclave_idx and how I can get it? Thank you!
./dumper [enclave_pid] [enclave_idx] [flags] [dump_file]

@evasokolova1f
Copy link
Author

And one more question.
When I use apic_dump - I get such results. Does it mean CPU is vulnerable or not?

00000010: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000020: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000050: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000060: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000070: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000080: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000090: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
<trunkated>
00000fb0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000fc0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000fd0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000fe0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000ff0: ffff ffff ffff ffff ffff ffff ffff ffff  ................

@pietroborrello
Copy link
Collaborator

pietroborrello commented Aug 11, 2022

Hello! The enclave_idx is necessary since a process may have multiple enclaves, but it's usually zero.

The best way to check if you processor is vulnerable or not is to use the apic_dump kernel module. Given the ffs, I suspect you may have APIC MMIO disable. Boot your system with nox2apic in the kernel command line

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

No branches or pull requests

2 participants