mirror of
https://github.com/dynup/kpatch
synced 2025-04-18 13:05:21 +00:00
Rebased against the RHEL-7.8 GA kernel-3.10.0-1127.el7. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
20 lines
425 B
Diff
20 lines
425 B
Diff
diff -Nupr src.orig/kernel/sys.c src/kernel/sys.c
|
|
--- src.orig/kernel/sys.c 2020-03-10 10:35:55.088562784 -0400
|
|
+++ src/kernel/sys.c 2020-03-10 10:36:31.420489416 -0400
|
|
@@ -559,8 +559,15 @@ SYSCALL_DEFINE4(reboot, int, magic1, int
|
|
return ret;
|
|
}
|
|
|
|
+void kpatch_bar(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("kpatch_foo\n");
|
|
+}
|
|
+
|
|
static void deferred_cad(struct work_struct *dummy)
|
|
{
|
|
+ kpatch_bar();
|
|
kernel_restart(NULL);
|
|
}
|
|
|