kpatch/test/integration/linux-6.2.0/special-static.patch
Joe Lawrence 0d48a4357e test/integration: add upstream 6.2.0 patches
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>
2023-03-15 15:26:37 -07:00

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;