mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] KASan: print output directly to stderr
@ 2023-09-11 12:56 Ahmad Fatoum
  2023-09-11 12:56 ` [PATCH 1/4] ARM: unwind: don't allocate while printing stack trace Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2023-09-11 12:56 UTC (permalink / raw)
  To: barebox

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-12  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-11 12:56 [PATCH 0/4] KASan: print output directly to stderr Ahmad Fatoum
2023-09-11 12:56 ` [PATCH 1/4] ARM: unwind: don't allocate while printing stack trace Ahmad Fatoum
2023-09-11 12:56 ` [PATCH 2/4] ARM64: backtrace: print stacktrace to stderr Ahmad Fatoum
2023-09-11 12:56 ` [PATCH 3/4] KASan: only print " Ahmad Fatoum
2023-09-11 12:56 ` [PATCH 4/4] KASan: don't allocate memory while printing report Ahmad Fatoum
2023-09-12  9:36 ` [PATCH 0/4] KASan: print output directly to stderr Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox