summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2012-10-16 16:07:46 (GMT)
committerCatalin Marinas <catalin.marinas@arm.com>2012-10-18 19:14:01 (GMT)
commit16dd46bb781a1d37eeb2377e8e48276e9d14d15d (patch)
treef5f0626fdf4a841ffba5f7ce79e7e8cbfee6a56a /arch/arm64/kernel
parentf71a1a42667f576ec736bb1200eba2118fee3a22 (diff)
downloadlinux-fsl-qoriq-16dd46bb781a1d37eeb2377e8e48276e9d14d15d.tar.xz
arm64: No need to set the x0-x2 registers in start_thread()
For historical reasons, ARM used to set r0-r2 in start_thread() to the first values on the user stack when starting a new user application. The same logic has been inherited in AArch64. The x0 register is overridden by the sys_execve() return value so it's always zero on success. The x1 and x2 registers are ignored by AArch64 and EABI AArch32 applications, so we can safely remove the register setting for both native and compat user space. This also fixes a potential fault with the kernel accessing user space stack directly. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions