1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net
Hangbin Liu b7f14132bf bonding: use unspecified address if no available link local address
When ns_ip6_target was set, the ipv6_dev_get_saddr() will be called to get
available source address and send IPv6 neighbor solicit message.

If the target is global address, ipv6_dev_get_saddr() will get any
available src address. But if the target is link local address,
ipv6_dev_get_saddr() will only get available address from our interface,
i.e. the corresponding bond interface.

But before bond interface up, all the address is tentative, while
ipv6_dev_get_saddr() will ignore tentative address. This makes we can't
find available link local src address, then bond_ns_send() will not be
called and no NS message was sent. Finally bond interface will keep in
down state.

Fix this by sending NS with unspecified address if there is no available
source address.

Reported-by: LiLiang <liali@redhat.com>
Fixes: 5e1eeef69c ("bonding: NS target should accept link local address")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-09-05 10:07:05 +01:00
..
appletalk
arcnet
bonding bonding: use unspecified address if no available link local address 2022-09-05 10:07:05 +01:00
caif caif_virtio: fix race between virtio_device_ready() and ndo_open() 2022-06-27 08:04:30 -04:00
can Including fixes from bluetooth, bpf, can and netfilter. 2022-08-11 13:45:37 -07:00
dsa net: dsa: microchip: fix kernel oops on ksz8 switches 2022-09-03 10:42:10 +01:00
ethernet Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 2022-09-03 10:46:24 +01:00
fddi skfp/h: fix repeated words in comments 2022-08-12 11:20:29 +01:00
fjes
hamradio hamradio: 6pack: fix array-index-out-of-bounds in decode_std_command() 2022-06-17 11:39:46 +01:00
hippi
hyperv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-23 21:19:17 -07:00
ieee802154 ieee802154: cc2520: add rc code in cc2520_tx() 2022-08-29 11:10:22 +02:00
ipa net: ipa: don't assume SMEM is page-aligned 2022-08-22 18:10:48 -07:00
ipvlan net: ipvtap - add __init/__exit annotations to module init/exit funcs 2022-08-23 15:45:53 +02:00
mctp
mdio net: mdio: Delete usage of driver_deferred_probe_check_state() 2022-06-10 15:57:54 +02:00
netdevsim net: Use u64_stats_fetch_begin_irq() for stats fetch. 2022-08-29 13:02:27 +01:00
pcs Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-07-28 18:21:16 -07:00
phy Revert "net: phy: meson-gxl: improve link-up behavior" 2022-09-01 20:55:12 -07:00
plip plip: avoid rcu debug splat 2022-08-09 12:16:02 -07:00
ppp ppp: Fix typo in comment 2022-06-17 20:17:04 -07:00
slip
team team: adopt u64_stats_t 2022-06-09 21:53:12 -07:00
usb r8152: add PID for the Lenovo OneLink+ Dock 2022-08-27 16:35:41 +01:00
vmxnet3 vmxnet3: do not reschedule napi for rx processing 2022-07-29 12:11:23 +01:00
vxlan vxlan: do not use RT_TOS for IPv6 flowlabel 2022-08-09 22:19:20 -07:00
wan WAN: Fix syntax errors in comments 2022-06-07 10:45:25 +02:00
wireguard Char / Misc driver changes for 6.0-rc1 2022-08-04 11:05:48 -07:00
wireless wifi: mac80211_hwsim: check length for virtio packets 2022-09-03 16:40:06 +02:00
wwan wwan: iosm: use a flexible array rather than allocate short objects 2022-05-20 17:56:50 -07:00
xen-netback xen-netback: only remove 'hotplug-status' when the vif is actually destroyed 2022-09-03 09:53:02 +01:00
amt.c amt: fix typo in comment 2022-07-28 22:21:51 -07:00
bareudp.c
dummy.c
eql.c net: rename reference+tracking helpers 2022-06-09 21:52:55 -07:00
geneve.c geneve: do not use RT_TOS for IPv6 flowlabel 2022-08-09 22:19:20 -07:00
gtp.c
ifb.c
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-07-07 12:07:37 -07:00
LICENSE.SRC
loopback.c
macsec.c Revert "net: macsec: update SCI upon MAC address change." 2022-08-19 16:50:36 -07:00
macvlan.c vlan: adopt u64_stats_t 2022-06-09 21:53:09 -07:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c net: rename reference+tracking helpers 2022-06-09 21:52:55 -07:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c net: sungem_phy: Add of_node_put() for reference returned by of_get_parent() 2022-07-21 19:04:19 -07:00
tap.c net: tap: NULL pointer derefence in dev_parse_header_protocol when skb->dev is null 2022-08-05 08:56:35 +01:00
thunderbolt.c
tun.c net: tun: avoid disabling NAPI twice 2022-06-30 11:34:10 -07:00
veth.c Revert "veth: Add updating of trans_start" 2022-08-03 19:20:13 -07:00
virtio_net.c Including fixes from netfilter. 2022-08-18 19:37:15 -07:00
vrf.c xfrm: no need to set DST_NOPOLICY in IPv4 2022-06-10 11:01:36 +02:00
vsockmon.c
xen-netfront.c xen-netfront: re-order error checks in xennet_get_responses() 2022-07-14 12:20:18 +02:00