Commit 539b75b2 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Steven Rostedt (VMware)

tracing/kprobe: Cast user-space address correctly

Cast user-space address correctly to pass to probe_user_read().
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 87a90956
...@@ -955,7 +955,9 @@ probe_mem_read(void *dest, void *src, size_t size) ...@@ -955,7 +955,9 @@ probe_mem_read(void *dest, void *src, size_t size)
static nokprobe_inline int static nokprobe_inline int
probe_mem_read_user(void *dest, void *src, size_t size) probe_mem_read_user(void *dest, void *src, size_t size)
{ {
return probe_user_read(dest, src, size); const void __user *uaddr = (__force const void __user *)src;
return probe_user_read(dest, uaddr, size);
} }
/* Note that we don't verify it, since the code does not come from user space */ /* Note that we don't verify it, since the code does not come from user space */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment