On Fri, 15 Apr 2022 12:42:29 +0000, Chesnokov Gleb wrote: > Aborting commands that have already been sent to the firmware can > cause BUG in qlt_free_cmd(): BUG_ON(cmd->sg_mapped) > > For instance: > - command passes rdx_to_xfer state, maps sgl, sends to the > fimware > - reset occurs, qla2xxx performs ISP error recovery, > aborts the command > - target stack calls qlt_abort_cmd() and then qlt_free_cmd() > - BUG_ON(cmd->sg_mapped) in qlt_free_cmd() occurs because sgl was not > unmapped > > [...] Applied to 5.18/scsi-fixes, thanks! [2/2] qla2xxx: Fix missed DMA unmap for aborted cmds https://git.kernel.org/mkp/scsi/c/26f9ce53817a -- Martin K. Petersen Oracle Linux Engineering