]> git.baikalelectronics.ru Git - kernel.git/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)
commit1d0a85b3cd1fc63b6c0e6be1c4e9e3b9e21cc639
tree753dfa30fd1f04f7f7e51800cb9227b63dd2221c
parent868d5f44d4950b014c40e0b36974488c970d2950
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: 72d4fd7a34e5 ("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