HomeFreeBSD

vdev_draid_lookup_map() should not iterate outside draid_maps

Description

vdev_draid_lookup_map() should not iterate outside draid_maps

Coverity reported this as an out-of-bounds read.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13865

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 12 2022, 7:51 PM
GitHub <noreply@github.com>Committed on Sep 12 2022, 7:51 PM
Parents
rG7195c04d986e: Fix file descriptor handling in zdb_copy_object()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGe5327e7f9790: vdev_draid_lookup_map() should not iterate outside draid_maps (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Sep 12 2022, 7:51 PM