Re: [PATCH v3] scsi: aic79xx: Fix NULL pointer dereference in device reset
From: Martin K. Petersen (Oracle)
Date: Fri Oct 30 2026 - 21:40:59 EST
On Mon, 26 Oct 2026 10:20:32 -0700, Andrew Luebke wrote:
> Since commit c67e63800446 ("scsi: aic79xx: Do not reference SCSI command
> when resetting device") the device reset SCB has no SCSI command, but
> ahd_linux_dev_reset() still sets its residual, and ahd_abort_scbs(),
> which completes it, sets its status. Seen on an AIC-7902 when a failing
> disk triggered a device reset, which killed the SCSI error handler:
>
> BUG: kernel NULL pointer dereference, address: 0000009c
> EIP: ahd_linux_dev_reset.cold+0xee/0x26e
>
> [...]
Applied to 7.4/scsi-queue, thanks!
[1/1] scsi: aic79xx: Fix NULL pointer dereference in device reset
https://git.kernel.org/mkp/scsi/c/f057a8bfeb6f
--
Martin K. Petersen