kpatch/test/integration/rhel-9.4/special-static.patch
Joe Lawrence 3650db4c2d test/integration/rhel-9.4: add kernel-5.14.0-427.13.1.el9_4 tests
Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
2024-04-23 14:30:15 -04:00

23 lines
548 B
Diff

diff -Nupr src.orig/kernel/fork.c src/kernel/fork.c
--- src.orig/kernel/fork.c 2024-04-18 11:19:38.381637849 -0400
+++ src/kernel/fork.c 2024-04-18 11:20:01.214585028 -0400
@@ -1711,10 +1711,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;