summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bury the conditionals from kernel_thread/kernel_execve seriesAl Viro2012-12-2063-131/+6
| | | | | | | | | | | | All architectures have CONFIG_GENERIC_KERNEL_THREAD CONFIG_GENERIC_KERNEL_EXECVE __ARCH_WANT_SYS_EXECVE None of them have __ARCH_WANT_KERNEL_EXECVE and there are only two callers of kernel_execve() (which is a trivial wrapper for do_execve() now) left. Kill the conditionals and make both callers use do_execve(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* COMPAT_SYSCALL_DEFINE: infrastructureAl Viro2012-12-202-0/+45
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* do_coredump(): get rid of pt_regs argumentAl Viro2012-11-293-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* print_fatal_signal(): get rid of pt_regs argumentAl Viro2012-11-291-2/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ptrace_signal(): get rid of unused argumentsAl Viro2012-11-291-4/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of ptrace_signal_deliver() argumentsAl Viro2012-11-294-5/+5
| | | | | | | the first one is equal to signal_pt_regs(), the second is never used (and always NULL, while we are at it). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* new helper: signal_pt_regs()Al Viro2012-11-293-0/+11
| | | | | | | | | | | | | | | | | Always equal to task_pt_regs(current); defined only when we are in signal delivery. It may be different from current_pt_regs() - e.g. architectures like m68k may have pt_regs location on exception different from that on a syscall and signals (just as ptrace handling) may happen on exceptions as well as on syscalls. When they are equal, it's often better to have signal_pt_regs defined (in asm/ptrace.h) as current_pt_regs - that tends to be optimized better than default would be. However, optimisation is the only reason why we might want an arch-specific definition; if current_pt_regs() and task_pt_regs(current) have different values, the latter one is right. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* unify default ptrace_signal_deliverAl Viro2012-11-2918-42/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* flagday: kill pt_regs argument of do_fork()Al Viro2012-11-299-26/+19
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* death to idle_regs()Al Viro2012-11-294-22/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* don't pass regs to copy_process()Al Viro2012-11-291-4/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* flagday: don't pass regs to copy_thread()Al Viro2012-11-2934-60/+45
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* bfin: switch to generic vfork, get rid of pointless wrappersAl Viro2012-11-295-54/+7
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* xtensa: switch to generic clone()Al Viro2012-11-295-11/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* openrisc: switch to use of generic fork and cloneAl Viro2012-11-296-66/+19
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* unicore32: switch to generic clone(2)Al Viro2012-11-294-25/+7
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* score: switch to generic fork/vfork/cloneAl Viro2012-11-296-58/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* c6x: sanitize copy_thread(), get rid of clone(2) wrapper, switch to generic ↵Al Viro2012-11-294-36/+6
| | | | | | clone() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* take sys_fork/sys_vfork/sys_clone prototypes to linux/syscalls.hAl Viro2012-11-2912-63/+11
| | | | | | now it can be done... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* mn10300: switch to generic fork/vfork/cloneAl Viro2012-11-292-28/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* h8300: switch to generic fork/vfork/cloneAl Viro2012-11-293-44/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* tile: switch to generic clone()Al Viro2012-11-292-8/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* m68k: sanitize copy_thread(), fork/vfork/clone wrappers, switch to generic ↵Al Viro2012-11-294-71/+46
| | | | | | fork/vfork Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* alpha: switch to generic fork/vfork/cloneAl Viro2012-11-294-59/+17
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* s390: switch to generic fork/vfork/cloneAl Viro2012-11-293-42/+14
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* microblaze: switch to generic fork/vfork/cloneAl Viro2012-11-297-56/+12
| | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* hexagon: switch to generic clone()Al Viro2012-11-294-52/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* sh: switch to generic fork/vfork/cloneAl Viro2012-11-295-110/+11
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* parisc: switch to generic fork/vfork/cloneAl Viro2012-11-294-69/+22
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* m32r: switch to generic fork/vfork/cloneAl Viro2012-11-292-42/+7
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* cris: switch to generic fork/vfork/cloneAl Viro2012-11-294-60/+13
| | | | | | | same braindamage as on s390 - the first two arguments of clone(2) in the wrong order. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* avr32: sanitize copy_thread(), switch to generic fork/vfork/clone, kill wrappersAl Viro2012-11-294-47/+11
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* arm64: sanitize copy_thread(), switch to generic fork/vfork/cloneAl Viro2012-11-297-28/+12
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* frv: switch to generic fork/vfork/cloneAl Viro2012-11-292-40/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* powerpc: switch to generic fork/clone/vforkAl Viro2012-11-294-32/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* arm: switch to generic fork/vfork/cloneAl Viro2012-11-296-55/+13
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* x86, um: switch to generic fork/vfork/cloneAl Viro2012-11-2916-117/+52
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of pt_regs argument of ->load_binary()Al Viro2012-11-2912-20/+25
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of pt_regs argument of search_binary_handler()Al Viro2012-11-296-9/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of pt_regs argument of do_execve_common()Al Viro2012-11-291-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of pt_regs argument of do_execve()Al Viro2012-11-293-13/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* make compat_do_execve() static, lose pt_regs argumentAl Viro2012-11-292-8/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* kill stray kernel_thread() garbageAl Viro2012-11-294-6/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* audit: no nested contexts anymore...Al Viro2012-11-291-81/+21
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* consolidate sys_execve() prototypeAl Viro2012-11-296-18/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
*-----------------. Merge branches 'no-rebases', 'arch-avr32', 'arch-blackfin', 'arch-cris', ↵Al Viro2012-11-29165-2781/+982
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'arch-h8300', 'arch-m32r', 'arch-mn10300', 'arch-score', 'arch-sh' and 'arch-powerpc' into for-next
| | | | | | | | | | * powerpc: make fork_idle() take the common "kernel thread" path in copy_thread()Al Viro2012-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| | | | | | | | | | * powerpc: put the "zero usp means using parent's stack pointer" to copy_thread()Al Viro2012-10-221-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | simplifies callers, at that... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| | | | | | | | | | * powerpc: don't bother with CHECK_FULL_REGS in sys_fork() et.al.Al Viro2012-10-221-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | copy_thread() will do it anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| | | | | | | | | | * powerpc: don't bother with zero-extending arguments in sys_clone()Al Viro2012-10-221-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... since the syscall glue had been doing that for 9 years already. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>