cred_guard_mutex: do not return -EINTR to user-space
commit793285fcafce4719a05e0c99fa74b188157fe7fe
authorOleg Nesterov <oleg@redhat.com>
Sun, 5 Jul 2009 19:08:26 +0000 (5 12:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Jul 2009 20:57:04 +0000 (6 13:57 -0700)
tree3395530c1d4e604beac506c703b3093bb13f23ee
parent82e3310ace59794ecf0f531eca94647b2863dfda
cred_guard_mutex: do not return -EINTR to user-space

do_execve() and ptrace_attach() return -EINTR if
mutex_lock_interruptible(->cred_guard_mutex) fails.

This is not right, change the code to return ERESTARTNOINTR.

Perhaps we should also change proc_pid_attr_write().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/compat.c
fs/exec.c
kernel/ptrace.c