mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
ring0: move docs to readme
This commit is contained in:
@@ -1,13 +1,4 @@
|
||||
/*
|
||||
This illustrates operations which are only possible in ring 0.
|
||||
https://stackoverflow.com/questions/7415515/how-to-access-the-control-registers-cr0-cr2-cr3-from-a-program-getting-segmenta/7419306#7419306
|
||||
|
||||
It only works for x86_64.
|
||||
|
||||
Then try to run this on userland and see the process be killed:
|
||||
|
||||
/ring0.out
|
||||
*/
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#ring0 */
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
Reference in New Issue
Block a user