[ofa-general] Re: [PATCH 2.6.30.4] Fix for NULL pointer dereference by SRP initiator triggered by a SCSI reset after the SRP connection has been closed

Bart Van Assche bart.vanassche at gmail.com
Tue Aug 4 11:25:35 PDT 2009


On Tue, Aug 4, 2009 at 6:27 PM, Roland Dreier <rdreier at cisco.com> wrote:
>
>  > An update: apparently it is possible to trigger scmnd->device == NULL even
>  > without triggering a prior IB CM disconnect. The following shell commands
>  > are sufficient to trigger the WARN_ON statement in the patch below:
>
>  > rmmod ib_srp
>  > modprobe ib_srp
>  > ibsrpdm -c | while read target_info; do echo "${target_info}"; echo
>  > "${target_info}" >/sys/class/infiniband_srp/srp-mlx4_0-1/add_target;
>  > done
>  > sg_reset -d ${srp_device}
>
> So in other words, just sg_reset on an SRP device triggers the warning?

By the way, Vladislav Bolkhovitin was so kind to inform me that this
issue is not specific to the SRP initiator. For more information, see
also http://thread.gmane.org/gmane.linux.scsi/26166.

Bart.



More information about the general mailing list