]> git.itanic.dy.fi Git - linux-stable/commit
xtensa: fix signal delivery to FDPIC process
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 2 May 2023 10:20:47 +0000 (03:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:17:22 +0000 (14:17 +0100)
commitf47e1e35d0aee8a00fd762b27436d3f8deef7977
tree369e65b538510d07c38d6ee38602c0a2ecdbb65f
parent876f62d178b4a24f8b9ddc8e1cd8c1a75fd720dd
xtensa: fix signal delivery to FDPIC process

commit 9c2cc74fb31ec76b8b118c97041a6a154a3ff219 upstream.

Fetch function descriptor pointed to by the signal handler pointer from
userspace on signal delivery and function pointer pointed to by the
sa_restorer on return from the signal handler.

Cc: stable@vger.kernel.org
Fixes: e3ddb8bbe0f8 ("xtensa: add FDPIC and static PIE support for noMMU")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/signal.c