nios2: page fault et.al. are *not* restartable syscalls...
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Aug 2022 15:06:04 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:17 +0000 (11:40 +0200)
commit35d5fd70e8c8d568b6dbeee62d6b6dcc612a1b92
tree4f9c82e4f023ce6ba852a3616c1cbdb23cb4aafa
parentc293e8abc09e6e1faa50d967bd8862b1cbd575e5
nios2: page fault et.al. are *not* restartable syscalls...

commit 8535c239ac674f7ead0f2652932d35c52c4123b2 upstream.

make sure that ->orig_r2 is negative for everything except
the syscalls.

Fixes: 82ed08dd1b0e ("nios2: Exception handling")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/nios2/include/asm/entry.h
arch/nios2/kernel/entry.S