huojianchaoyy opened a new pull request, #21580:
URL: https://github.com/apache/nuttx/pull/21580

   ## Summary
   
   This PR is the first batch (1/4) of KASAN/UBSAN/MTE improvements from the 
NuttX community.
   
   ## Changes
   
   - **kasan: kasan bypass move outside the lock** — Move kasan_bypass calls 
outside mm_lock/mm_unlock to avoid recursive issues when kasan itself uses the 
heap
   - **kasan: Support asan poison memory** — Add sim_asan.c for ASAN memory 
poisoning support in simulation; add CONFIG_MM_KASAN_SIM
   - **mm/kasan: Increase g_region array size to 16** — Prevent out-of-bounds 
when heap grows
   - **qemu/smartspeaker: Fix g_region_count array out of bounds** — Fix 
Kconfig default value
   - **mm/kasan: Add spinlock for kasan_report** — Protect kasan_report with a 
spinlock to avoid concurrent access
   - **sched/spinlock: Replace spinlock with spinlock_notrace** — Use notrace 
variant in kasan to avoid trace recursion
   - **kasan: Use atomic to increment g_region_count** — Make region count 
operations atomic for SMP safety
   - **kasan/unregister: Modify the logic of unpoison** — Move kasan_unpoison 
outside the lock; change kasan_unregister signature to accept size parameter
   - **mm_heap: fix node->blink->flink possible hwtag not matched** — Fix hwtag 
mismatch in mallinfo/memdump
   
   ## Commits
   
   9 commits from multiple contributors (wangmingrong1, cuiziwei, wangzhi16, 
buxiasen).
   
   ## Testing
   
   Tested on sim/qemu with CONFIG_MM_KASAN enabled.
   
   ## Note
   
   One commit (nxgdb script optimization) was excluded as it depends on pynuttx 
directory structure changes not yet in upstream.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] mm/kasan: KASAN improvem... huojianchaoyy (via GitHub) via commits

Reply via email to