Page MenuHomeFreeBSD

uma: Fix KMSAN integration with malloc zones
ClosedPublic

Authored by markj on Fri, Jul 31, 3:05 PM.
Tags
None
Referenced Files
F164798614: D58574.id183161.diff
Tue, Aug 4, 2:42 AM
F164716489: D58574.diff
Mon, Aug 3, 8:05 AM
F164706864: D58574.id183161.diff
Mon, Aug 3, 7:00 AM
F164705016: D58574.id.diff
Mon, Aug 3, 6:48 AM
Unknown Object (File)
Mon, Aug 3, 3:36 AM
Unknown Object (File)
Sun, Aug 2, 8:47 AM
Unknown Object (File)
Fri, Jul 31, 4:07 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