kpatch/test/integration/rhel-8.6/special-static.patch

23 lines
548 B
Diff
Raw Normal View History

diff -Nupr src.orig/kernel/fork.c src/kernel/fork.c
--- src.orig/kernel/fork.c 2022-04-29 16:08:21.572781130 -0400
+++ src/kernel/fork.c 2022-04-29 16:09:20.112989455 -0400
@@ -1579,10 +1579,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;