linux/drivers/net/wireless/ath/wil6210
Gustavo A. R. Silva bfabdd6997 wil6210: fix potential out-of-bounds read
Notice that *rc* can evaluate to up to 5, include/linux/netdevice.h:

enum gro_result {
        GRO_MERGED,
        GRO_MERGED_FREE,
        GRO_HELD,
        GRO_NORMAL,
        GRO_DROP,
        GRO_CONSUMED,
};
typedef enum gro_result gro_result_t;

In case *rc* evaluates to 5, we end up having an out-of-bounds read
at drivers/net/wireless/ath/wil6210/txrx.c:821:

	wil_dbg_txrx(wil, "Rx complete %d bytes => %s\n",
		     len, gro_res_str[rc]);

Fix this by adding element "GRO_CONSUMED" to array gro_res_str.

Addresses-Coverity-ID: 1444666 ("Out-of-bounds read")
Fixes: 194b482b50 ("wil6210: Debug print GRO Rx result")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-04-29 17:59:40 +03:00
..
boot_loader.h wil6210: fix random failure to bring network interface up 2018-01-25 07:32:23 +02:00
cfg80211.c wil6210: fix return code of wmi_mgmt_tx and wmi_mgmt_tx_ext 2019-04-03 15:44:48 +03:00
debug.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
debugfs.c wil6210: reset buff id in status message after completion 2019-04-03 15:45:17 +03:00
ethtool.c wil6210: initialize TX and RX enhanced DMA rings 2018-07-02 17:24:19 +03:00
fw.c wil6210: support Talyn specific board file 2018-07-31 11:01:26 +03:00
fw.h wil6210: support concurrency record in FW file 2018-02-27 18:50:11 +02:00
fw_inc.c wil6210: print error in FW and board files load failures 2019-04-03 15:45:28 +03:00
interrupt.c wil6210: ignore HALP ICR if already handled 2019-02-28 11:24:59 +02:00
Kconfig wil6210: disable tracing config option 2018-05-12 12:26:47 +03:00
main.c wil6210: prevent access to RGF_CAF_ICR in Talyn 2019-04-03 15:44:58 +03:00
Makefile wil6210: initialize TX and RX enhanced DMA rings 2018-07-02 17:24:19 +03:00
netdev.c wil6210: check mid is valid 2019-04-03 15:34:47 +03:00
p2p.c wil6210: rename p2p_wdev_mutex to vif_mutex 2018-02-27 18:50:40 +02:00
pcie_bus.c wil6210: check mid is valid 2019-04-03 15:34:47 +03:00
pm.c wil6210: check mid is valid 2019-04-03 15:34:47 +03:00
pmc.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
pmc.h
rx_reorder.c wil6210: support up to 20 stations in AP mode 2019-02-28 11:24:29 +02:00
trace.c
trace.h wil6210: support up to 20 stations in AP mode 2019-02-28 11:24:29 +02:00
txrx.c wil6210: fix potential out-of-bounds read 2019-04-29 17:59:40 +03:00
txrx.h wil6210: accessing 802.3 addresses via utility functions 2019-02-28 11:24:39 +02:00
txrx_edma.c wil6210: reset buff id in status message after completion 2019-04-03 15:45:17 +03:00
txrx_edma.h wil6210: reset buff id in status message after completion 2019-04-03 15:45:17 +03:00
wil6210.h wil6210: reset buff id in status message after completion 2019-04-03 15:45:17 +03:00
wil_crash_dump.c wil6210: prevent device memory access while in reset or suspend 2019-04-03 15:34:04 +03:00
wil_platform.c
wil_platform.h wil6210: add 3-MSI support 2018-07-31 11:00:33 +03:00
wmi.c wil6210: fix return code of wmi_mgmt_tx and wmi_mgmt_tx_ext 2019-04-03 15:44:48 +03:00
wmi.h wil6210: align to latest auto generated wmi.h 2019-04-03 15:33:53 +03:00