On Fri, 15 May 2020 10:08:28 +0000 Cheng Jian <[email protected]> wrote:
> When an anomaly is detected in the function call modification > code, ftrace_bug() is called to disable function tracing as well > as give some warn and information that may help debug the problem. > > But currently, we call FTRACE_WARN_ON_ONCE() first in ftrace_bug(), > so when panic_on_warn is set, we can't see the debugging information > here. Call FTRACE_WARN_ON_ONCE() at the end of ftrace_bug() to ensure > that the debugging information is displayed first. > > after this patch, the dmesg looks like: > Thanks, I'll add this to my queue. -- Steve

