Skip to content

Commit 6bbb44e

Browse files
authored
Initialize ZIL buffers
When populating a ZIL destination buffer ensure it is always zeroed before its contents are constructed. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Tom Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #11687
1 parent 8a6d444 commit 6bbb44e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/os/linux/zfs/zio_crypt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,7 @@ zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf,
14121412
nr_src = 1;
14131413
nr_dst = 0;
14141414
}
1415+
bzero(dst, datalen);
14151416

14161417
/* find the start and end record of the log block */
14171418
zilc = (zil_chain_t *)src;

0 commit comments

Comments
 (0)