HomeFreeBSD

zfsboot: vdev_read_pad2 does allocate buffer with wrong size

Description

zfsboot: vdev_read_pad2 does allocate buffer with wrong size

vdev_read_pad2() does read VDEV_PAD_SIZE of data, and will copy size bytes
of it, hence, we need buffer of VDEV_PAD_SIZE bytes.

Issue introduced in r357497.

Reported by: se

Details

Provenance
tsoomeAuthored on
Parents
rS357568: MFC r356249-r356250, r356313, r356434, r356657, r357421
Branches
Unknown
Tags
Unknown