mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
19 lines
281 B
C
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;
|
|
}
|