]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:57:23 +0000 (11:57 +0200)
commita3e90650695a89a4e1fe480229015e3184e029f3
tree62689334b2c04c572dd881b9238ecade98ccb486
parent8077a8dacacfba9194c7f368a2e4e3593cbfb1b4
nios2: page fault et.al. are *not* restartable syscalls...

BugLink: https://bugs.launchpad.net/bugs/1990564
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/nios2/include/asm/entry.h
arch/nios2/kernel/entry.S