Really zero the zero page
commit139690d6c3c748b138525784dd6f0aa48cfcda1a
authorAlexander Motin <mav@FreeBSD.org>
Fri, 17 Sep 2021 17:17:18 +0000 (17 13:17 -0400)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 17:17:18 +0000 (17 10:17 -0700)
tree3d52e0cf1646172952206dd10e61ca061042a484
parent2a49ebbb4dd0799ffa4fcb4043220a0f992aa68c
Really zero the zero page

While switching abd_zero_buf allocation KPI I've missed the fact
that kmem_zalloc() zeroed the allocation, while kmem_cache_alloc()
does not.  Add explicit bzero() after it.

I don't think it should have caused real problems, but leaking one
memory page content all over the pool is not good.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Closes #12569
module/os/freebsd/zfs/abd_os.c