]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r349284: Make ELEMENT INDEX validation more strict.
authorAlexander Motin <mav@FreeBSD.org>
Sun, 7 Jul 2019 18:31:53 +0000 (18:31 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sun, 7 Jul 2019 18:31:53 +0000 (18:31 +0000)
commit489554c3aa799d5eb889ccc6d0d15d7935f00594
treeda43896a6d16444bdb4bb81de7c0100a9b7941c8
parent89d95082b1f783e205fb5bebe2eb35e36e3be5c8
MFC r349284: Make ELEMENT INDEX validation more strict.

SES specifications tell: "The Additional Element Status descriptors shall
be in the same order as the status elements in the Enclosure Status
diagnostic page".  It allows us to question ELEMENT INDEX that is lower
then values we already processed.  There are many SAS2 enclosures with
this kind of problem.

While there, add more specific error messages for cases when ELEMENT INDEX
is obviously wrong.  Also skip elements with INVALID bit set.
sys/cam/scsi/scsi_enc_ses.c