Michael J. Ruhl
9eb8b278cb
IB/hfi1: Incorrect sizing of sge for PIO will OOPs
commit dbc2970cae upstream.
An incorrect sge sizing in the HFI PIO path will cause an OOPs similar to
this:
BUG: unable to handle kernel NULL pointer dereference at (null)
IP: [] hfi1_verbs_send_pio+0x3d8/0x530 [hfi1]
PGD 0
Oops: 0000 1 SMP
Call Trace:
? hfi1_verbs_send_dma+0xad0/0xad0 [hfi1]
hfi1_verbs_send+0xdf/0x250 [hfi1]
? make_rc_ack+0xa80/0xa80 [hfi1]
hfi1_do_send+0x192/0x430 [hfi1]
hfi1_do_send_from_rvt+0x10/0x20 [hfi1]
rvt_post_send+0x369/0x820 [rdmavt]
ib_uverbs_post_send+0x317/0x570 [ib_uverbs]
ib_uverbs_write+0x26f/0x420 [ib_uverbs]
? security_file_permission+0x21/0xa0
vfs_write+0xbd/0x1e0
? mntput+0x24/0x40
SyS_write+0x7f/0xe0
system_call_fastpath+0x16/0x1b
Fix by adding the missing sizing check to correctly determine the sge
length.
Fixes: 7724105686 ("IB/hfi1: add driver files")
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-09 17:14:46 +01:00
..
2017-11-02 11:10:55 +01:00
2018-12-17 09:28:53 +01:00
2018-05-01 12:58:21 -07:00
2018-12-05 19:41:26 +01:00
2018-12-21 14:13:15 +01:00
2018-07-22 14:28:43 +02:00
2018-07-03 11:24:56 +02:00
2018-12-01 09:42:59 +01:00
2017-11-02 11:10:55 +01:00
2018-12-01 09:42:53 +01:00
2018-11-13 11:14:54 -08:00
2018-12-01 09:42:49 +01:00
2018-11-21 09:24:04 +01:00
2018-11-13 11:15:02 -08:00
2018-12-21 14:13:14 +01:00
2018-11-21 09:24:11 +01:00
2018-12-01 09:42:53 +01:00
2018-07-03 11:24:51 +02:00
2018-11-13 11:14:59 -08:00
2018-08-24 13:09:08 +02:00
2018-04-12 12:32:13 +02:00
2017-11-02 11:10:55 +01:00
2018-12-13 09:18:52 +01:00
2018-06-05 11:41:57 +02:00
2018-11-13 11:15:06 -08:00
2017-11-02 11:10:55 +01:00
2018-09-09 19:55:56 +02:00
2018-04-26 11:02:03 +02:00
2018-12-01 09:42:54 +01:00
2017-11-02 11:10:55 +01:00
2018-05-01 12:58:24 -07:00
2017-08-28 17:15:16 +02:00
2018-12-29 13:39:09 +01:00
2018-12-29 13:39:11 +01:00
2018-12-21 14:13:11 +01:00
2017-11-02 11:10:55 +01:00
2018-12-29 13:39:10 +01:00
2018-12-17 09:28:49 +01:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:14:59 -08:00
2018-12-21 14:13:18 +01:00
2018-12-21 14:13:14 +01:00
2018-08-09 12:16:39 +02:00
2018-12-17 09:28:49 +01:00
2019-01-09 17:14:46 +01:00
2018-12-21 14:13:15 +01:00
2018-12-13 09:18:50 +01:00
2018-09-15 09:45:29 +02:00
2019-01-09 17:14:43 +01:00
2018-03-19 08:42:50 +01:00
2018-11-13 11:14:52 -08:00
2018-09-19 22:43:41 +02:00
2018-09-09 19:55:54 +02:00
2017-11-02 11:10:55 +01:00
2018-12-21 14:13:06 +01:00
2018-12-13 09:18:45 +01:00
2018-08-03 07:50:38 +02:00
2017-11-02 11:10:55 +01:00
2018-05-25 16:17:47 +02:00
2018-11-13 11:15:00 -08:00
2018-12-05 19:41:26 +01:00
2018-12-29 13:39:09 +01:00
2018-12-13 09:18:49 +01:00
2018-01-17 09:45:27 +01:00
2019-01-09 17:14:46 +01:00
2018-12-01 09:42:54 +01:00
2018-04-26 11:02:13 +02:00
2017-11-02 11:10:55 +01:00
2018-12-13 09:18:54 +01:00
2018-12-21 14:13:18 +01:00
2018-08-24 13:09:14 +02:00
2018-12-01 09:42:54 +01:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:52:28 +02:00
2018-09-26 08:38:12 +02:00
2018-12-17 09:28:49 +01:00
2018-11-13 11:14:46 -08:00
2018-10-18 09:16:24 +02:00
2018-08-15 18:12:48 +02:00
2018-12-21 14:13:04 +01:00
2018-11-27 16:10:47 +01:00
2017-11-02 11:10:55 +01:00
2018-12-01 09:42:55 +01:00
2017-09-08 18:26:51 -07:00
2018-11-10 07:48:34 -08:00
2018-09-15 09:45:27 +02:00
2017-12-14 09:53:08 +01:00
2017-11-02 11:10:55 +01:00
2018-10-03 17:00:55 -07:00
2018-06-21 04:02:48 +09:00
2018-12-08 13:03:40 +01:00
2018-11-13 11:15:12 -08:00
2018-12-21 14:13:18 +01:00
2018-12-13 09:18:51 +01:00
2018-12-21 14:13:13 +01:00
2018-12-29 13:39:09 +01:00
2017-11-02 11:10:55 +01:00
2018-11-21 09:24:09 +01:00
2018-12-29 13:39:11 +01:00
2017-08-28 13:52:22 +02:00
2017-11-02 11:10:55 +01:00
2018-12-17 09:28:55 +01:00
2018-10-18 09:16:21 +02:00
2018-11-13 11:15:11 -08:00
2018-06-21 04:02:54 +09:00
2018-12-08 13:03:40 +01:00
2018-04-24 09:36:29 +02:00
2018-12-21 14:13:13 +01:00
2018-11-27 16:10:51 +01:00
2018-12-29 13:39:09 +01:00
2018-10-03 17:00:46 -07:00
2018-08-03 07:50:23 +02:00
2019-01-09 17:14:45 +01:00
2018-11-21 09:24:08 +01:00
2017-08-29 08:52:51 -05:00
2018-10-13 09:27:30 +02:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:15:09 -08:00
2018-08-03 07:50:24 +02:00
2018-12-17 09:28:53 +01:00
2018-05-30 07:52:30 +02:00
2017-11-02 11:10:55 +01:00
2018-02-25 11:07:53 +01:00