[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

Roland Dreier rdreier at cisco.com
Tue Aug 4 09:27:23 PDT 2009


 > 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?



More information about the general mailing list