]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/xtensa/kernel/entry.S
xtensa: fix threadptr reload on return to userspace
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 4 Jul 2015 12:27:39 +0000 (15:27 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 14 Jul 2015 22:48:43 +0000 (01:48 +0300)
commit4229fb12a03e5da5882b420b0aa4a02e77447b86
treedae650d8c8d25e62f98674fdabfabeabb508e257
parent72ce6787e37a14f6aaab1a0b024f20440c961517
xtensa: fix threadptr reload on return to userspace

Userspace return code may skip restoring THREADPTR register if there are
no registers that need to be zeroed. This leads to spurious failures in
libc NPTL tests.

Always restore THREADPTR on return to userspace.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/entry.S