Gustavo A. R. Silva
676bcfece1
net: cxgb3_main: fix potential Spectre v1
...
t.qset_idx can be indirectly controlled by user-space, hence leading to
a potential exploitation of the Spectre variant 1 vulnerability.
This issue was detected with the help of Smatch:
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:2286 cxgb_extension_ioctl()
warn: potential spectre issue 'adapter->msix_info'
Fix this by sanitizing t.qset_idx before using it to index
adapter->msix_info
Notice that given that speculation windows are large, the policy is
to kill the speculation on the first load and not worry if it can be
completed with a dependent load/store [1].
[1] https://marc.info/?l=linux-kernel&m=152449131114778&w=2
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-07-18 13:31:15 -07:00
..
2018-06-25 21:30:12 +08:00
2018-06-06 13:49:25 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-30 21:24:18 +09:00
2018-06-12 16:19:22 -07:00
2018-06-25 09:41:37 +02:00
2018-06-04 10:58:12 -07:00
2018-06-30 10:47:46 -07:00
2018-06-17 08:38:55 +09:00
2018-06-12 18:28:00 -07:00
2018-06-12 16:19:22 -07:00
2018-06-28 10:40:47 -07:00
2018-06-15 18:10:01 -03:00
2018-06-24 19:16:42 +08:00
2018-06-06 18:39:49 -07:00
2018-06-24 23:00:36 +02:00
2018-06-07 10:23:33 -07:00
2018-06-24 06:31:54 +08:00
2018-06-28 16:06:08 -04:00
2018-06-12 16:19:22 -07:00
2018-06-15 18:10:01 -03:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-22 10:58:27 +02:00
2018-06-12 16:19:22 -07:00
2018-05-25 18:23:56 +02:00
2018-06-12 16:19:22 -07:00
2018-06-30 10:47:46 -07:00
2018-06-20 16:42:39 +09:00
2018-06-12 16:19:22 -07:00
2018-06-16 16:40:36 -07:00
2018-06-11 12:09:19 -07:00
2018-06-12 16:19:22 -07:00
2018-06-29 08:23:12 +02:00
2018-06-12 16:19:22 -07:00
2018-06-24 14:50:52 +01:00
2018-06-28 16:21:35 +09:00
2018-06-27 09:16:53 -07:00
2018-06-12 18:28:00 -07:00
2018-06-12 16:19:22 -07:00
2018-06-22 14:22:02 +02:00
2018-06-28 10:40:47 -07:00
2018-06-12 16:19:22 -07:00
2018-06-24 06:33:54 +08:00
2018-06-07 10:23:33 -07:00
2018-06-12 16:19:22 -07:00
2018-07-02 12:40:59 -07:00
2018-06-26 11:28:38 +02:00
2018-06-12 18:28:00 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-14 16:21:46 +09:00
2018-06-14 16:21:46 +09:00
2018-06-12 16:19:22 -07:00
2018-06-22 18:47:56 +02:00
2018-07-18 13:31:15 -07:00
2018-06-25 21:36:45 +08:00
2018-06-12 18:28:00 -07:00
2018-06-05 16:20:22 -07:00
2018-06-28 16:05:59 -04:00
2018-06-28 16:29:54 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 18:28:00 -07:00
2018-06-19 15:53:32 +05:30
2018-06-12 16:19:22 -07:00
2018-06-04 10:58:12 -07:00
2018-06-15 18:10:01 -03:00
2018-06-26 15:37:37 -05:00
2018-06-12 16:19:22 -07:00
2018-06-18 17:48:42 +01:00
2018-06-06 18:39:49 -07:00
2018-06-18 07:55:57 +02:00
2018-06-15 18:10:01 -03:00
2018-06-07 12:34:37 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-20 07:59:53 +09:00
2018-06-14 16:25:43 +09:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-15 07:55:25 +09:00
2018-06-12 18:28:00 -07:00
2018-06-04 12:35:03 -07:00
2018-06-11 07:20:17 -07:00
2018-06-30 21:19:48 +09:00
2018-06-15 18:10:01 -03:00
2018-06-27 09:42:16 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-26 10:42:31 -07:00
2018-06-15 18:11:26 -03:00
2018-06-12 16:19:22 -07:00
2018-07-01 12:20:20 -07:00
2018-06-18 21:02:52 -04:00
2018-06-12 18:28:00 -07:00
2018-06-28 21:34:39 +09:00
2018-06-12 16:19:22 -07:00
2018-06-28 19:19:10 +09:00
2018-06-12 16:19:22 -07:00
2018-06-12 13:11:26 -07:00
2018-06-23 10:23:49 +09:00
2018-06-17 05:25:18 +09:00
2018-06-12 16:19:22 -07:00
2018-06-16 06:35:02 +09:00
2018-06-05 16:20:22 -07:00
2018-06-12 12:56:02 -07:00
2018-06-23 20:44:11 +08:00
2018-06-06 17:27:14 -07:00