profile/common/kernel-common.git
11 years agosparc: convert to ksignal
Al Viro [Thu, 8 Nov 2012 04:48:13 +0000 (23:48 -0500)]
sparc: convert to ksignal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm: switch to struct ksignal * passing
Al Viro [Wed, 7 Nov 2012 22:53:13 +0000 (17:53 -0500)]
arm: switch to struct ksignal * passing

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoalpha: pass k_sigaction and siginfo_t using ksignal pointer
Al Viro [Wed, 7 Nov 2012 22:38:51 +0000 (17:38 -0500)]
alpha: pass k_sigaction and siginfo_t using ksignal pointer

... and use the new helpers

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoburying unused conditionals
Al Viro [Mon, 26 Nov 2012 04:12:10 +0000 (23:12 -0500)]
burying unused conditionals

__ARCH_WANT_SYS_RT_SIGACTION,
__ARCH_WANT_SYS_RT_SIGSUSPEND,
__ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND,
__ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL - not used anymore
CONFIG_GENERIC_{SIGALTSTACK,COMPAT_RT_SIG{ACTION,QUEUEINFO,PENDING,PROCMASK}} -
can be assumed always set.

11 years agomake do_sigaltstack() static
Al Viro [Tue, 20 Nov 2012 16:14:10 +0000 (11:14 -0500)]
make do_sigaltstack() static

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoMerge branches 'arch-alpha', 'arch-arm', 'arch-arm64', 'arch-avr32', 'arch-blackfin...
Al Viro [Thu, 14 Feb 2013 14:20:35 +0000 (09:20 -0500)]
Merge branches 'arch-alpha', 'arch-arm', 'arch-arm64', 'arch-avr32', 'arch-blackfin', 'arch-c6x', 'arch-cris', 'arch-frv', 'arch-h8300', 'arch-hexagon', 'arch-ia64', 'arch-m32r', 'arch-m68k', 'arch-microblaze', 'arch-mips', 'arch-mn10300', 'arch-openrisc', 'arch-parisc', 'arch-powerpc', 'arch-s390', 'arch-score', 'arch-sh', 'arch-sparc', 'arch-tile', 'arch-unicore32', 'arch-x86' and 'arch-xtensa'

11 years agoarm64: switch to generic old sigaction() (compat-only)
Al Viro [Wed, 26 Dec 2012 00:31:29 +0000 (19:31 -0500)]
arm64: switch to generic old sigaction() (compat-only)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm64: switch to generic compat rt_sigaction()
Al Viro [Tue, 25 Dec 2012 23:56:13 +0000 (18:56 -0500)]
arm64: switch to generic compat rt_sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm64: switch compat to generic old sigsuspend
Al Viro [Tue, 25 Dec 2012 21:29:11 +0000 (16:29 -0500)]
arm64: switch compat to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm64: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:50:19 +0000 (15:50 -0500)]
arm64: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm64: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 20:01:55 +0000 (15:01 -0500)]
arm64: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm64: switch to generic compat rt_sigprocmask()
Al Viro [Tue, 25 Dec 2012 18:57:16 +0000 (13:57 -0500)]
arm64: switch to generic compat rt_sigprocmask()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoarm64: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 06:56:45 +0000 (01:56 -0500)]
arm64: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch to generic old sigsuspend
Al Viro [Tue, 25 Dec 2012 21:18:10 +0000 (16:18 -0500)]
sparc: switch to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: COMPAT_SYSCALL_DEFINE does all sign-extension as well as SYSCALL_DEFINE
Al Viro [Mon, 24 Dec 2012 23:06:31 +0000 (18:06 -0500)]
sparc: COMPAT_SYSCALL_DEFINE does all sign-extension as well as SYSCALL_DEFINE

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: kill sign-extending wrappers for native syscalls
Al Viro [Mon, 24 Dec 2012 23:00:38 +0000 (18:00 -0500)]
sparc: kill sign-extending wrappers for native syscalls

SYSCALL_DEFINE-added wrapper will take care of those just fine;
no extra compat wrappers needed.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agokill sparc32_open()
Al Viro [Wed, 26 Dec 2012 01:29:43 +0000 (20:29 -0500)]
kill sparc32_open()

it's a copy of compat_sys_open()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch to use of generic old sigaction
Al Viro [Wed, 26 Dec 2012 00:18:40 +0000 (19:18 -0500)]
sparc: switch to use of generic old sigaction

note that due to historical accident we do *not* directly take
generic versions - need to check and invert the sign of signal
number first.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch sys_compat_rt_sigaction() to COMPAT_SYSCALL_DEFINE
Al Viro [Tue, 25 Dec 2012 23:45:43 +0000 (18:45 -0500)]
sparc: switch sys_compat_rt_sigaction() to COMPAT_SYSCALL_DEFINE

note that while struct compat_sigaction is the generic one, syscall
itself *isn't* - different arguments.  IOW, CONFIG_ODD_RT_SIGACTION
stays.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic sys_fork() and sys_clone()
Al Viro [Thu, 27 Dec 2012 17:11:46 +0000 (12:11 -0500)]
mips: switch to generic sys_fork() and sys_clone()

we still need the wrappers to store callee-saved registers in
pt_regs, but once that done we can jump to kernel/fork.c variants.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: take the "zero newsp means inherit the parent's one" to copy_thread()
Al Viro [Thu, 27 Dec 2012 16:52:32 +0000 (11:52 -0500)]
mips: take the "zero newsp means inherit the parent's one" to copy_thread()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: no magic arguments for sysm_pipe()
Al Viro [Mon, 24 Dec 2012 01:18:28 +0000 (20:18 -0500)]
mips: no magic arguments for sysm_pipe()

current_pt_regs() works just fine

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: don't bother with compat_sys_futex() wrappers
Al Viro [Wed, 26 Dec 2012 04:22:15 +0000 (23:22 -0500)]
mips: don't bother with compat_sys_futex() wrappers

... it's COMPAT_SYSCALL_DEFINE now

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic compat rt_sigaction()
Al Viro [Tue, 25 Dec 2012 23:55:27 +0000 (18:55 -0500)]
mips: switch to generic compat rt_sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic compat sched_rr_get_interval()
Al Viro [Tue, 25 Dec 2012 22:33:40 +0000 (17:33 -0500)]
mips: switch to generic compat sched_rr_get_interval()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: sigsuspend() is essentially the same as rt_sigsuspend() here
Al Viro [Tue, 25 Dec 2012 21:25:18 +0000 (16:25 -0500)]
mips: sigsuspend() is essentially the same as rt_sigsuspend() here

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:49:15 +0000 (15:49 -0500)]
mips: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 20:00:46 +0000 (15:00 -0500)]
mips: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic compat rt_sigprocmask()
Al Viro [Tue, 25 Dec 2012 18:55:50 +0000 (13:55 -0500)]
mips: switch to generic compat rt_sigprocmask()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoswitch mips to generic rt_sigsuspend(), make it unconditional
Al Viro [Sun, 25 Nov 2012 06:36:15 +0000 (01:36 -0500)]
switch mips to generic rt_sigsuspend(), make it unconditional

mips was the last architecture not using the generic variant.
Both native and compat variants switched to generic, which is
made unconditional now.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to compat_sys_waitid()
Al Viro [Sun, 23 Dec 2012 20:06:31 +0000 (15:06 -0500)]
mips: switch to compat_sys_waitid()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomips: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:13:40 +0000 (03:13 -0500)]
mips: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoMerge commit '12890d0f61fc' into arch-mips
Al Viro [Sun, 3 Feb 2013 23:16:33 +0000 (18:16 -0500)]
Merge commit '12890d0f61fc' into arch-mips

