⬢ DragonFlyBSD Kernel Audit
DF-4351 / run.log
← back to finding ↓ download raw
DF-4351 model: device-fed status bytes -> panic() predicates
site 1: advansys.c:1092-1094 (q_status from LRAM, unmasked)
site 2: advansys.c:1235-1237 (host_stat from LRAM)

q_status byte | outcome at site 1
-------------+------------------------------------
  0x80        | ok
  0xC0        | ok
  0x82        | PANIC  (adv_qdone: completed scsiq with unknown status)   <-- legitimate ABI bits
  0x84        | PANIC  (adv_qdone: completed scsiq with unknown status)   <-- legitimate ABI bits
  0x01        | PANIC  (adv_qdone: completed scsiq with unknown status)
  0x08        | PANIC  (adv_qdone: completed scsiq with unknown status)
  0x00        | PANIC  (adv_qdone: completed scsiq with unknown status)
  0xFF        | ok
  0x55        | ok

host_stat    | outcome at site 2
------------+------------------------------------
  0x00 QHSTA_NO_ERROR                         | ok (translated to CAM status)
  0x11 QHSTA_M_SEL_TIMEOUT                    | ok (translated to CAM status)
  0x12 QHSTA_M_DATA_OVER_RUN                  | ok (translated to CAM status)
  0x13 QHSTA_M_UNEXPECTED_BUS_FREE            | ok (translated to CAM status)
  0x14 QHSTA_M_BAD_BUS_PHASE_SEQ              | ok (translated to CAM status)
  0x21 QHSTA_D_QDONE_SG_LIST_CORRUPTED        | PANIC  (Unhandled Host status error)
  0x22 QHSTA_D_ASC_DVC_ERROR_CODE_SET         | PANIC  (Unhandled Host status error)
  0x23 QHSTA_D_HOST_ABORT_FAILED              | PANIC  (Unhandled Host status error)
  0x24 QHSTA_D_EXE_SCSI_Q_FAILED              | PANIC  (Unhandled Host status error)
  0x26 QHSTA_D_ASPI_NO_BUF_POOL               | PANIC  (Unhandled Host status error)
  0x41 QHSTA_M_WTM_TIMEOUT                    | ok (translated to CAM status)
  0x42 QHSTA_M_BAD_CMPL_STATUS_IN             | ok (translated to CAM status)
  0x43 QHSTA_M_NO_AUTO_REQ_SENSE              | ok (translated to CAM status)
  0x44 QHSTA_M_AUTO_REQ_SENSE_FAIL            | ok (translated to CAM status)
  0x45 QHSTA_M_TARGET_STATUS_BUSY             | ok (translated to CAM status)
  0x46 QHSTA_M_BAD_TAG_CODE                   | PANIC  (Unhandled Host status error)
  0x47 QHSTA_M_BAD_QUEUE_FULL_OR_BUSY         | ok (translated to CAM status)
  0x48 QHSTA_M_HUNG_REQ_SCSI_BUS_RESET        | ok (translated to CAM status)
  0x81 QHSTA_D_LRAM_CMP_ERROR                 | PANIC  (Unhandled Host status error)
  0xA1 QHSTA_M_MICRO_CODE_ERROR_HALT          | PANIC  (Unhandled Host status error)
  0xEE <undefined firmware code>              | PANIC  (Unhandled Host status error)

14/30 tabulated device-fed values lead to kernel panic
PANIC-ON-DEVICE-STATUS CONFIRMED (model; predicates are verbatim advansys.c:1092-1094 / :1235-1237)