Page MenuHomeFreeBSD

hastd: Ensure nvpair padding is initialized
ClosedPublic

Authored by des on Sep 3 2026, 3:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 5, 5:40 AM
Unknown Object (File)
Sat, Oct 3, 7:37 AM
Unknown Object (File)
Sat, Oct 3, 5:10 AM
Unknown Object (File)
Fri, Oct 2, 6:54 PM
Unknown Object (File)
Thu, Oct 1, 2:03 PM
Unknown Object (File)
Thu, Oct 1, 3:37 AM
Unknown Object (File)
Tue, Sep 29, 6:48 PM
Unknown Object (File)
Mon, Sep 28, 7:31 PM
Subscribers

Details

Summary

The proto-libnv implementation embedded in hastd pads names and values
out to the nearest multiple of eight bytes, but leaves the padding
uninitialized, leaking up to 14 bytes of recycled heap per pair in a
message.

While here, switch from bcopy() to memcpy().

MFC after: 3 days

Diff Detail

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