HomeFreeBSD

Zero pad bytes following TX_WRITE log data

Description

Zero pad bytes following TX_WRITE log data

When logging a TX_WRITE record in the case where file data has to be
copied from the DMU, we pad the log record size to a multiple of 8
bytes. In this case, any padding bytes should be zeroed, otherwise the
contents of uninitialized memory are written to the ZIL.

This was found using KMSAN.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #12383

Details

Provenance
markjAuthored on Jul 16 2021, 2:05 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 26 2021, 6:53 PM
Parents
rG58714c281789: Zero pad bytes when allocating a ZIL record
Branches
Unknown
Tags
Unknown

Event Timeline