]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Fix the checking of stackidx in __ftrace_trace_stack
authorQiujun Huang <hqjagain@gmail.com>
Sat, 31 Oct 2020 08:57:14 +0000 (16:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:12 +0000 (19:22 +0100)
commit74c2a09c583f96f1399993d58809f9a54d11d502
treefb89b85198559c95c9ef677e3d72b945648e74a6
parentc9ed6f0c3d8e8277d2cbf0ba70875abcf80a881b
tracing: Fix the checking of stackidx in __ftrace_trace_stack

[ Upstream commit 906695e59324635c62b5ae59df111151a546ca66 ]

The array size is FTRACE_KSTACK_NESTING, so the index FTRACE_KSTACK_NESTING
is illegal too. And fix two typos by the way.

Link: https://lkml.kernel.org/r/20201031085714.2147-1-hqjagain@gmail.com
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/trace.c