Patch "bonding: NS target should accept link local address" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    bonding: NS target should accept link local address

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bonding-ns-target-should-accept-link-local-address.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7861fb5264d921060ea096c2d9aa9d7b920c76a3
Author: Hangbin Liu <liuhangbin@xxxxxxxxx>
Date:   Fri May 27 14:44:39 2022 +0800

    bonding: NS target should accept link local address
    
    [ Upstream commit 5e1eeef69c0fef6249b794bda5d68f95a65d062f ]
    
    When setting bond NS target, we use bond_is_ip6_target_ok() to check
    if the address valid. The link local address was wrongly rejected in
    bond_changelink(), as most time the user just set the ARP/NS target to
    gateway, while the IPv6 gateway is always a link local address when user
    set up interface via SLAAC.
    
    So remove the link local addr check when setting bond NS target.
    
    Fixes: 129e3c1bab24 ("bonding: add new option ns_ip6_target")
    Reported-by: Li Liang <liali@xxxxxxxxxx>
    Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
    Reviewed-by: Jonathan Toppins <jtoppins@xxxxxxxxxx>
    Acked-by: Jay Vosburgh <jay.vosburgh@xxxxxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c
index f427fa1737c7..6f404f9c34e3 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -290,11 +290,6 @@ static int bond_changelink(struct net_device *bond_dev, struct nlattr *tb[],
 
 			addr6 = nla_get_in6_addr(attr);
 
-			if (ipv6_addr_type(&addr6) & IPV6_ADDR_LINKLOCAL) {
-				NL_SET_ERR_MSG(extack, "Invalid IPv6 addr6");
-				return -EINVAL;
-			}
-
 			bond_opt_initextra(&newval, &addr6, sizeof(addr6));
 			err = __bond_opt_set(bond, BOND_OPT_NS_TARGETS,
 					     &newval);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux