From f6fecb09e83e6a28b3c8dd8e07f0ee31d2fd8777 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:07 +0100 Subject: [PATCH] Revert "x86/syscall: Avoid memcpy() for ia32 syscall_get_arguments()" This reverts commit 23a2b0d10059bab087d37453ed262b6468a107c8. --- arch/x86/include/asm/syscall.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index e8a28380d..7cbf733d1 100755 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -85,12 +85,7 @@ static inline void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, unsigned long *args) { - args[0] = regs->bx; - args[1] = regs->cx; - args[2] = regs->dx; - args[3] = regs->si; - args[4] = regs->di; - args[5] = regs->bp; + memcpy(args, ®s->bx, 6 * sizeof(args[0])); } static inline void syscall_set_arguments(struct task_struct *task,