VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: YiFei Zhu <zhuyifei1999@gmail.com> 2021-04-20 00:56:10 -0500 committer: Richard Weinberger <richard@nod.at> 2021-06-17 22:08:31 +0200 commit: 558f9b2f94dbd2d5c5c8292aa13e081cc11ea7d9 parent: 80f849bf541ef9b633a9c08ac208f9c9afd14eb9
Commit Summary:
um: Fix stack pointer alignment
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c
index fba674fac8b7..87d3129e7362 100644
--- a/arch/um/os-Linux/skas/process.c
+++ b/arch/um/os-Linux/skas/process.c
@@ -327,7 +327,7 @@ int start_userspace(unsigned long stub_stack)
 	}
 
 	/* set stack pointer to the end of the stack page, so it can grow downwards */
-	sp = (unsigned long) stack + UM_KERN_PAGE_SIZE - sizeof(void *);
+	sp = (unsigned long)stack + UM_KERN_PAGE_SIZE;
 
 	flags = CLONE_FILES | SIGCHLD;