On Fri, Nov 30, 2018 at 4:02 PM, Ido Schimmel <ido...@idosch.org> wrote: > On Fri, Nov 30, 2018 at 08:59:09AM -0700, David Ahern wrote: >> This does not repro for me: >> # ./a.out >> Invalid address length 6 - must be 4 bytes >> RTNETLINK answers: No buffer space available >> RTNETLINK answers: Operation not supported >> Invalid address length 6 - must be 4 bytes >> Invalid address length 6 - must be 4 bytes >> Invalid address length 6 - must be 4 bytes >> Invalid address length 6 - must be 16 bytes >> Invalid address length 6 - must be 16 bytes >> Invalid address length 6 - must be 16 bytes >> >> config available>? > > You need a kernel with kmsan. See: > https://github.com/google/kmsan
Another option may be to spray memory at the allocation stack with some distinctive byte pattern and then check this pattern at the use stack. Not 100% sounds, but should be enough for testing.