]> git.itanic.dy.fi Git - linux-stable/commit
openrisc: Fix issue with argument clobbering for clone/fork
authorStafford Horne <shorne@gmail.com>
Wed, 22 Apr 2020 11:24:11 +0000 (20:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jun 2020 13:33:01 +0000 (15:33 +0200)
commit11805b60e23e74d8c8dd9d717cd9532eda006689
treeed6de71016103386e1fcade262bb216c3ceea48d
parent8b4332c2785f534b6621c8f1fc101be80668a80f
openrisc: Fix issue with argument clobbering for clone/fork

[ Upstream commit 6bd140e14d9aaa734ec37985b8b20a96c0ece948 ]

Working on the OpenRISC glibc port I found that sometimes clone was
working strange.  That the tls data argument sent in r7 was always
wrong.  Further investigation revealed that the arguments were getting
clobbered in the entry code.  This patch removes the code that writes to
the argument registers.  This was likely due to some old code hanging
around.

This patch fixes this up for clone and fork.  This fork clobber is
harmless but also useless so remove.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/openrisc/kernel/entry.S