File: special-static.patch.disabled

package info (click to toggle)
kpatch 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,716 kB
  • sloc: ansic: 9,716; sh: 2,592; makefile: 260; asm: 35
file content (22 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -Nupr src/kernel/fork.c src/kernel/fork.c
--- src/kernel/fork.c	2020-03-11 11:23:30.438682903 +0000
+++ src/kernel/fork.c	2020-03-11 11:41:01.567796732 +0000
@@ -1524,10 +1524,18 @@ static void posix_cpu_timers_init_group(
 static inline void posix_cpu_timers_init_group(struct signal_struct *sig) { }
 #endif
 
+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;