]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/uprobe: Fix to make trace_uprobe_filter alignment safe
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 22 Jan 2020 03:23:25 +0000 (12:23 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 22 Jan 2020 12:09:20 +0000 (07:09 -0500)
commit5b09165a9c0a860183f20a3b11e01945d92ceb99
treebc6dfce81447098dea4669eeeb9874748a9cb85a
parentf35e184729859044c22a20f3b3c6208beab30d0f
tracing/uprobe: Fix to make trace_uprobe_filter alignment safe

Commit 24a3092d6387 ("tracing/uprobe: Fix double perf_event
linking on multiprobe uprobe") moved trace_uprobe_filter on
trace_probe_event. However, since it introduced a flexible
data structure with char array and type casting, the
alignment of trace_uprobe_filter can be broken.

This changes the type of the array to trace_uprobe_filter
data strucure to fix it.

Link: http://lore.kernel.org/r/20200120124022.GA14897@hirez.programming.kicks-ass.net
Link: http://lkml.kernel.org/r/157966340499.5107.10978352478952144902.stgit@devnote2
Fixes: 24a3092d6387 ("tracing/uprobe: Fix double perf_event linking on multiprobe uprobe")
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c