[zeek/spicy] c30879: Fix ASAN false positive on ARM.

0 views
Skip to first unread message

Robin Sommer

unread,
Sep 4, 2025, 7:19:36 AM (5 days ago) Sep 4
to spicy-...@zeek.org
Branch: refs/heads/topic/robin/fix-asan-fp-on-arm
Home: https://github.com/zeek/spicy
Commit: c30879dadc2b43a59c75afbf7de2315a07c01085
https://github.com/zeek/spicy/commit/c30879dadc2b43a59c75afbf7de2315a07c01085
Author: Robin Sommer <ro...@corelight.com>
Date: 2025-09-04 (Thu, 04 Sep 2025)

Changed paths:
M hilti/runtime/src/fiber.cc

Log Message:
-----------
Fix ASAN false positive on ARM.

Our fiber code could trigger ASAN to report a false positive: If a
block of memory had already been used before as stack memory for a
previously existing fiber, that usage may have left ASAN guard regions
in place reflecting the state when that old fiber finished. If we were
now reusing the same memory for a new fiber's stack, ASAN would
continue to check any accesses against that old state. So when this
memory now got reinitialized with a new stack structure (i.e.,
essentially writing to arbitrary locations inside the block), those
writes could trigger ASAN to report an out-of-bounds access.

This triggered on ARM, but could have just as well triggered in x86 as
well. I think it was just by chance that x86 ended up working.



To unsubscribe from these emails, change your notification settings at https://github.com/zeek/spicy/settings/notifications
Reply all
Reply to author
Forward
0 new messages