Debian Codegraph @

test/integration/rhel-8.3/special-static.patch.disabled

raw
1 diff -Nupr src.orig/kernel/fork.c src/kernel/fork.c
2 --- src.orig/kernel/fork.c 2020-03-17 01:12:55.500922081 -0400
3 +++ src/kernel/fork.c 2020-03-17 01:13:49.230013502 -0400
4 @@ -1523,10 +1523,18 @@ static void posix_cpu_timers_init_group(
5 static inline void posix_cpu_timers_init_group(struct signal_struct *sig) { }
6 #endif
7
8 +void kpatch_foo(void)
9 +{
10 + if (!jiffies)
11 + printk("kpatch copy signal\n");
12 +}
13 +
14 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
15 {
16 struct signal_struct *sig;
17
18 + kpatch_foo();
19 +
20 if (clone_flags & CLONE_THREAD)
21 return 0;
22