vdev_draid_lookup_map() should not iterate outside draid_maps
commite5327e7f9790ed7e884a7f8d9fa412632506b826
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Mon, 12 Sep 2022 19:51:17 +0000 (12 15:51 -0400)
committerGitHub <noreply@github.com>
Mon, 12 Sep 2022 19:51:17 +0000 (12 12:51 -0700)
tree4796bc18c78b7232cc060ef7ef0d46ccb9e4a27e
parent7195c04d986ecd26c25c13e3c180790a2e85a723
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
module/zfs/vdev_draid.c