Repository navigation
Commit d444edc
Nicholas Bellinger
iscsi-target: Fix ERL=2 ASYNC_EVENT connection pointer bug
This patch fixes a long-standing bug in iscsit_build_conn_drop_async_message()
where during ERL=2 connection recovery, a bogus conn_p pointer could
end up being used to send the ISCSI_OP_ASYNC_EVENT + DROPPING_CONNECTION
notifying the initiator that cmd->logout_cid has failed.
The bug was manifesting itself as an OOPs in iscsit_allocate_cmd() with
a bogus conn_p pointer in iscsit_build_conn_drop_async_message().
Reported-by: Arshad Hussain <arshad.hussain@calsoftinc.com>
Reported-by: santosh kulkarni <santosh.kulkarni@calsoftinc.com>
Cc: <stable@vger.kernel.org> raspberrypi#3.1+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>1 parent f225225 commit d444edc
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2491 | 2491 | | |
2492 | 2492 | | |
2493 | 2493 | | |
| 2494 | + | |
2494 | 2495 | | |
2495 | 2496 | | |
2496 | 2497 | | |
| |||
2499 | 2500 | | |
2500 | 2501 | | |
2501 | 2502 | | |
| 2503 | + | |
2502 | 2504 | | |
2503 | 2505 | | |
2504 | 2506 | | |
2505 | 2507 | | |
2506 | | - | |
| 2508 | + | |
2507 | 2509 | | |
2508 | 2510 | | |
2509 | 2511 | | |
| |||
0 commit comments