Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

frv: restart_block.fn needs to be reset on sigreturn

Reset restart_block.fn on executing a sigreturn such that any currently
pending system call restarts will be forced to return -EINTR.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Al Viro and committed by
Linus Torvalds
20cd514d 31c4a3d3

+3
+3
arch/frv/kernel/signal.c
··· 121 121 struct user_context *user = current->thread.user; 122 122 unsigned long tbr, psr; 123 123 124 + /* Always make any pending restarted system calls return -EINTR */ 125 + current_thread_info()->restart_block.fn = do_no_restart_syscall; 126 + 124 127 tbr = user->i.tbr; 125 128 psr = user->i.psr; 126 129 if (copy_from_user(user, &sc->sc_context, sizeof(sc->sc_context)))