From 1c24a0fdfb2c1db5bb2993ab58a95145189b7260 Mon Sep 17 00:00:00 2001 From: Hajime Tazaki Date: Thu, 5 Dec 2024 15:48:47 +0900 Subject: [PATCH] should clean up !mmu --- arch/um/kernel/process.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index b15d24a600d883..0c9db08fe0aa60 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -142,9 +142,10 @@ static void fork_handler(void) * * This fork can only come from libc's vfork, which * does this: - * popq %%rdx; - * call *%rax; // zpoline => __kernel_vsyscall - * pushq %%rdx; + * pop %%rdx; + * mov $58,%eax + * syscall ; // hook => __kernel_vsyscall + * push %%rdx; * %rcx stores the return address which is stored * at pt_regs[HOST_IP] at the moment. As child returns * via userspace() with a jmp instruction (while parent