Loading
bdev/error: fix out-of-bound access to error vector
The error vector should not be accessed beyond `SPDK_BDEV_IO_TYPE_RESET`. Using the I/O type as an index in the I/O path creates out-of-bound accesses for any I/O type beyond RESET submitted to the error bdev. Use the return value of `vbdev_error_get_error_type` (which does this properly) to guard against illegal access. Change-Id: Idf66946a89866458b233aa08f296060eb77f5f0f Signed-off-by:Nathan Claudel <nathan.claudel@kalrayinc.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22167 Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot