XSA-196
More...
#include <xtf.h>
Go to the source code of this file.
XSA-196
Definition in file main.c.
◆ custom_doublefault_handler()
void custom_doublefault_handler |
( |
void |
| ) |
|
◆ asm()
asm |
( |
".align 16;" "custom_doublefault_handler:" "mov |
$1 << 31 | " STR(X86_EXC_DF) " << 16, |
|
|
%eax;" "iretq;" |
|
|
) |
| |
◆ compat_userspace()
static unsigned long compat_userspace |
( |
void |
| ) |
|
|
static |
◆ test_main()
To be implemented by each test, as its entry point.
- Todo:
- Implement better command line infrastructure, but this will do for now.
At the time of writing, Xen doesn't correctly handle invlpg
while running in shadow mode on AMD Gen1 hardware lacking decode assistance. For this test, we simply care that Xen doesn't crash.
Definition at line 74 of file main.c.
◆ test_title
const char test_title[] = "XSA-196 PoC" |
The title of the test.
Definition at line 27 of file main.c.
◆ test_needs_fep
Boolean indicating whether the test is entirely predicated on the available of the Force Emulation Prefix.
Definition at line 29 of file main.c.
◆ idte
Initial value:= {
.cs = __KERN_CS,
}
#define _u(v)
Express an arbitrary value v as unsigned long.
void custom_doublefault_handler(void)
Definition at line 39 of file main.c.