diff options
author | Bart Van Assche <bvanassche@acm.org> | 2014-05-20 15:03:49 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-07-11 13:33:35 +0100 |
commit | dc2f3db587e548df5fd55a8b420e18ac8c11cb8e (patch) | |
tree | 8c37f5dc67fd4451a084fe662409882a717c8e09 /include | |
parent | 40b81e0d1a79c4770cc353bea225668a74e1493f (diff) | |
download | kernel_samsung_smdk4412-dc2f3db587e548df5fd55a8b420e18ac8c11cb8e.zip kernel_samsung_smdk4412-dc2f3db587e548df5fd55a8b420e18ac8c11cb8e.tar.gz kernel_samsung_smdk4412-dc2f3db587e548df5fd55a8b420e18ac8c11cb8e.tar.bz2 |
IB/srp: Fix a sporadic crash triggered by cable pulling
commit 024ca90151f5e4296d30f72c13ff9a075e23c9ec upstream.
Avoid that the loops that iterate over the request ring can encounter
a pointer to a SCSI command in req->scmnd that is no longer associated
with that request. If the function srp_unmap_data() is invoked twice
for a SCSI command that is not in flight then that would cause
ib_fmr_pool_unmap() to be invoked with an invalid pointer as argument,
resulting in a kernel oops.
Reported-by: Sagi Grimberg <sagig@mellanox.com>
Reference: http://thread.gmane.org/gmane.linux.drivers.rdma/19068/focus=19069
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions