Al Viro
c9716252be
sparc: bury the sys_sigpause() remains
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:17 -05:00
Al Viro
99b06feb0f
sparc: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:17 -05:00
Al Viro
0679a858c5
sh: switch to generic old sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:16 -05:00
Al Viro
881e252d6b
sh: switch to generic old sigsuspend()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:16 -05:00
Al Viro
b774cc5cb6
score: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:15 -05:00
Al Viro
7a879a94d9
sh: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:15 -05:00
Al Viro
1cb44eb837
s390: kill useless wrappers
...
COMPAT_SYSCALL_DEFINEx already does everything we need
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:14 -05:00
Al Viro
7eddd99c28
s390: switch to generic old sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:14 -05:00
Al Viro
f036b94344
s390: switch to generic compat rt_sigaction
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:13 -05:00
Al Viro
d7b5427cec
s390: switch to generic compat sched_rr_get_interval()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:13 -05:00
Al Viro
e181ee4cd7
s390: switch to generic old sigsuspend
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:13 -05:00
Al Viro
07562be77d
s390: switch to generic compat rt_sigqueueinfo()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:12 -05:00
Al Viro
bdcf03183c
s390: switch to generic compat rt_sigpending()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:12 -05:00
Al Viro
7426022431
s390: switch to generic compat rt_sigprocmask(2)
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:12 -05:00
Al Viro
b1ff98cb74
powerpc: trim the crap from syscalls.h
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:11 -05:00
Al Viro
e214125aa8
s390: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:11 -05:00
Al Viro
09a4d5d015
powerpc: switch to generic old sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:10 -05:00
Al Viro
5aa1cde2ed
powerpc: switch to generic compat rt_sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:10 -05:00
Al Viro
a31dd96ff7
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>
2013-02-03 18:16:09 -05:00
Al Viro
0980caea80
powerpc: switch to generic old sigsuspend
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:09 -05:00
Al Viro
309e44b39e
powerpc: switch to generic compat rt_sigqueueinfo()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:09 -05:00
Al Viro
cfe0467c4e
powerpc: switch to generic compat rt_sigpending()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:08 -05:00
Al Viro
451a651d33
powerpc: switch to generic compat rt_sigprocmask()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:08 -05:00
Al Viro
7cce246557
powerpc: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:08 -05:00
Al Viro
b0f95824f2
parisc: switch to generic compat rt_sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:07 -05:00
Al Viro
d914b8dcbb
parisc: switch to generic compat sched_rr_get_interval()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:07 -05:00
Al Viro
441ff95907
parisc: switch to generic compat rt_sigqueueinfo()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:06 -05:00
Al Viro
cddc2da135
parisc: switch to generic compat rt_sigpending()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:06 -05:00
Al Viro
e6a7ad517a
parisc: switch to generic compat rt_sigprocmask()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:06 -05:00
Al Viro
faec5a96a0
openrisc: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:05 -05:00
Al Viro
6e26aab98c
parisc: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:05 -05:00
Al Viro
33f9f78eec
mn10300: switch to generic old sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:04 -05:00
Al Viro
7d1d990ff1
mn10300: switch to generic old sigsuspend
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:04 -05:00
Al Viro
de2bfce30e
microblaze: remove debris in ptrace.c
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:03 -05:00
Al Viro
b30c7d50af
mn10300: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:03 -05:00
Michal Simek
4de6ba68c9
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>
2013-02-03 18:16:02 -05:00
Al Viro
e9f9252667
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>
2013-02-03 18:16:02 -05:00
Al Viro
14203e19cb
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>
2013-02-03 18:16:02 -05:00
Al Viro
c886a9fc1f
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>
2013-02-03 18:16:01 -05:00
Al Viro
4a9d32d377
microblaze: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:01 -05:00
Al Viro
8be433ab55
m68k: switch to generic old sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:00 -05:00
Al Viro
1ba3e7efb6
m68k: switch to generic old sigsuspend
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:00 -05:00
Al Viro
08d4f65352
m68k: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:00 -05:00
Al Viro
1084f751d4
m32r: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:59 -05:00
Al Viro
da36f98a52
hexagon: don't leave ->uc_stack uninitialized
...
it's used on rt_sigreturn(2)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:58 -05:00
Al Viro
e8d9ef09df
ia64: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:58 -05:00
Al Viro
b0375744f1
h8300: switch to generic old sigaction()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:57 -05:00
Al Viro
1e974c2166
hexagon: switch to generic sigaltstack
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:57 -05:00
Al Viro
b407e620ec
h8300: switch to generic old sigsuspend
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:56 -05:00
Al Viro
ac416143b0
h8300: kill useless wrappers, fix rt_sigreturn(2)
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:15:56 -05:00