Discussion:
Clang's MemorySanitizer in userland?
(too old to reply)
Alan Somers
2024-09-11 17:47:29 UTC
Permalink
Has anybody successfully used Clang's MemorySanitizer in userland?

I'm trying to search for uinitialized memory usage in ZFS. Rather
than use KMSan in the kernel, I would prefer to use ztest in userland.
But I'm having trouble getting it to work. The main limitation is
that every single shared library needs to be rebuilt with
MemorySanitizer enabled. Another limitation is that I haven't figured
out how to properly link shared libraries that are using
MemorySanitizer. And a third limitation is that MemorySanitizer will
alert for false positives for syscalls that it doesn't know about.
sysctl seems to be one of those.

So if anybody has yet used it successfully, I'd love to see your work
as an example.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Paul Floyd
2024-09-11 20:05:00 UTC
Permalink
Have you tried Valgrind?

I don’t have much experience with MSAN - Valgrind takes all my spare time.

A+
Paul



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...