]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfsboot: vdev_read_pad2 does allocate buffer with wrong size
authorToomas Soome <tsoome@FreeBSD.org>
Wed, 5 Feb 2020 11:02:00 +0000 (11:02 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 02:41:22 +0000 (21:41 -0500)
commit985d95fb1447b459fd0616bae5ac241b1ca60d33
treea23f1dbec6d787d80bbc6c2222684e6c41e83918
parent51b4c4751acd3730b1ce0c8fa937f51beacde920
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.

(cherry picked from commit 7503958e4cd57bcfc2b611594906b56c6645e5f4)
stand/i386/zfsboot/zfsboot.c