Files
linux-kernel-module-cheat/kernel_module/user/ring0.c
2018-04-13 14:27:03 +01:00

19 lines
281 B
C

/*
See ../ring0.c
This executable is expected to segfault.
*/
#include <stdio.h>
#include <stdlib.h>
#include "../ring0.h"
int main(void) {
#if defined(__x86_64__) || defined(__i386__)
Ring0Regs ring0_regs;
ring0_get_control_regs(&ring0_regs);
#endif
return EXIT_SUCCESS;
}