]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop queue-4.19/riscv-fix-a-nasty-sigreturn-bug.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Sep 2022 16:20:41 +0000 (18:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Sep 2022 16:20:41 +0000 (18:20 +0200)
queue-4.19/riscv-fix-a-nasty-sigreturn-bug.patch [deleted file]
queue-4.19/series

diff --git a/queue-4.19/riscv-fix-a-nasty-sigreturn-bug.patch b/queue-4.19/riscv-fix-a-nasty-sigreturn-bug.patch
deleted file mode 100644 (file)
index c63ab52..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-From 762df359aa5849e010ef04c3ed79d57588ce17d9 Mon Sep 17 00:00:00 2001
-From: Al Viro <viro@zeniv.linux.org.uk>
-Date: Fri, 24 Sep 2021 01:55:27 +0000
-Subject: riscv: fix a nasty sigreturn bug...
-
-From: Al Viro <viro@zeniv.linux.org.uk>
-
-commit 762df359aa5849e010ef04c3ed79d57588ce17d9 upstream.
-
-riscv has an equivalent of arm bug fixed by 653d48b22166 ("arm: fix
-really nasty sigreturn bug"); if signal gets caught by an interrupt that
-hits when we have the right value in a0 (-513), *and* another signal
-gets delivered upon sigreturn() (e.g. included into the blocked mask for
-the first signal and posted while the handler had been running), the
-syscall restart logics will see regs->cause equal to EXC_SYSCALL (we are
-in a syscall, after all) and a0 already restored to its original value
-(-513, which happens to be -ERESTARTNOINTR) and assume that we need to
-apply the usual syscall restart logics.
-
-Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-Fixes: e2c0cdfba7f6 ("RISC-V: User-facing API")
-Cc: stable@vger.kernel.org
-Link: https://lore.kernel.org/r/YxJEiSq%2FCGaL6Gm9@ZenIV/
-Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/riscv/kernel/signal.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/arch/riscv/kernel/signal.c
-+++ b/arch/riscv/kernel/signal.c
-@@ -105,6 +105,8 @@ SYSCALL_DEFINE0(rt_sigreturn)
-       if (restore_altstack(&frame->uc.uc_stack))
-               goto badframe;
-+      regs->cause = -1UL;
-+
-       return regs->a0;
- badframe:
index 93c3eac0a044dd09a99c853bed6e4788aa9d7542..00f2620dbecdc857acc8e45cc373306c4da4b940 100644 (file)
@@ -27,7 +27,6 @@ alsa-hda-tegra-set-depop-delay-for-tegra.patch
 alsa-hda-add-intel-5-series-3400-pci-did.patch
 alsa-hda-realtek-enable-4-speaker-output-dell-precision-5530-laptop.patch
 efi-libstub-check-shim-mode-using-moksbstatert.patch
-riscv-fix-a-nasty-sigreturn-bug.patch
 mm-slub-fix-to-return-errno-if-kmalloc-fails.patch
 arm64-dts-rockchip-set-rk3399-gru-pclk_edp-to-24-mhz.patch
 arm64-dts-rockchip-remove-enable-active-low-from-rk3.patch