Jitendra Bhivare
eb419229be
scsi: be2iscsi: Check tag in beiscsi_mccq_compl_wait
scsi host12: BS_1377 : mgmt_invalidate_connection Failed for cid=256
BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
IP: [<ffffffff81332ebf>] __list_add+0xf/0xc0
PGD 0
Oops: 0000 [#1] SMP
Modules linked in:
...
CPU: 9 PID: 1542 Comm: iscsid Tainted: G ------------ T 3.10.0-514.el7.x86_64 #1
Hardware name: HP ProLiant DL360 Gen9/ProLiant DL360 Gen9, BIOS P89 09/12/2016
task: ffff88076f310fb0 ti: ffff88076bba8000 task.ti: ffff88076bba8000
RIP: 0010:[<ffffffff81332ebf>] [<ffffffff81332ebf>] __list_add+0xf/0xc0
RSP: 0018:ffff88076bbab8e8 EFLAGS: 00010046
RAX: 0000000000000246 RBX: ffff88076bbab990 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff880468badf58 RDI: ffff88076bbab990
RBP: ffff88076bbab900 R08: 0000000000000246 R09: 00000000000020de
R10: 0000000000000000 R11: ffff88076bbab5be R12: 0000000000000000
R13: ffff880468badf58 R14: 000000000001adb0 R15: ffff88076f310fb0
FS: 00007f377124a880(0000) GS:ffff88046fa40000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 0000000771318000 CR4: 00000000001407e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Stack:
ffff88076bbab990 ffff880468badf50 0000000000000001 ffff88076bbab938
ffffffff810b128b 0000000000000246 00000000cf9b7040 ffff880468bac7a0
0000000000000000 ffff880468bac7a0 ffff88076bbab9d0 ffffffffa05a6ea3
Call Trace:
[<ffffffff810b128b>] prepare_to_wait+0x7b/0x90
[<ffffffffa05a6ea3>] beiscsi_mccq_compl_wait+0x153/0x330 [be2iscsi]
[<ffffffff810b1600>] ? wake_up_atomic_t+0x30/0x30
[<ffffffffa05981b1>] beiscsi_ep_disconnect+0x91/0x2d0 [be2iscsi]
[<ffffffffa0202ffa>] iscsi_if_ep_disconnect.isra.14+0x5a/0x70 [scsi_transport_iscsi]
[<ffffffffa02042fb>] iscsi_if_recv_msg+0x113b/0x14a0 [scsi_transport_iscsi]
[<ffffffff811dffd8>] ? __kmalloc_node_track_caller+0x58/0x290
[<ffffffffa02046ee>] iscsi_if_rx+0x8e/0x1f0 [scsi_transport_iscsi]
[<ffffffff815a351d>] netlink_unicast+0xed/0x1b0
[<ffffffff815a38fe>] netlink_sendmsg+0x31e/0x690
[<ffffffff815a03e4>] ? netlink_rcv_wake+0x44/0x60
[<ffffffff815a19e3>] ? netlink_recvmsg+0x1e3/0x450
beiscsi_mccq_compl_wait gets called even when MCC tag allocation failed
for mgmt_invalidate_connection. mcc_wait is not initialized for tag 0
so causes crash in prepare_to_wait.
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-03-27 22:03:04 -04:00
..
2017-03-07 14:47:24 -08:00
2017-03-02 08:42:29 +01:00
2017-03-03 21:36:56 -08:00
2017-03-02 08:42:32 +01:00
2017-03-03 11:38:56 -08:00
2017-03-10 11:05:47 -08:00
2017-02-19 00:26:37 +01:00
2017-02-23 15:57:04 -08:00
2017-02-17 14:08:19 -07:00
2017-03-11 09:08:47 -08:00
2017-03-03 16:15:48 -08:00
2017-03-02 08:42:27 +01:00
2017-03-09 15:12:27 +01:00
2017-03-03 10:16:38 -08:00
2017-03-09 17:01:09 -08:00
2017-03-02 08:42:40 +01:00
2017-02-27 18:43:47 -08:00
2017-03-02 08:42:40 +01:00
2017-03-02 08:42:32 +01:00
2017-02-20 12:47:44 -08:00
2017-02-27 18:43:46 -08:00
2017-02-28 20:29:41 -08:00
2017-03-07 14:25:48 -08:00
2017-02-23 08:46:04 -08:00
2017-03-10 09:53:00 -08:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-09 17:01:09 -08:00
2017-02-27 18:43:47 -08:00
2017-02-24 17:46:54 -08:00
2017-03-09 16:41:48 +01:00
2017-03-02 08:42:36 +01:00
2017-03-02 17:41:27 -08:00
2017-03-04 11:26:18 -08:00
2017-03-02 08:42:40 +01:00
2017-03-01 10:01:56 -08:00
2017-03-02 08:42:28 +01:00
2017-03-09 12:06:41 +01:00
2017-03-09 17:01:09 -08:00
2017-03-02 08:42:27 +01:00
2017-03-02 08:42:32 +01:00
2017-03-10 14:17:23 +11:00
2017-03-02 08:42:32 +01:00
2017-03-09 17:01:10 -08:00
2017-03-10 08:34:42 -08:00
2017-02-23 15:57:04 -08:00
2017-02-17 14:08:19 -07:00
2017-02-21 11:51:42 -08:00
2017-02-22 12:14:01 -08:00
2017-03-09 11:48:47 -08:00
2017-03-02 08:42:27 +01:00
2017-03-09 17:01:09 -08:00
2017-03-09 17:01:09 -08:00
2017-02-27 18:43:47 -08:00
2017-03-01 00:49:42 -08:00
2017-03-03 10:53:35 -08:00
2017-02-22 19:23:14 -08:00
2017-03-02 08:42:40 +01:00
2017-03-03 16:20:06 -08:00
2017-03-02 08:42:32 +01:00
2017-03-07 14:23:30 -06:00
2017-03-02 08:42:27 +01:00
2017-02-23 11:53:22 -08:00
2017-03-06 14:38:05 +01:00
2017-03-13 13:23:43 -07:00
2017-02-27 18:43:47 -08:00
2017-03-02 08:42:29 +01:00
2017-02-22 18:22:53 -08:00
2017-03-01 09:46:02 -08:00
2017-02-27 18:43:45 -08:00
2017-02-20 17:23:57 -08:00
2017-03-02 13:53:13 -08:00
2017-02-23 15:57:04 -08:00
2017-03-02 13:53:13 -08:00
2017-03-02 08:42:32 +01:00
2017-03-03 10:16:38 -08:00
2017-03-27 22:03:04 -04:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:27 +01:00
2017-03-08 09:45:07 +01:00
2017-03-03 10:16:38 -08:00
2017-03-02 08:42:27 +01:00
2017-03-07 19:58:37 +01:00
2017-03-02 08:42:32 +01:00
2017-03-11 00:08:39 -08:00
2017-03-02 08:42:29 +01:00
2017-03-03 10:16:38 -08:00
2017-03-03 01:45:16 +01:00
2017-03-03 10:16:38 -08:00
2017-03-02 08:42:29 +01:00
2017-03-01 06:15:10 -08:00
2017-03-09 12:23:30 -08:00
2017-02-23 11:53:22 -08:00