Commit a6a1132
ftrace: Fix regression with module command in stack_trace_filter
commit 45af52e upstream.
When executing the following command:
# echo "write*:mod:ext3" > /sys/kernel/tracing/stack_trace_filter
The current mod command causes a null pointer dereference. While commit
0f17976 ("ftrace: Fix regression with module command in stack_trace_filter")
has addressed part of the issue, it left a corner case unhandled, which still
results in a kernel crash.
Cc: [email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: 04ec7bb ("tracing: Have the trace_array hold the list of registered func probes");
Signed-off-by: guoweikang <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 0eab1c5 commit a6a1132
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4437 | 4437 | | |
4438 | 4438 | | |
4439 | 4439 | | |
| 4440 | + | |
| 4441 | + | |
| 4442 | + | |
4440 | 4443 | | |
4441 | 4444 | | |
4442 | 4445 | | |
| |||
0 commit comments