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:11:07 +0000 (11:11 +0100)
commit4063c209334911c61fa3807dbe4e7a9c81361b8d
tree99ce4f4b4cde643dce0314807c37a9eaea3f2a82
parent7ecc076a5d51776c7057ef57277badfd373f454d
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