diff options
author | Christoph Hellwig <hch@lst.de> | 2020-06-03 08:52:37 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-06-08 17:13:56 +0300 |
commit | 7ff0d4490ebadae8037a079a70c5cac13385a808 (patch) | |
tree | d69d20180f5247f90e4beb9ecb3d57729c6f7751 /include/linux/ftrace.h | |
parent | a2541dcb51127dc31934ab93bc99ae7df458e41b (diff) | |
download | linux-7ff0d4490ebadae8037a079a70c5cac13385a808.tar.xz |
trace: fix an incorrect __user annotation on stack_trace_sysctl
No user pointers for sysctls anymore.
Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
Reported-by: build test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index ddfc377de0d2..fce81238f304 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -319,9 +319,8 @@ static inline void arch_ftrace_set_direct_caller(struct pt_regs *regs, extern int stack_tracer_enabled; -int stack_trace_sysctl(struct ctl_table *table, int write, - void __user *buffer, size_t *lenp, - loff_t *ppos); +int stack_trace_sysctl(struct ctl_table *table, int write, void *buffer, + size_t *lenp, loff_t *ppos); /* DO NOT MODIFY THIS VARIABLE DIRECTLY! */ DECLARE_PER_CPU(int, disable_stack_tracer); |