Quinn Tran
921d439c67
qla2xxx: Fix stale pointer access.
...
commit cb43285ff7 upstream.
[ Upstream Commit 84e32a06f4 ]
Commit 84e32a0 ("qla2xxx: Use pci_enable_msix_range() instead of
pci_enable_msix()") introduced a regression when target mode is enabled.
In qla24xx_enable_msix(), ha->max_rsp_queues was incorrectly set
to a value higher than the number of response queues allocated causing
an invalid dereference. Specifically here in qla2x00_init_rings():
*rsp->in_ptr = 0;
Add additional check to make sure the pointer is valid. following
call stack will be seen
---- 8< ----
RIP: 0010:[<ffffffffa02ccadc>] [<ffffffffa02ccadc>] qla2x00_init_rings+0xdc/0x320 [qla2xxx]
RSP: 0018:ffff880429447dd8 EFLAGS: 00010082
....
Call Trace:
[<ffffffffa02ceb40>] qla2x00_abort_isp+0x170/0x6b0 [qla2xxx]
[<ffffffffa02c6f77>] qla2x00_do_dpc+0x357/0x7f0 [qla2xxx]
[<ffffffffa02c6c20>] ? qla2x00_relogin+0x260/0x260 [qla2xxx]
[<ffffffff8107d2c9>] kthread+0xc9/0xe0
[<ffffffff8107d200>] ? flush_kthread_worker+0x90/0x90
[<ffffffff8172cc6f>] ret_from_fork+0x3f/0x70
[<ffffffff8107d200>] ? flush_kthread_worker+0x90/0x90
---- 8< ----
Signed-off-by: Quinn Tran <quinn.tran@qlogic.com >
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com >
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-03-03 15:07:27 -08:00
..
2015-11-09 16:12:56 -08:00
2015-11-09 17:11:57 -08:00
2015-11-12 07:06:18 -05:00
2015-09-08 14:35:59 -07:00
2015-05-31 18:06:28 -07:00
2015-11-12 07:06:18 -05:00
2015-11-09 17:11:57 -08:00
2015-11-09 17:32:34 -08:00
2015-06-02 17:15:24 -07:00
2015-11-09 17:11:57 -08:00
2015-11-09 15:11:24 -08:00
2015-10-30 17:25:34 +09:00
2016-02-25 12:01:16 -08:00
2015-11-09 17:11:57 -08:00
2015-11-09 17:11:57 -08:00
2015-11-09 17:11:57 -08:00
2015-11-12 07:06:18 -05:00
2015-11-12 07:06:18 -05:00
2015-11-09 17:15:52 -08:00
2015-03-24 17:08:29 -07:00
2015-11-09 17:11:57 -08:00
2015-11-12 07:06:18 -05:00
2015-12-03 09:32:33 -08:00
2015-12-03 09:32:33 -08:00
2015-04-14 09:50:27 -07:00
2015-05-31 18:06:28 -07:00
2015-11-12 07:06:18 -05:00
2016-03-03 15:07:27 -08:00
2015-11-13 20:35:54 -08:00
2015-11-13 20:35:54 -08:00
2014-11-24 14:45:27 +01:00
2015-11-12 07:06:18 -05:00
2015-10-07 10:24:48 -07:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
2015-04-27 10:05:55 -07:00
2015-11-09 17:11:57 -08:00
2015-08-07 15:03:42 +02:00
2013-11-26 11:09:07 +01:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2015-12-03 09:32:33 -08:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-04-09 18:08:31 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-04-17 10:13:56 -07:00
2015-03-09 10:45:26 -04:00
2015-03-09 07:18:14 -04:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-02-02 09:57:45 -08:00
2013-06-26 18:32:47 -07:00
2014-10-20 16:21:33 +02:00
2015-04-14 09:50:27 -07:00
2015-01-09 15:44:31 +01:00
2015-02-02 09:57:46 -08:00
2014-11-20 09:11:11 +01:00
2015-07-31 13:31:10 +02:00
2014-07-17 22:07:37 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2015-02-02 09:57:45 -08:00
2014-11-24 14:45:27 +01:00
2015-11-09 17:11:57 -08:00
2014-11-24 16:13:16 +01:00
2015-05-31 18:06:28 -07:00
2015-11-09 16:32:14 -08:00
2015-03-09 10:45:26 -04:00
2014-11-20 09:11:10 +01:00
2015-02-02 09:57:45 -08:00
2014-11-24 20:01:40 +01:00
2013-11-26 11:09:07 +01:00
2015-12-03 09:32:33 -08:00
2015-11-09 12:39:28 -05:00
2015-12-03 09:32:33 -08:00
2015-11-09 12:39:28 -05:00
2015-08-12 13:14:57 -07:00
2015-08-12 13:14:57 -07:00
2015-05-31 18:06:28 -07:00
2015-02-02 09:57:46 -08:00
2015-05-31 18:06:28 -07:00
2015-11-12 07:06:18 -05:00
2015-11-09 19:32:41 -05:00
2015-06-02 17:24:54 -07:00
2014-03-15 10:19:19 -07:00
2014-11-24 14:45:27 +01:00
2014-04-11 16:15:36 -04:00
2014-10-20 16:21:33 +02:00
2015-12-03 09:32:33 -08:00
2014-03-15 10:19:18 -07:00
2015-09-17 07:25:02 -07:00
2015-05-31 18:06:28 -07:00
2014-10-20 16:21:33 +02:00
2015-03-09 07:18:14 -04:00
2015-11-11 19:50:11 -05:00
2015-08-26 07:23:04 -07:00
2014-03-27 08:26:31 -07:00
2015-03-23 14:29:40 +11:00
2014-10-20 16:21:33 +02:00
2015-11-11 20:45:23 -05:00
2014-11-24 14:45:27 +01:00
2014-07-17 22:07:35 +02:00
2015-05-31 18:06:28 -07:00
2015-03-09 10:45:26 -04:00
2014-11-20 09:11:20 +01:00
2015-05-31 18:06:28 -07:00
2014-11-24 20:01:28 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2015-11-12 07:06:18 -05:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-07-23 22:53:05 -07:00
2015-11-25 21:38:53 -05:00
2016-02-25 12:01:16 -08:00
2015-10-27 15:03:31 +09:00
2015-11-06 17:50:42 -08:00
2014-11-12 11:16:12 +01:00
2015-11-06 17:50:42 -08:00
2015-02-04 08:00:24 -08:00
2014-11-12 11:16:05 +01:00
2014-04-24 13:44:54 -04:00
2015-12-10 12:24:44 -05:00
2015-10-27 11:22:37 +09:00
2015-02-02 09:57:46 -08:00
2015-12-03 09:32:33 -08:00
2014-06-06 16:08:16 -07:00
2016-02-25 12:01:17 -08:00
2015-02-02 09:57:46 -08:00
2015-04-10 07:40:32 -07:00
2015-09-02 12:22:54 -07:00
2015-09-06 11:13:41 -07:00
2015-08-07 14:28:45 +02:00
2015-07-14 13:20:09 -04:00
2015-11-09 17:11:57 -08:00
2014-11-12 11:15:54 +01:00
2015-10-21 14:42:38 -06:00
2016-03-03 15:07:26 -08:00
2015-11-25 21:38:58 -05:00
2015-12-11 11:05:57 -08:00
2016-02-25 12:01:16 -08:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2015-01-20 19:43:24 +01:00
2014-07-17 22:07:39 +02:00
2016-02-25 12:01:16 -08:00
2014-11-12 11:15:57 +01:00
2015-12-03 09:32:33 -08:00
2015-06-02 08:03:25 -07:00
2015-11-09 17:42:19 -08:00
2015-11-09 16:29:42 -08:00
2014-05-28 12:16:28 +02:00
2015-03-09 07:18:14 -04:00
2014-11-20 09:11:15 +01:00
2015-08-10 23:07:05 -04:00
2014-10-20 16:21:33 +02:00
2015-05-31 18:06:28 -07:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 14:45:27 +01:00
2015-07-23 13:07:04 -07:00
2014-11-24 14:45:28 +01:00
2014-09-24 11:52:09 -06:00
2015-02-02 09:57:46 -08:00
2015-08-07 14:28:45 +02:00
2015-05-31 18:06:28 -07:00
2015-02-02 09:57:45 -08:00
2015-09-08 18:03:49 +01:00
2013-11-26 11:09:07 +01:00