nuttx/mm
yinshengkai a9afed96b9 mm/kasan: print memory around poisoned address
Print shadow memory following asan format.
==3118004==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5618ac32a100 at pc 0x5618ac32727f bp 0x7ffe5f3e66f0 sp 0x7ffe5f3e66e0
WRITE of size 4 at 0x5618ac32a100 thread T0

#0 0x5618ac32727e in main /home/baerg/vela/x4b/asan_test.c:12
#1 0x7f221ce29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#2 0x7f221ce29e3f in __libc_start_main_impl ../csu/libc-start.c:392
#3 0x5618ac327144 in _start (/home/baerg/vela/x4b/asan_test+0x1144)
0x5618ac32a100 is located 0 bytes to the right of global variable 'buffer' defined in 'asan_test.c:5:6' (0x5618ac32a0e0) of size 32
SUMMARY: AddressSanitizer: global-buffer-overflow /home/baerg/vela/x4b/asan_test.c:12 in main
Shadow bytes around the buggy address:
0x0ac39585d3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d400: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 f9
0x0ac39585d410: f9 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
=>0x0ac39585d420:[f9]f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0ac39585d470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-08-30 01:35:09 +08:00
..
bin
circbuf mm: Fix some typos 2023-11-24 09:57:10 -08:00
iob mm/iob: Simplify IOB alloc/free logic 2024-06-25 15:21:00 +08:00
kasan mm/kasan: print memory around poisoned address 2024-08-30 01:35:09 +08:00
kbin
kmap
kmm_heap mm: add mm_initialize_pool, make pool more flexible 2024-06-25 16:42:06 +08:00
map nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
mempool libc/execinfo: extract a common backtrace format function 2024-08-21 18:01:24 +08:00
mm_gran mm/gran: Fix GRAN_ALIGNED() macro 2024-06-03 22:06:38 +08:00
mm_heap mm: add mm_largest api to get the current largest available memory block 2024-08-25 23:09:28 +08:00
shm nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
tlsf mm: add mm_largest api to get the current largest available memory block 2024-08-25 23:09:28 +08:00
ubsan mm_ubsan: add dummy to bypass runtime actions 2024-07-10 20:09:39 +08:00
umm_heap mm: memory pressure support returns the maximum available memory 2024-08-25 23:09:28 +08:00
CMakeLists.txt
Kconfig mm_ubsan: add dummy to bypass runtime actions 2024-07-10 20:09:39 +08:00
Makefile