walnux/mm
wangmingrong1 aead1981a7 kasan: Potential recursive registration shadow area error
When initializing a memory block, the shadow area record of the first
memory block is used first.When uninitializing, unpoison is required, otherwise the memory will be marked incorrectly.
The following case will cause problems:
    void *mem = malloc(1024);
    struct mm_heap_s *a = mm_initialize("hello", mem, 1024);
    int *b = mm_malloc(a, sizeof(int *));
    *b = 100;
    printf("Hello, World!! %d\n", *b);
    mm_free(a, b);
    mm_uninitialize(a);
    free(mem);

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2025-07-01 09:04:03 -03:00
..
iob macro/align: Use ALIGN_UP and ALIGN_DOWN uniformly 2025-01-12 16:48:35 +08:00
kasan kasan: Potential recursive registration shadow area error 2025-07-01 09:04:03 -03:00
kmap mm/kmap/kmm_map.c: Fix argument to gran_free 2025-01-15 17:10:57 +08:00
kmm_heap cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
map style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mempool kasan: kasan_reset_tag rename kasan_clear_tag 2025-06-30 18:19:38 +08:00
mm_gran style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mm_heap fix kasan_bypss compile unused error 2025-06-30 18:19:38 +08:00
shm style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
tlsf style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
ubsan include/nuttx.h: replace all the align macros to nuttx version 2024-10-11 16:55:43 +08:00
umm_heap userspace: Exclude nuttx/arch.h 2024-11-01 16:59:37 +08:00
CMakeLists.txt mm: migrate to SPDX identifier 2024-09-13 08:49:05 +08:00
Kconfig mm: Support CONFIG_MM_NODE_GUARDSIZE configuration 2025-06-26 20:33:29 +08:00
Makefile makefile/build: Delete unnecessary bin and kbin folders 2024-11-10 01:18:26 +08:00