Xen Test Framework
Functions | Variables
main.c File Reference

CONSOLEIO_write stack overflow More...

#include <xtf.h>
+ Include dependency graph for main.c:

Go to the source code of this file.


 asm (".section \data.page_aligned\ \w\" ".align 4096;" "l1t:" ".rept 512;" ".long zero_page + "STR(PF_SYM(AD, P))", 0;" ".endr;" ".size l1t, . - l1t;" ".type l1t, @object;" "l2t:" ".rept 512;" ".long l1t + "STR(PF_SYM(AD, P))", 0;" ".endr;" ".size l2t, . - l2t;" ".type l2t, @object;" ".previous;")
void test_main (void)
 To be implemented by each test, as its entry point. More...


const char test_title [] = "CONSOLEIO_write stack overflow PoC"
 The title of the test. More...
uint8_t zero_page [PAGE_SIZE]
intpte_t l2t [512]

Detailed Description

CONSOLEIO_write stack overflow

Definition in file main.c.

Function Documentation

◆ asm()

asm ( ".section \ta.page_aligned\\".align 4096;" "l1t:" ".rept 512;" ".long zero_page+"STR(PF_SYM(AD, P))"  ,
0;" ".endr;" ".size  l1t,
. - l1t;" ".type  l1t,
@object;" "l2t:" ".rept 512;" ".long l1t+"STR(PF_SYM(AD, P))"  ,
0;" ".endr;" ".size  l2t,
. - l2t;" ".type  l2t,
@object;" ".previous;"   

◆ test_main()

void test_main ( void  )

To be implemented by each test, as its entry point.

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 47 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ test_title

const char test_title[] = "CONSOLEIO_write stack overflow PoC"

The title of the test.

Definition at line 21 of file main.c.

◆ zero_page

uint8_t zero_page[PAGE_SIZE]

Definition at line 23 of file main.c.

◆ l2t

intpte_t l2t[512]