OpenCloudOS-Kernel/drivers/net
Hangbin Liu 9949e2efb5 bonding: fix send_peer_notif overflow
Bonding send_peer_notif was defined as u8. Since commit 07a4ddec3c
("bonding: add an option to specify a delay between peer notifications").
the bond->send_peer_notif will be num_peer_notif multiplied by
peer_notif_delay, which is u8 * u32. This would cause the send_peer_notif
overflow easily. e.g.

  ip link add bond0 type bond mode 1 miimon 100 num_grat_arp 30 peer_notify_delay 1000

To fix the overflow, let's set the send_peer_notif to u32 and limit
peer_notif_delay to 300s.

Reported-by: Liang Li <liali@redhat.com>
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2090053
Fixes: 07a4ddec3c ("bonding: add an option to specify a delay between peer notifications")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-10 09:27:20 +01:00
..
appletalk
arcnet
bonding bonding: fix send_peer_notif overflow 2023-05-10 09:27:20 +01:00
caif
can kvaser_usb: convert USB IDs to hexadecimal values 2023-04-04 16:48:45 +02:00
dsa net: dsa: mt7530: fix network connectivity with multiple CPU ports 2023-05-05 09:22:04 +01:00
ethernet net: ethernet: mtk_eth_soc: fix NULL pointer dereference 2023-05-10 09:23:53 +01:00
fddi net: fddi: skfp: rmt: Clean up some inconsistent indenting 2023-04-11 12:46:26 +02:00
fjes
hamradio hamradio: drop ISA_DMA_API dependency 2023-04-19 13:11:41 +01:00
hippi
hyperv hv_netvsc: Remove second mapping of send and recv buffers 2023-04-17 19:19:04 +00:00
ieee802154 spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
ipa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00
ipvlan Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
mctp
mdio net: mdio: mvusb: Fix an error handling path in mvusb_mdio_probe() 2023-05-07 14:59:02 +01:00
netdevsim
pcs
phy net: phy: bcm7xx: Correct read from expansion register 2023-05-09 20:25:52 -07:00
plip
ppp
pse-pd
slip
team
thunderbolt net: thunderbolt: Fix typos in comments 2023-04-12 21:09:12 -07:00
usb r8152: fix the autosuspend doesn't work 2023-05-03 09:12:10 +01:00
vmxnet3 net: vmxnet3: Fix NULL pointer dereference in vmxnet3_rq_rx_complete() 2023-04-19 09:03:05 +01:00
vxlan
wan spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
wireguard
wireless Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
wwan Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
xen-netback xen/netback: use same error messages for same errors 2023-03-30 15:39:23 +02:00
Kconfig net: veth: add page_pool stats 2023-04-24 18:07:08 -07:00
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c macsec: Don't rely solely on the dst MAC address to identify destination MACsec device 2023-04-21 08:22:15 +01:00
macvlan.c macvlan: Fix mc_filter calculation 2023-03-31 08:56:42 +01:00
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
sb1000.c
sungem_phy.c
tap.c
tun.c Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
veth.c net: veth: add page_pool stats 2023-04-24 18:07:08 -07:00
virtio_net.c virtio_net: suppress cpu stall when free_unused_bufs 2023-05-05 09:30:28 +01:00
vrf.c
vsockmon.c
xen-netfront.c