cregit-Linux how code gets into the kernel

Release 4.14 arch/um/kernel/skas/syscall.c

/*
 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
 * Licensed under the GPL
 */

#include <linux/kernel.h>
#include <linux/ptrace.h>
#include <linux/seccomp.h>
#include <kern_util.h>
#include <sysdep/ptrace.h>
#include <sysdep/ptrace_user.h>
#include <sysdep/syscalls.h>


void handle_syscall(struct uml_pt_regs *r) { struct pt_regs *regs = container_of(r, struct pt_regs, regs); int syscall; /* Initialize the syscall number and default return value. */ UPT_SYSCALL_NR(r) = PT_SYSCALL_NR(r->gp); PT_REGS_SET_SYSCALL_RETURN(regs, -ENOSYS); if (syscall_trace_enter(regs)) goto out; /* Do the seccomp check after ptrace; failures should be fast. */ if (secure_computing(NULL) == -1) goto out; syscall = UPT_SYSCALL_NR(r); if (syscall >= 0 && syscall <= __NR_syscall_max) PT_REGS_SET_SYSCALL_RETURN(regs, EXECUTE_SYSCALL(syscall, regs)); out: syscall_trace_leave(regs); }

Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike4743.12%327.27%
Mickaël Salaün4339.45%327.27%
Kees Cook87.34%19.09%
Paolo 'Blaisorblade' Giarrusso43.67%19.09%
Richard Weinberger32.75%19.09%
Andrew Lutomirski21.83%19.09%
Al Viro21.83%19.09%
Total109100.00%11100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike5844.27%533.33%
Mickaël Salaün4836.64%320.00%
Kees Cook86.11%16.67%
Al Viro64.58%213.33%
Richard Weinberger53.82%213.33%
Paolo 'Blaisorblade' Giarrusso43.05%16.67%
Andrew Lutomirski21.53%16.67%
Total131100.00%15100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.