HomeFreeBSD

Fix memory corruption bug introduced in r325310

Description

Fix memory corruption bug introduced in r325310

The bug occurred when a bounce buffer was used and the requested read
size was greater than the size of the bounce buffer. This commit also
rewrites the read logic so that it is easier to systematically verify
all alignment and size cases.

Reviewed by: allanjude, tsoome
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D19140

Details

Committed
pkelseyFeb 17 2019, 3:35 AM
Reviewer
allanjude
Differential Revision
D19140: Fix memory corruption bug in vdev_read in loader ZFS support
Parents
rS344225: MFC r343699:
Branches
Unknown
Tags
Unknown