Xen Test Framework
Functions | Variables
main.c File Reference

XSA-260 More...

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

Go to the source code of this file.

Functions

static void undo_stack (struct cpu_regs *regs)
 
void do_syscall (struct cpu_regs *regs)
 May be implemented by a guest to handle SYSCALL invocations. More...
 
static bool ex_check_UD (struct cpu_regs *regs, const struct extable_entry *ex)
 
static void user_syscall (void)
 
static void user_syscall_compat (void)
 
void test_main (void)
 To be implemented by each test, as its entry point. More...
 

Variables

const char test_title [] = "XSA-260 PoC"
 The title of the test. More...
 
static unsigned int user_ss = __USER_DS
 

Detailed Description

XSA-260

Definition in file main.c.

Function Documentation

◆ undo_stack()

static void undo_stack ( struct cpu_regs *  regs)
static

Definition at line 40 of file main.c.

+ Here is the caller graph for this function:

◆ do_syscall()

void do_syscall ( struct cpu_regs *  regs)

May be implemented by a guest to handle SYSCALL invocations.

Definition at line 49 of file main.c.

+ Here is the call graph for this function:

◆ ex_check_UD()

static bool ex_check_UD ( struct cpu_regs *  regs,
const struct extable_entry ex 
)
static

Definition at line 64 of file main.c.

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

◆ user_syscall()

static void user_syscall ( void  )
static

Definition at line 79 of file main.c.

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

◆ user_syscall_compat()

static void user_syscall_compat ( void  )
static

Definition at line 100 of file main.c.

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

◆ test_main()

void test_main ( void  )

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

+ Here is the call graph for this function:

Variable Documentation

◆ test_title

const char test_title[] = "XSA-260 PoC"

The title of the test.

Definition at line 36 of file main.c.

◆ user_ss

unsigned int user_ss = __USER_DS
static

Definition at line 38 of file main.c.