linux/drivers/net/ethernet/stmicro/stmmac
Colin Ian King 44d95cc6b1 net: stmmac: gmac5+: fix potential integer overflow on 32 bit multiply
The multiplication of cfg->ctr[1] by 1000000000 is performed using a
32 bit multiplication (since cfg->ctr[1] is a u32) and this can lead
to a potential overflow. Fix this by making the constant a ULL to
ensure a 64 bit multiply occurs.

Fixes: 504723af0d ("net: stmmac: Add basic EST support for GMAC5+")
Addresses-Coverity: ("Unintentional integer overflow")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-04 11:57:21 -07:00
..
altr_tse_pcs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
altr_tse_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
chain_mode.c
common.h net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
descs_com.h
descs.h net: stmmac: Initial support for TBS 2020-01-13 18:31:48 -08:00
dwmac4_core.c net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
dwmac4_descs.c net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_descs.h net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_dma.c net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_dma.h net: stmmac: gmac4+: Add TBS support 2020-01-13 18:31:48 -08:00
dwmac4_lib.c net: stmmac: use readl_poll_timeout() function in dwmac4_dma_reset() 2020-03-16 02:10:09 -07:00
dwmac4.h net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
dwmac5.c net: stmmac: gmac5+: fix potential integer overflow on 32 bit multiply 2020-05-04 11:57:21 -07:00
dwmac5.h net: stmmac: gmac5+: Add support for Frame Preemption 2019-12-18 12:17:11 -08:00
dwmac100_core.c
dwmac100_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac100.h
dwmac1000_core.c net: stmmac: dwmac1000: fix out-of-bounds mac address reg setting 2020-04-03 15:58:54 -07:00
dwmac1000_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac1000.h
dwmac_dma.h net: stmmac: Let TX and RX interrupts be independently enabled/disabled 2019-12-18 12:14:08 -08:00
dwmac_lib.c net: stmmac: dwmac_lib: remove unnecessary checks in dwmac_dma_reset() 2020-03-19 21:05:27 -07:00
dwmac-anarion.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-dwc-qos-eth.c net: stmmac: dwc-qos: avoid clk and reset for acpi device 2019-12-17 13:55:23 -08:00
dwmac-generic.c
dwmac-intel.c net: stmmac: Enable SERDES power up/down sequence 2020-04-21 15:54:45 -07:00
dwmac-intel.h net: stmmac: Enable SERDES power up/down sequence 2020-04-21 15:54:45 -07:00
dwmac-ipq806x.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-lpc18xx.c
dwmac-mediatek.c net-next: stmmac: mediatek: add more support for RMII 2019-12-17 13:48:30 -08:00
dwmac-meson8b.c net: stmmac: dwmac-meson8b: Add missing boundary to RGMII TX clock array 2020-04-20 11:10:06 -07:00
dwmac-meson.c net: stmmac: dwmac-meson: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
dwmac-oxnas.c
dwmac-qcom-ethqos.c net: stmmac: fix a possible endless loop 2020-02-07 11:23:34 +01:00
dwmac-rk.c net: stmmac: dwmac-rk: fix error path in rk_gmac_probe 2020-03-21 19:58:48 -07:00
dwmac-socfpga.c net: stmmac: fix enabling socfpga's ptp_ref_clock 2020-04-18 15:02:18 -07:00
dwmac-sti.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
dwmac-stm32.c net: ethernet: stmmac: don't warn about missing optional wakeup IRQ 2020-02-24 15:38:46 -08:00
dwmac-sun8i.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-01-09 12:13:43 -08:00
dwmac-sunxi.c net: stmmac: dwmac-sunxi: Provide TX and RX fifo sizes 2020-04-16 13:47:53 -07:00
dwxgmac2_core.c net: stmmac: xgmac: Fix VLAN register handling 2020-04-02 07:04:45 -07:00
dwxgmac2_descs.c net: stmmac: xgmac: Add TBS support 2020-01-13 18:31:48 -08:00
dwxgmac2_dma.c net: stmmac: xgmac: Add TBS support 2020-01-13 18:31:48 -08:00
dwxgmac2.h net: stmmac: xgmac: Add TBS support 2020-01-13 18:31:48 -08:00
dwxlgmac2.h net: stmmac: Add support for Enterprise MAC version 2020-03-17 21:37:25 -07:00
enh_desc.c
hwif.c net: stmmac: Add support for Enterprise MAC version 2020-03-17 21:37:25 -07:00
hwif.h net: stmmac: Add support for VLAN Rx filtering 2020-03-30 10:36:44 -07:00
Kconfig net: stmmac: create dwmac-intel.c to contain all Intel platform 2020-03-30 20:10:34 -07:00
Makefile net: stmmac: create dwmac-intel.c to contain all Intel platform 2020-03-30 20:10:34 -07:00
mmc_core.c net: stmmac: mmc: Add Frame Preemption counters on GMAC5+ cores 2019-12-18 12:17:11 -08:00
mmc.h net: stmmac: xgmac: Implement MMC counters 2019-08-08 22:20:18 -07:00
norm_desc.c
ring_mode.c
stmmac_ethtool.c stmmac: let core reject the unsupported coalescing parameters 2020-03-05 12:12:34 -08:00
stmmac_hwtstamp.c net: stmmac: Fix sub-second increment 2020-04-18 15:02:18 -07:00
stmmac_main.c stmmac: fix pointer check after utilization in stmmac_interrupt 2020-05-04 10:33:53 -07:00
stmmac_mdio.c net: stmmac: Integrate it with DesignWare XPCS 2020-03-09 20:13:16 -07:00
stmmac_pci.c net: stmmac: create dwmac-intel.c to contain all Intel platform 2020-03-30 20:10:34 -07:00
stmmac_pcs.h
stmmac_platform.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
stmmac_platform.h
stmmac_ptp.c net: reject PTP periodic output requests with unsupported flags 2019-11-15 12:48:32 -08:00
stmmac_ptp.h
stmmac_selftests.c net: sched: rename more stats_types 2020-03-23 20:54:23 -07:00
stmmac_tc.c net: rename flow_action_hw_stats_types* -> flow_action_hw_stats* 2020-03-17 21:12:39 -07:00
stmmac.h net: stmmac: Initial support for TBS 2020-01-13 18:31:48 -08:00