OSDN Git Service

target/iscsi: Fix iSCSI task reassignment handling
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 5 Jan 2017 11:39:57 +0000 (12:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Nov 2017 10:22:25 +0000 (11:22 +0100)
commitff49271816665c0567d655bfeca695a9c8fb6919
treeda24ef8070e934ee5c2631c3fde1cb78b1af6303
parente7c9ca5a3f4674c0c531a983ae28d099156d0d54
target/iscsi: Fix iSCSI task reassignment handling

commit 59b6986dbfcdab96a971f9663221849de79a7556 upstream.

Allocate a task management request structure for all task management
requests, including task reassignment. This change avoids that the
se_tmr->response assignment dereferences an uninitialized se_tmr
pointer.

Reported-by: Moshe David <mdavid@infinidat.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Moshe David <mdavid@infinidat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/iscsi/iscsi_target.c
include/target/target_core_base.h