HomeFreeBSD

loader: zfs reader vdev_probe should check for minimum device size

Description

loader: zfs reader vdev_probe should check for minimum device size

The smallest device we can have in the pool is 64MB, since we are trying to
walk all four labels to find the most up to date uberblock, this limit will
also give us good method to check if we even should attempt to probe.

Enforcing the check also will make sure we are not getting wrapped while
calculating the label offset.

Also, after label check, we should verify if we actually got any UB or not.

PR: 218473
Reported by: Masachika ISHIZUKA
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D10381

Details

Provenance
tsoomeAuthored on
Reviewer
allanjude
Differential Revision
D10381: loader: zfs reader vdev_probe should check for minimum device size
Parents
rS317091: Document kevent EVFILT_EMPTY.
Branches
Unknown
Tags
Unknown