1 /* Invokes an exec system call with the exec string pointer argument
2 positioned such that only its first byte is valid memory (bytes 1-3
3 of the pointer are invalid). Must kill process. */
5 #include <syscall-nr.h>
6 #include "tests/userprog/boundary.h"
8 #include "tests/main.h"
13 char *p = get_bad_boundary () - 5;
14 *((int *) p) = SYS_EXEC;
17 /* Invoke the system call. */
18 asm volatile ("movl %0, %%esp; int $0x30" : : "g" (p));
19 fail ("should have killed process");