Page MenuHomeFreeBSD

uma: Fix KMSAN integration with malloc zones
ClosedPublic

Authored by markj on Fri, Jul 31, 3:05 PM.
Tags
None
Referenced Files
F167977888: D58574.id183161.diff
Tue, Aug 25, 5:37 PM
Unknown Object (File)
Fri, Aug 21, 1:01 PM
Unknown Object (File)
Tue, Aug 18, 9:08 AM
Unknown Object (File)
Mon, Aug 17, 10:32 PM
Unknown Object (File)
Mon, Aug 17, 11:34 AM
Unknown Object (File)
Mon, Aug 17, 2:41 AM
Unknown Object (File)
Sun, Aug 16, 4:06 PM
Unknown Object (File)
Sun, Aug 16, 1:47 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