HomeFreeBSD

nvme: Sanity check completion id

Description

nvme: Sanity check completion id

Make sure the completion ID is in the range of [0..num_trackers) since
the values past the end of the act_tr array are never going to be valid
trackers and will lead to pain and suffering if we try to dereference
them to get the tracker or to set the tracker back to NULL as we
complete the I/O.

Sponsored by: Netflix
Reviewed by: mav, chs, chuck
Differential Revision: https://reviews.freebsd.org/D32088

Details

Provenance
impAuthored on Sep 29 2021, 3:21 AM
Reviewer
mav
Differential Revision
D32088: nvme: Sanity check completion id
Parents
rG587aa25525e5: nvme: count number of ignored interrupts
Branches
Unknown
Tags
Unknown