Al Viro
71613c3b87
get rid of pt_regs argument of ->load_binary()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:38 -05:00
Al Viro
3c456bfc4b
get rid of pt_regs argument of search_binary_handler()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:38 -05:00
Al Viro
835ab32dff
get rid of pt_regs argument of do_execve_common()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:37 -05:00
Al Viro
da3d4c5fa5
get rid of pt_regs argument of do_execve()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:37 -05:00
Al Viro
d03d26e58f
make compat_do_execve() static, lose pt_regs argument
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:37 -05:00
Al Viro
910cdc553a
kill stray kernel_thread() garbage
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:36 -05:00
Al Viro
c62d773a37
audit: no nested contexts anymore...
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:36 -05:00
Al Viro
6b94631f9e
consolidate sys_execve() prototype
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:53:35 -05:00
Al Viro
f4091322d7
Merge branches 'no-rebases', 'arch-avr32', 'arch-blackfin', 'arch-cris', 'arch-h8300', 'arch-m32r', 'arch-mn10300', 'arch-score', 'arch-sh' and 'arch-powerpc' into for-next
2012-11-28 21:52:07 -05:00
Al Viro
d2125043ae
generic sys_fork / sys_vfork / sys_clone
...
... and get rid of idiotic struct pt_regs * in asm-generic/syscalls.h
prototypes of the same, while we are at it. Eventually we want those
in linux/syscalls.h, of course, but that'll have to wait a bit.
Note that there are *three* variants of sys_clone() order of arguments.
Braindamage galore...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:04 -05:00
Al Viro
25906730ec
alpha: reorganize copy_process(), prepare to saner fork_idle()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:04 -05:00
Al Viro
b960f30344
alpha: don't pass useless arguments to do_{,rt_},sigreturn()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:04 -05:00
Al Viro
e0e431aa45
alpha: simplify fork and friends
...
* no need to restore everything from switch_stack when we only need $26
* no need to pass current_pt_regs() manually, we can just as easily
calculate it in alpha_clone/alpha_vfork ($8 + constant)
* interpretation of zero usp as "use the parent's" is simpler in copy_thread();
let fork and vfork just pass 0.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:03 -05:00
Al Viro
2b067fc9dd
um: don't bother looking at regs in copy_thread() - current_pt_regs() is what we'll get
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:03 -05:00
Al Viro
8cddebd767
um: don't bother with passing sp to do_fork() for fork(2)/vfork(2)
...
copy_thread() on um will do the right thing when getting 0 for sp...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:03 -05:00
Al Viro
c4144670fd
kill daemonize()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:49:02 -05:00
Al Viro
02232f8d2b
microblaze: rt_sigreturn is too trigger-happy about sigaltstack errors
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:46:12 -05:00
Al Viro
afd3f96dc3
score: do_sigaltstack() expects a userland pointer...
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:46:12 -05:00
Al Viro
9dc87c7b5b
sh64: fix altstack switching on sigreturn
...
incidentally, declaring a local variable as __user (!) to make
sparse STFU is really sick. Especially since sparse had been
100% right - it *is* a bug.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:46:11 -05:00
Al Viro
d26654e5f9
openrisk: fix altstack switching on sigreturn
...
do_sigaltstack() expects _userland_ address, TYVM...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:46:11 -05:00
Al Viro
9436d5c32b
um: get_safe_registers() should be done in flush_thread(), not start_thread()
...
... or we'll end up buggering the results of ELF_PLAT_INIT()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:46:03 -05:00
Al Viro
a2b6dfaef0
Merge branch 'arch-tile' into no-rebases
2012-11-28 21:44:15 -05:00
Al Viro
e3cb7e9f0d
tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 21:43:21 -05:00
Linus Torvalds
9489e9dcae
Linux 3.7-rc7
2012-11-25 17:59:19 -08:00
Linus Torvalds
08e627b5ce
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
...
Pull powerpc EEH bugfixes from Benjamin Herrenschmidt.
Two one-liner fixes for the new EEH code.
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
powerpc/eeh: Do not invalidate PE properly
powerpc/pseries: Fix oops with MSIs when missing EEH PEs
2012-11-25 17:57:01 -08:00