Page MenuHomeFreeBSD

uma: Fix KMSAN integration with malloc zones
ClosedPublic

Authored by markj on Jul 31 2026, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 30, 5:41 AM
Unknown Object (File)
Sat, Sep 26, 5:51 PM
Unknown Object (File)
Thu, Sep 24, 2:32 PM
Unknown Object (File)
Thu, Sep 24, 11:49 AM
Unknown Object (File)
Sun, Sep 20, 10:47 PM
Unknown Object (File)
Fri, Sep 18, 9:07 PM
Unknown Object (File)
Wed, Sep 16, 12:48 PM
Unknown Object (File)
Sat, Sep 12, 2:32 PM
Subscribers

Details

Summary

In commit 459aa032e872 I dropped kmsan_mark() calls from malloc() on the
basis that UMA and kmem_malloc() would handle updates of the KMSAN
shadow map. However, I missed that UMA explicitly does not handle this.

Modify UMA to only omit origin map updates for malloc zones.

Fixes: 459aa032e872 ("malloc: Refactor redzone and sanitizer handling")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable