I recently hunted down a heap memory corruption and this was somewhat complicated by KASan and dump_stack() themselves allocating memory off the heap. This series switches them to directly write to the consoles associated with stderr, while skipping the log. Ahmad Fatoum (4): ARM: unwind: don't allocate while printing stack trace ARM64: backtrace: print stacktrace to stderr KASan: only print to stderr KASan: don't allocate memory while printing report arch/arm/lib32/unwind.c | 20 ++++++++++---------- arch/arm/lib64/stacktrace.c | 6 +++--- lib/kasan/generic.c | 2 -- lib/kasan/report.c | 22 +++++++++++----------- 4 files changed, 24 insertions(+), 26 deletions(-) -- 2.39.2