XSA-186
More...
#include <xtf.h>
Go to the source code of this file.
|
void | test_int_handler (void) |
|
| asm (".align 16;" "test_int_handler:" "movl $0xc0de, %eax;") |
|
| asm (".align 16;" "insn_stub_start:;" _ASM_XEN_FEP ".Lstub_fault:;" ".byte 0x67; int $" STR(X86_VEC_AVAIL) ";" ".Lstub_fixup: ret;" "insn_stub_end:;") |
|
static bool | ex_fault (struct cpu_regs *regs, const struct extable_entry *ex) |
|
void | test_main (void) |
| To be implemented by each test, as its entry point. More...
|
|
XSA-186
Definition in file main.c.
◆ test_int_handler()
void test_int_handler |
( |
void |
| ) |
|
◆ asm() [1/2]
asm |
( |
".align 16;" "test_int_handler:" "movl |
$0xc0de, |
|
|
%eax;" |
|
|
) |
| |
◆ asm() [2/2]
asm |
( |
".align 16;" "insn_stub_start:;" _ASM_XEN_FEP ".Lstub_fault:;" ".byte 0x67; int $" STR(X86_VEC_AVAIL) ";" ".Lstub_fixup: ret;" "insn_stub_end:;" |
| ) |
|
◆ ex_fault()
◆ 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 78 of file main.c.
◆ test_title
const char test_title[] = "XSA-186 PoC" |
The title of the test.
Definition at line 35 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 37 of file main.c.
◆ idte
Initial value:= {
.cs = __KERN_CS,
}
#define _u(v)
Express an arbitrary value v as unsigned long.
void test_int_handler(void)
Definition at line 47 of file main.c.