mirror of
https://github.com/dynup/kpatch
synced 2025-04-08 02:01:19 +00:00
Add patches rebased on top of upstream 6.2.0. Integration tests for these can be ran as this: $ make PATCH_DIR="linux-6.2.0" KPATCH_BUILD_OPTS="--non-replace --sourcedir /path/to/src/linux-6.2.0" integration-slow Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
23 lines
548 B
Diff
23 lines
548 B
Diff
diff -Nupr src.orig/kernel/fork.c src/kernel/fork.c
|
|
--- src.orig/kernel/fork.c 2023-01-12 11:20:05.408700033 -0500
|
|
+++ src/kernel/fork.c 2023-01-12 11:21:19.186137466 -0500
|
|
@@ -1700,10 +1700,18 @@ static void posix_cpu_timers_init_group(
|
|
posix_cputimers_group_init(pct, cpu_limit);
|
|
}
|
|
|
|
+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;
|
|
|