diff options
author | Andrey Ryabinin <[email protected]> | 2017-03-13 19:33:37 +0300 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-03-14 00:00:55 +0100 |
commit | be3606ff739d1c1be36389f8737c577ad87e1f57 (patch) | |
tree | 10d00f5ac10fe7e5c5a697d44f38548bdfbd1862 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 859bb6d59066b96341020e0991f191631cabe59d (diff) |
x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y
The kernel doesn't boot with both PROFILE_ANNOTATED_BRANCHES=y and KASAN=y
options selected. With branch profiling enabled we end up calling
ftrace_likely_update() before kasan_early_init(). ftrace_likely_update() is
built with KASAN instrumentation, so calling it before kasan has been
initialized leads to crash.
Use DISABLE_BRANCH_PROFILING define to make sure that we don't call
ftrace_likely_update() from early code before kasan_early_init().
Fixes: ef7f0d6a6ca8 ("x86_64: add KASan support")
Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Andrey Ryabinin <[email protected]>
Cc: [email protected]
Cc: Alexander Potapenko <[email protected]>
Cc: [email protected]
Cc: Andrew Morton <[email protected]>
Cc: [email protected]
Cc: Dmitry Vyukov <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions