From: David S. Miller Date: Wed, 10 May 2023 08:27:21 +0000 (+0100) Subject: Merge branch 'bonding-overflow' X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a5b3363d8cec749fbdfe96bde7edbe19eeaefeb1;p=people%2Fjgross%2Flinux.git Merge branch 'bonding-overflow' Hangbin Liu says: ==================== bonding: fix send_peer_notif overflow Bonding send_peer_notif was defined as u8. But the value is num_peer_notif multiplied by peer_notif_delay, which is u8 * u32. This would cause the send_peer_notif overflow. Before the fix: TEST: num_grat_arp (active-backup miimon num_grat_arp 10) [ OK ] TEST: num_grat_arp (active-backup miimon num_grat_arp 20) [ OK ] 4 garp packets sent on active slave eth1 TEST: num_grat_arp (active-backup miimon num_grat_arp 30) [FAIL] 24 garp packets sent on active slave eth1 TEST: num_grat_arp (active-backup miimon num_grat_arp 50) [FAIL] After the fix: TEST: num_grat_arp (active-backup miimon num_grat_arp 10) [ OK ] TEST: num_grat_arp (active-backup miimon num_grat_arp 20) [ OK ] TEST: num_grat_arp (active-backup miimon num_grat_arp 30) [ OK ] TEST: num_grat_arp (active-backup miimon num_grat_arp 50) [ OK ] ==================== Signed-off-by: David S. Miller --- a5b3363d8cec749fbdfe96bde7edbe19eeaefeb1