aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2021-03-05 14:45:13 -0800
committerGitHub <[email protected]>2021-03-05 14:45:13 -0800
commit6bbb44e157818b52b2cf222f7cc299d42903f7b0 (patch)
tree8942109c07f7ff8ce6231555702058cf5a276c6e /module
parent8a6d4448257320ce8afc67ecea25b434f094a304 (diff)
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
Diffstat (limited to 'module')
-rw-r--r--module/os/linux/zfs/zio_crypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/os/linux/zfs/zio_crypt.c b/module/os/linux/zfs/zio_crypt.c
index 284ca706e..2c58fecb2 100644
--- a/module/os/linux/zfs/zio_crypt.c
+++ b/module/os/linux/zfs/zio_crypt.c
@@ -1412,6 +1412,7 @@ zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf,
nr_src = 1;
nr_dst = 0;
}
+ bzero(dst, datalen);
/* find the start and end record of the log block */
zilc = (zil_chain_t *)src;