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

24 lines
552 B
Diff

diff --git a/kernel/fork.c b/kernel/fork.c
index 3311231..f6e66b7 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1461,10 +1461,18 @@ static void posix_cpu_timers_init_group(struct signal_struct *sig)
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;