HomeFreeBSD

Always perform bounds-checking in metaslab_free_concrete

Description

Always perform bounds-checking in metaslab_free_concrete

The vd->vdev_ms access can overflow due to on-disk corruption, not just
due to programming bugs. So it makes sense to check its boundaries even
in production builds.

Sponsored by: ConnectWise
Reviewed by: Alek Pinchuk <pinchuk.alek@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #17136

Details

Provenance
asomersAuthored on Mar 19 2025, 3:24 PM
GitHub <noreply@github.com>Committed on Mar 19 2025, 3:24 PM
Parents
rG3cd9934a4898: Some arc_release() cleanup
Branches
Unknown
Tags
Unknown