HomeFreeBSD

gconcat: Zero the metadata block before writing

Description

gconcat: Zero the metadata block before writing

Ensure that string buffers and pad bytes are zero-filled before writing
gconcat metadata. Also make sure to zero the full block buffer before
encoding the metadata and writing.

Fix some style bugs in g_concat_write_metadata() while here.

Reported by: KMSAN
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Jul 13 2021, 9:45 PM
Parents
rG7f053a44aef7: gmirror: Zero the metadata block before writing
Branches
Unknown
Tags
Unknown