| .. | |||
| Makefile | 5 years ago | ||
| README.md | 5 years ago | ||
| livepatch-sample.c | 5 years ago | ||
Patching kernel functions in memory on a live machine. Taken from samples/livepatch.
This livepatch kernel module creates a replacement for cmdline_proc_show() from fs/proc/cmdline.c to simply print a message out instead of the usual cmdline.
To use:
cat /proc/cmdlinemake, and load into the kernel with insmod livepatch-sample.kocat /proc/cmdlineecho 0 | sudo tee /sys/kernel/livepatch/livepatch-sample/enabledrmmod livepatch-sample.ko