mirror of
https://github.com/dynup/kpatch
synced 2024-12-18 11:24:33 +00:00
0e0cee369a
Added integration-test patches rebased against rhel-7.7 GA kernel. No conflicts, some fuzz. Signed-off-by: Artem Savkov <asavkov@redhat.com>
21 lines
404 B
Diff
21 lines
404 B
Diff
Index: kernel/kernel/sys.c
|
|
===================================================================
|
|
--- kernel.orig/kernel/sys.c
|
|
+++ kernel/kernel/sys.c
|
|
@@ -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);
|
|
}
|
|
|