]> 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:03:18 +0000 (14:03 +0100)
commit522bbbfcb612b11f1c3ec4205c6300d16f878f81
tree753dfa30fd1f04f7f7e51800cb9227b63dd2221c
parent08456605089120cc828a8f3d8a46e215844f7af7
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