linux_dsm_epyc7002/drivers/net/ethernet/chelsio/cxgb3
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
..
adapter.h
ael1002.c
aq100x.c
common.h
cxgb3_ctl_defs.h
cxgb3_defs.h
cxgb3_ioctl.h
cxgb3_main.c net: cxgb3_main: fix potential Spectre v1 2018-07-18 13:31:15 -07:00
cxgb3_offload.c networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
cxgb3_offload.h
firmware_exports.h
l2t.c networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
l2t.h
Makefile
mc5.c
regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sge_defs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sge.c net: chelsio: Use zeroing memory allocator instead of allocator/memset 2018-06-04 16:07:30 -04:00
t3_cpl.h
t3_hw.c cxgb3: remove VLA usage 2018-03-07 15:55:50 -05:00
t3cdev.h RDMA/cxgb3: Annotate an RCU pointer 2017-10-14 20:47:05 -04:00
version.h
vsc8211.c
xgmac.c