2016-12-05 14:43:22 +00:00
|
|
|
diff -Nupr src.orig/kernel/fork.c src/kernel/fork.c
|
2017-11-27 19:14:24 +00:00
|
|
|
--- src.orig/kernel/fork.c 2017-11-17 15:58:51.541211972 -0500
|
|
|
|
+++ src/kernel/fork.c 2017-11-17 15:59:41.041211972 -0500
|
|
|
|
@@ -1374,10 +1374,18 @@ static void posix_cpu_timers_init_group(
|
|
|
|
static inline void posix_cpu_timers_init_group(struct signal_struct *sig) { }
|
|
|
|
#endif
|
2014-09-09 15:02:53 +00:00
|
|
|
|
|
|
|
+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;
|
|
|
|
|