]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Do not set trace clock if tracefs lockdown is in effect
authorMasami Ichikawa <masami256@gmail.com>
Thu, 16 Jan 2020 13:12:36 +0000 (22:12 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 20 Jan 2020 21:18:14 +0000 (16:18 -0500)
commitf35e184729859044c22a20f3b3c6208beab30d0f
tree16b6d0565a085fced05d766e68c2fc503fc58447
parentfe17789199e6bcfb3cae40eed0f0b197bcdbadfa
tracing: Do not set trace clock if tracefs lockdown is in effect

When trace_clock option is not set and unstable clcok detected,
tracing_set_default_clock() sets trace_clock(ThinkPad A285 is one of
case). In that case, if lockdown is in effect, null pointer
dereference error happens in ring_buffer_set_clock().

Link: http://lkml.kernel.org/r/20200116131236.3866925-1-masami256@gmail.com
Cc: stable@vger.kernel.org
Fixes: c8045810554f9 ("tracing: Add locked_down checks to the open calls of files created for tracefs")
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1788488
Signed-off-by: Masami Ichikawa <masami256@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c