mirror of
https://github.com/dynup/kpatch
synced 2024-12-24 06:02:05 +00:00
76ebcd2fa4
This commit contains centos-7 patches rebased and adjusted to work with recent rhel minors so that integration tests actually pass on those. Signed-off-by: Artem Savkov <asavkov@redhat.com>
24 lines
537 B
Diff
24 lines
537 B
Diff
Index: kernel-rhel7/kernel/fork.c
|
|
===================================================================
|
|
--- kernel-rhel7.orig/kernel/fork.c
|
|
+++ kernel-rhel7/kernel/fork.c
|
|
@@ -1146,10 +1146,18 @@ static void posix_cpu_timers_init_group(
|
|
INIT_LIST_HEAD(&sig->cpu_timers[2]);
|
|
}
|
|
|
|
+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;
|
|
|