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

(cherry picked from commit 36a87d0c6fe9d65de23f177ef84000b205f87e39)

Details

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