linux/drivers/net/ethernet/intel/ixgbe
Xie XiuQi 3b70683fc4 ixgbe: fix signed-integer-overflow warning
ubsan report this warning, fix it by adding a unsigned suffix.

UBSAN: signed-integer-overflow in
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c:2246:26
65535 * 65537 cannot be represented in type 'int'
CPU: 21 PID: 7 Comm: kworker/u256:0 Not tainted 5.7.0-rc3-debug+ #39
Hardware name: Huawei TaiShan 2280 V2/BC82AMDC, BIOS 2280-V2 03/27/2020
Workqueue: ixgbe ixgbe_service_task [ixgbe]
Call trace:
 dump_backtrace+0x0/0x3f0
 show_stack+0x28/0x38
 dump_stack+0x154/0x1e4
 ubsan_epilogue+0x18/0x60
 handle_overflow+0xf8/0x148
 __ubsan_handle_mul_overflow+0x34/0x48
 ixgbe_fc_enable_generic+0x4d0/0x590 [ixgbe]
 ixgbe_service_task+0xc20/0x1f78 [ixgbe]
 process_one_work+0x8f0/0xf18
 worker_thread+0x430/0x6d0
 kthread+0x218/0x238
 ret_from_fork+0x10/0x18

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2020-05-28 19:56:40 -07:00
..
ixgbe_82598.c
ixgbe_82599.c ixgbe: remove magic constant in ixgbe_reset_hw_82599() 2019-02-05 16:08:54 -08:00
ixgbe_common.c ixgbe: fix signed-integer-overflow warning 2020-05-28 19:56:40 -07:00
ixgbe_common.h
ixgbe_dcb_82598.c
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c
ixgbe_dcb_82599.h
ixgbe_dcb_nl.c
ixgbe_dcb.c
ixgbe_dcb.h
ixgbe_debugfs.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ixgbe_ethtool.c net: ixgbe: reject unsupported coalescing params 2020-03-12 11:32:36 -07:00
ixgbe_fcoe.c ixgbe: Use pci_get_dsn() 2020-03-05 17:36:46 -08:00
ixgbe_fcoe.h
ixgbe_ipsec.c ixgbe: Use kzfree() rather than its implementation. 2019-09-05 12:06:04 +02:00
ixgbe_ipsec.h
ixgbe_lib.c ixgbe: Make use of cpumask_local_spread to improve RSS locality 2019-11-04 13:12:15 -08:00
ixgbe_main.c ixgbe, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL 2020-05-21 17:31:27 -07:00
ixgbe_mbx.c
ixgbe_mbx.h
ixgbe_model.h
ixgbe_phy.c ixgbe: fix mdio bus registration 2019-03-26 16:14:24 -07:00
ixgbe_phy.h ixgbe: Check DDM existence in transceiver before access 2019-06-26 09:18:54 -07:00
ixgbe_ptp.c ixgbe: fix potential u32 overflow on shift 2019-06-28 15:59:38 -07:00
ixgbe_sriov.c ixgbe: Use LLDP ethertype define ETH_P_LLDP 2019-06-05 13:04:29 -07:00
ixgbe_sriov.h
ixgbe_sysfs.c
ixgbe_txrx_common.h ixgbe, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL 2020-05-21 17:31:27 -07:00
ixgbe_type.h ixgbe: implement support for SDP/PPS output on X550 hardware 2019-06-05 13:04:30 -07:00
ixgbe_x540.c
ixgbe_x540.h
ixgbe_x550.c
ixgbe_xsk.c ixgbe, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL 2020-05-21 17:31:27 -07:00
ixgbe.h ixgbe, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL 2020-05-21 17:31:27 -07:00
Makefile