mirror of https://github.com/dynup/kpatch
23 lines
548 B
Diff
23 lines
548 B
Diff
diff -Nupr src.orig/kernel/fork.c src/kernel/fork.c
|
|
--- src.orig/kernel/fork.c 2021-04-20 11:04:27.315102095 -0400
|
|
+++ src/kernel/fork.c 2021-04-20 11:05:23.010241835 -0400
|
|
@@ -1554,10 +1554,18 @@ static void posix_cpu_timers_init_group(
|
|
posix_cputimers_group_init(pct, cpu_limit);
|
|
}
|
|
|
|
+void kpatch_foo(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("kpatch copy signal\n");
|
|
+}
|
|
+
|
|
static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
|
|
{
|
|
struct signal_struct *sig;
|
|
|
|
+ kpatch_foo();
|
|
+
|
|
if (clone_flags & CLONE_THREAD)
|
|
return 0;
|
|
|