11 years agox86: switch to generic old sigaction
Al Viro [Wed, 26 Dec 2012 00:14:55 +0000 (19:14 -0500)]
x86: switch to generic old sigaction

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoxtensa: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:54:43 +0000 (03:54 -0500)]
xtensa: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: switch to generic compat rt_sigaction()
Al Viro [Tue, 25 Dec 2012 23:42:26 +0000 (18:42 -0500)]
x86: switch to generic compat rt_sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: switch to generic compat sched_rr_get_interval()
Al Viro [Tue, 25 Dec 2012 22:19:57 +0000 (17:19 -0500)]
x86: switch to generic compat sched_rr_get_interval()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86,um: switch to generic old sigsuspend()
Al Viro [Tue, 25 Dec 2012 21:09:20 +0000 (16:09 -0500)]
x86,um: switch to generic old sigsuspend()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:26:55 +0000 (15:26 -0500)]
x86: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 19:46:17 +0000 (14:46 -0500)]
x86: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: get rid of pt_regs argument in vm86/vm86old
Al Viro [Mon, 12 Nov 2012 19:38:28 +0000 (14:38 -0500)]
x86: get rid of pt_regs argument in vm86/vm86old

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: get rid of pt_regs argument in sigreturn variants
Al Viro [Mon, 12 Nov 2012 19:32:42 +0000 (14:32 -0500)]
x86: get rid of pt_regs argument in sigreturn variants

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agox86: get rid of pt_regs argument of iopl(2)
Al Viro [Tue, 20 Nov 2012 03:00:52 +0000 (22:00 -0500)]
x86: get rid of pt_regs argument of iopl(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agounicore32: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:52:33 +0000 (03:52 -0500)]
unicore32: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoamd64: get rid of useless RESTORE_TOP_OF_STACK in stub_execve()
Al Viro [Mon, 12 Nov 2012 19:19:03 +0000 (14:19 -0500)]
amd64: get rid of useless RESTORE_TOP_OF_STACK in stub_execve()

we are not going to return via SYSRET anyway.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agotile: switch to generic compat rt_sigaction()
Al Viro [Tue, 25 Dec 2012 23:43:46 +0000 (18:43 -0500)]
tile: switch to generic compat rt_sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agotile: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:28:39 +0000 (15:28 -0500)]
tile: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agotile: switch to generic compat rt_sig{procmask,pending}()
Al Viro [Tue, 25 Dec 2012 18:58:56 +0000 (13:58 -0500)]
tile: switch to generic compat rt_sig{procmask,pending}()

note that the only systems that are going to care are big-endian
64bit ones with 32bit compat enabled - little-endian bitmaps
are not sensitive to granularity.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agotile: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:50:34 +0000 (03:50 -0500)]
tile: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:30:13 +0000 (15:30 -0500)]
sparc: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 19:48:41 +0000 (14:48 -0500)]
sparc: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch to generic compat rt_sigprocmask(2)
Al Viro [Tue, 25 Dec 2012 18:39:26 +0000 (13:39 -0500)]
sparc: switch to generic compat rt_sigprocmask(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: bury the sys_sigpause() remains
Al Viro [Sun, 25 Nov 2012 06:53:12 +0000 (01:53 -0500)]
sparc: bury the sys_sigpause() remains

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosparc: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:41:17 +0000 (03:41 -0500)]
sparc: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosh: switch to generic old sigaction()
Al Viro [Wed, 26 Dec 2012 00:23:55 +0000 (19:23 -0500)]
sh: switch to generic old sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosh: switch to generic old sigsuspend()
Al Viro [Tue, 25 Dec 2012 21:20:46 +0000 (16:20 -0500)]
sh: switch to generic old sigsuspend()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoscore: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:43:28 +0000 (03:43 -0500)]
score: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosh: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:46:05 +0000 (03:46 -0500)]
sh: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: kill useless wrappers
Al Viro [Sun, 23 Dec 2012 20:02:12 +0000 (15:02 -0500)]
s390: kill useless wrappers

