diff options
| author | Zheng Yejian <[email protected]> | 2023-03-30 02:52:23 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-04-06 15:01:30 +0000 |
| commit | 2a2d8c51defb446e8d89a83f42f8e5cd529111e9 (patch) | |
| tree | 9750c35d6baae76250e6a435b3e27fa844c3bb83 /tools/perf/scripts/python/compaction-times.py | |
| parent | tracing: Free error logs of tracing instances (diff) | |
| download | kernel-2a2d8c51defb446e8d89a83f42f8e5cd529111e9.tar.gz kernel-2a2d8c51defb446e8d89a83f42f8e5cd529111e9.zip | |
ftrace: Fix issue that 'direct->addr' not restored in modify_ftrace_direct()
Syzkaller report a WARNING: "WARN_ON(!direct)" in modify_ftrace_direct().
Root cause is 'direct->addr' was changed from 'old_addr' to 'new_addr' but
not restored if error happened on calling ftrace_modify_direct_caller().
Then it can no longer find 'direct' by that 'old_addr'.
To fix it, restore 'direct->addr' to 'old_addr' explicitly in error path.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: [email protected]
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Fixes: 8a141dd7f706 ("ftrace: Fix modify_ftrace_direct.")
Signed-off-by: Zheng Yejian <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
