diff options
| author | Marco Elver <[email protected]> | 2020-05-23 05:22:59 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-05-23 17:26:31 +0000 |
| commit | 33cd65e73abd693c00c4156cf23677c453b41b3b (patch) | |
| tree | cf1237060c2eb28ccf1a3916d1bf0aea5fdb6654 /tools/perf/scripts/python | |
| parent | selftests/vm/write_to_hugetlbfs.c: fix unused variable warning (diff) | |
| download | kernel-33cd65e73abd693c00c4156cf23677c453b41b3b.tar.gz kernel-33cd65e73abd693c00c4156cf23677c453b41b3b.zip | |
kasan: disable branch tracing for core runtime
During early boot, while KASAN is not yet initialized, it is possible to
enter reporting code-path and end up in kasan_report().
While uninitialized, the branch there prevents generating any reports,
however, under certain circumstances when branches are being traced
(TRACE_BRANCH_PROFILING), we may recurse deep enough to cause kernel
reboots without warning.
To prevent similar issues in future, we should disable branch tracing
for the core runtime.
[[email protected]: remove duplicate DISABLE_BRANCH_PROFILING, per Qian Cai]
Link: https://lore.kernel.org/lkml/20200517011732.GE24705@shao2-debian/
Link: http://lkml.kernel.org/r/[email protected]
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Marco Elver <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrey Konovalov <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Qian Cai <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r//20200517011732.GE24705@shao2-debian/
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
