Thomas Gleixner
d2912cb15b
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
...
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner <[email protected] >
Reviewed-by: Enrico Weigelt <[email protected] >
Reviewed-by: Kate Stewart <[email protected] >
Reviewed-by: Allison Randal <[email protected] >
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2019-06-19 17:09:55 +02:00
Steven Rostedt (VMware)
32d9258662
syscalls: Remove start and number from syscall_set_arguments() args
...
After removing the start and count arguments of syscall_get_arguments() it
seems reasonable to remove them from syscall_set_arguments(). Note, as of
today, there are no users of syscall_set_arguments(). But we are told that
there will be soon. But for now, at least make it consistent with
syscall_get_arguments().
Link: http://lkml.kernel.org/r/[email protected]
Cc: Oleg Nesterov <[email protected] >
Cc: Kees Cook <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Dominik Brodowski <[email protected] >
Cc: Dave Martin <[email protected] >
Cc: "Dmitry V. Levin" <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Max Filippov <[email protected] > # For xtensa changes
Acked-by: Will Deacon <[email protected] > # For the arm64 bits
Reviewed-by: Thomas Gleixner <[email protected] > # for x86
Reviewed-by: Dmitry V. Levin <[email protected] >
Signed-off-by: Steven Rostedt (VMware) <[email protected] >
2019-04-05 09:27:23 -04:00
Steven Rostedt (Red Hat)
b35f549df1
syscalls: Remove start and number from syscall_get_arguments() args
...
At Linux Plumbers, Andy Lutomirski approached me and pointed out that the
function call syscall_get_arguments() implemented in x86 was horribly
written and not optimized for the standard case of passing in 0 and 6 for
the starting index and the number of system calls to get. When looking at
all the users of this function, I discovered that all instances pass in only
0 and 6 for these arguments. Instead of having this function handle
different cases that are never used, simply rewrite it to return the first 6
arguments of a system call.
This should help out the performance of tracing system calls by ptrace,
ftrace and perf.
Link: http://lkml.kernel.org/r/[email protected]
Cc: Oleg Nesterov <[email protected] >
Cc: Kees Cook <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Dominik Brodowski <[email protected] >
Cc: Dave Martin <[email protected] >
Cc: "Dmitry V. Levin" <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Paul Burton <[email protected] > # MIPS parts
Acked-by: Max Filippov <[email protected] > # For xtensa changes
Acked-by: Will Deacon <[email protected] > # For the arm64 bits
Reviewed-by: Thomas Gleixner <[email protected] > # for x86
Reviewed-by: Dmitry V. Levin <[email protected] >
Reported-by: Andy Lutomirski <[email protected] >
Signed-off-by: Steven Rostedt (VMware) <[email protected] >
2019-04-05 09:26:43 -04:00
Mickaël Salaün
d8f8b84456
um: Add full asm/syscall.h support
...
Add subarchitecture-independent implementation of asm-generic/syscall.h
allowing access to user system call parameters and results:
* syscall_get_nr()
* syscall_rollback()
* syscall_get_error()
* syscall_get_return_value()
* syscall_set_return_value()
* syscall_get_arguments()
* syscall_set_arguments()
* syscall_get_arch() provided by arch/x86/um/asm/syscall.h
This provides the necessary syscall helpers needed by
HAVE_ARCH_SECCOMP_FILTER plus syscall_get_error().
This is inspired from Meredydd Luff's patch
(https://gerrit.chromium.org/gerrit/21425 ).
Signed-off-by: Mickaël Salaün <[email protected] >
Cc: Jeff Dike <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Kees Cook <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Will Drewry <[email protected] >
Cc: Meredydd Luff <[email protected] >
Cc: David Drysdale <[email protected] >
Signed-off-by: Richard Weinberger <[email protected] >
Acked-by: Kees Cook <[email protected] >
2016-01-10 21:49:49 +01:00