Release 4.14 arch/um/kernel/exec.c
/*
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*/
#include <linux/stddef.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/ptrace.h>
#include <linux/sched/mm.h>
#include <linux/sched/task.h>
#include <linux/sched/task_stack.h>
#include <linux/slab.h>
#include <asm/current.h>
#include <asm/processor.h>
#include <linux/uaccess.h>
#include <as-layout.h>
#include <mem_user.h>
#include <skas.h>
#include <os.h>
void flush_thread(void)
{
void *data = NULL;
int ret;
arch_flush_thread(¤t->thread.arch);
ret = unmap(¤t->mm->context.id, 0, STUB_START, 0, &data);
ret = ret || unmap(¤t->mm->context.id, STUB_END,
host_task_size - STUB_END, 1, &data);
if (ret) {
printk(KERN_ERR "flush_thread - clearing address space failed, "
"err = %d\n", ret);
force_sig(SIGKILL, current);
}
get_safe_registers(current_pt_regs()->regs.gp,
current_pt_regs()->regs.fp);
__switch_mm(¤t->mm->context.id);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 100 | 78.74% | 5 | 71.43% |
Al Viro | 17 | 13.39% | 1 | 14.29% |
Paolo 'Blaisorblade' Giarrusso | 10 | 7.87% | 1 | 14.29% |
Total | 127 | 100.00% | 7 | 100.00% |
void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp)
{
PT_REGS_IP(regs) = eip;
PT_REGS_SP(regs) = esp;
current->ptrace &= ~PT_DTRACE;
#ifdef SUBARCH_EXECVE1
SUBARCH_EXECVE1(regs->regs);
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 49 | 96.08% | 4 | 80.00% |
Al Viro | 2 | 3.92% | 1 | 20.00% |
Total | 51 | 100.00% | 5 | 100.00% |
EXPORT_SYMBOL(start_thread);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 168 | 73.36% | 9 | 40.91% |
Al Viro | 34 | 14.85% | 4 | 18.18% |
Paolo 'Blaisorblade' Giarrusso | 10 | 4.37% | 1 | 4.55% |
Ingo Molnar | 7 | 3.06% | 3 | 13.64% |
Roland McGrath | 3 | 1.31% | 1 | 4.55% |
Alexey Dobriyan | 2 | 0.87% | 1 | 4.55% |
Tejun Heo | 2 | 0.87% | 1 | 4.55% |
Daniel Jacobowitz | 2 | 0.87% | 1 | 4.55% |
Linus Torvalds | 1 | 0.44% | 1 | 4.55% |
Total | 229 | 100.00% | 22 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.