COMPAT_SYSCALL_DEFINEx already does everything we need

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic old sigaction()
Al Viro [Wed, 26 Dec 2012 00:26:12 +0000 (19:26 -0500)]
s390: switch to generic old sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic compat rt_sigaction
Al Viro [Tue, 25 Dec 2012 23:49:25 +0000 (18:49 -0500)]
s390: switch to generic compat rt_sigaction

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic compat sched_rr_get_interval()
Al Viro [Tue, 25 Dec 2012 22:26:57 +0000 (17:26 -0500)]
s390: switch to generic compat sched_rr_get_interval()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic old sigsuspend
Al Viro [Tue, 25 Dec 2012 21:21:29 +0000 (16:21 -0500)]
s390: switch to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:45:24 +0000 (15:45 -0500)]
s390: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 19:53:15 +0000 (14:53 -0500)]
s390: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic compat rt_sigprocmask(2)
Al Viro [Tue, 25 Dec 2012 18:46:20 +0000 (13:46 -0500)]
s390: switch to generic compat rt_sigprocmask(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: trim the crap from syscalls.h
Al Viro [Wed, 26 Dec 2012 19:06:24 +0000 (14:06 -0500)]
powerpc: trim the crap from syscalls.h

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agos390: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:36:41 +0000 (03:36 -0500)]
s390: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic old sigaction()
Al Viro [Wed, 26 Dec 2012 00:27:42 +0000 (19:27 -0500)]
powerpc: switch to generic old sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic compat rt_sigaction()
Al Viro [Tue, 25 Dec 2012 23:51:57 +0000 (18:51 -0500)]
powerpc: switch to generic compat rt_sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: kill pointless wrappers
Al Viro [Tue, 25 Dec 2012 22:31:11 +0000 (17:31 -0500)]
powerpc: kill pointless wrappers

SYSCALL_DEFINE and COMPAT_SYSCALL_DEFINE do all argument normalization
we need.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic old sigsuspend
Al Viro [Tue, 25 Dec 2012 21:23:09 +0000 (16:23 -0500)]
powerpc: switch to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:47:10 +0000 (15:47 -0500)]
powerpc: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 19:55:56 +0000 (14:55 -0500)]
powerpc: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic compat rt_sigprocmask()
Al Viro [Tue, 25 Dec 2012 18:49:43 +0000 (13:49 -0500)]
powerpc: switch to generic compat rt_sigprocmask()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agopowerpc: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:26:46 +0000 (03:26 -0500)]
powerpc: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoparisc: switch to generic compat rt_sigaction()
Al Viro [Tue, 25 Dec 2012 23:53:43 +0000 (18:53 -0500)]
parisc: switch to generic compat rt_sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoparisc: switch to generic compat sched_rr_get_interval()
Al Viro [Tue, 25 Dec 2012 22:33:02 +0000 (17:33 -0500)]
parisc: switch to generic compat sched_rr_get_interval()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoparisc: switch to generic compat rt_sigqueueinfo()
Al Viro [Tue, 25 Dec 2012 20:48:01 +0000 (15:48 -0500)]
parisc: switch to generic compat rt_sigqueueinfo()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoparisc: switch to generic compat rt_sigpending()
Al Viro [Tue, 25 Dec 2012 19:58:56 +0000 (14:58 -0500)]
parisc: switch to generic compat rt_sigpending()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoparisc: switch to generic compat rt_sigprocmask()
Al Viro [Tue, 25 Dec 2012 18:51:31 +0000 (13:51 -0500)]
parisc: switch to generic compat rt_sigprocmask()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoopenrisc: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:19:49 +0000 (03:19 -0500)]
openrisc: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoparisc: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:22:04 +0000 (03:22 -0500)]
parisc: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomn10300: switch to generic old sigaction()
Al Viro [Wed, 26 Dec 2012 00:28:15 +0000 (19:28 -0500)]
mn10300: switch to generic old sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomn10300: switch to generic old sigsuspend
Al Viro [Tue, 25 Dec 2012 21:24:21 +0000 (16:24 -0500)]
mn10300: switch to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomicroblaze: remove debris in ptrace.c
Al Viro [Sat, 8 Dec 2012 00:01:58 +0000 (19:01 -0500)]
microblaze: remove debris in ptrace.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomn10300: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:17:06 +0000 (03:17 -0500)]
mn10300: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomicroblaze: Move restart allowed out of block
Michal Simek [Mon, 17 Sep 2012 09:18:24 +0000 (11:18 +0200)]
microblaze: Move restart allowed out of block

Better not to break block which do work together.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomicroblaze: fix handling of multiple pending signals
Al Viro [Sun, 29 Apr 2012 08:43:50 +0000 (04:43 -0400)]
microblaze: fix handling of multiple pending signals

We need to keep building sigframes until no pending signals remain.
Wrap do_notify_resume() calls into loops; do _not_ allow syscall
restart logics to trigger after the first iteration.

Incidentally, comments about pending signals that should (somehow)
be in r18 are pure BS.  Doesn't work that way and cannot work that
way, sorry...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomicroblaze: fix the horror with restarts of sigreturn()
Al Viro [Sun, 29 Apr 2012 08:11:34 +0000 (04:11 -0400)]
microblaze: fix the horror with restarts of sigreturn()

solution a-la arm one - pick a callee-saved register (r30), set it
non-zero when entering a syscall, have sigreturn wrapper zero it out
and pass the value in it to do_notify_resume() as "in_syscall" (actually,
"restarts allowed") argument.

Note that we don't give a damn about ret_from_fork() - return value
is not restart-worthy anyway.

Possible remaining bug: on !MMU we still have _debug_exception()
restartable.  If it hits with -ERESTART_... accidentally in r3, fun happens.
MMU does _not_ have _debug_exception() restartable.  If that's decided to
be a bug (as I strongly suspect it to be), we'll just need to replace
setting r30 to 1 with setting r30 to 0 in !MMU _debug_exception().
Up to microblaze maintainers...

[folded a fix from Michal]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomicroblaze: evict the check for kernel_mode(regs) from do_notify_resume()
Al Viro [Sun, 29 Apr 2012 07:35:29 +0000 (03:35 -0400)]
microblaze: evict the check for kernel_mode(regs) from do_notify_resume()

Only one caller hasn't done it in assembler - work_pending on !MMU.
Everything else can't reach do_notify_resume() if we are returning
to kernel mode, so move that check to that sole caller and make
do_notify_resume() reachable only when returning to userland.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agomicroblaze: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:08:53 +0000 (03:08 -0500)]
microblaze: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agom68k: switch to generic old sigaction()
Al Viro [Wed, 26 Dec 2012 00:29:01 +0000 (19:29 -0500)]
m68k: switch to generic old sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agom68k: switch to generic old sigsuspend
Al Viro [Tue, 25 Dec 2012 21:26:28 +0000 (16:26 -0500)]
m68k: switch to generic old sigsuspend

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agom68k: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 08:06:03 +0000 (03:06 -0500)]
m68k: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agom32r: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 07:55:20 +0000 (02:55 -0500)]
m32r: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agohexagon: don't leave ->uc_stack uninitialized
Al Viro [Sun, 23 Dec 2012 07:46:34 +0000 (02:46 -0500)]
hexagon: don't leave ->uc_stack uninitialized

it's used on rt_sigreturn(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoia64: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 07:52:40 +0000 (02:52 -0500)]
ia64: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoh8300: switch to generic old sigaction()
Al Viro [Wed, 26 Dec 2012 00:29:41 +0000 (19:29 -0500)]
h8300: switch to generic old sigaction()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agohexagon: switch to generic sigaltstack
Al Viro [Sun, 23 Dec 2012 07:43:08 +0000 (02:43 -0500)]
hexagon: switch to generic sigaltstack

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>