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

    bond: Check length of IFLA_BOND_ARP_IP_TARGET attributes

to the 3.17-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:
     bond-check-length-of-ifla_bond_arp_ip_target-attributes.patch
and it can be found in the queue-3.17 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From foo@baz Sun Dec 14 08:37:01 PST 2014
From: Thomas Graf <[email protected]>
Date: Thu, 27 Nov 2014 00:22:33 +0100
Subject: bond: Check length of IFLA_BOND_ARP_IP_TARGET attributes

From: Thomas Graf <[email protected]>

[ Upstream commit f6c6fda4c9e17940b0a2ba206b0408babfdc930c ]

Fixes: 7f28fa10 ("bonding: add arp_ip_target netlink support")
Reported-by: John Fastabend <[email protected]>
Cc: Scott Feldman <[email protected]>
Signed-off-by: Thomas Graf <[email protected]>
Acked-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/net/bonding/bond_netlink.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -194,7 +194,12 @@ static int bond_changelink(struct net_de
 
                bond_option_arp_ip_targets_clear(bond);
                nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) {
-                       __be32 target = nla_get_be32(attr);
+                       __be32 target;
+
+                       if (nla_len(attr) < sizeof(target))
+                               return -EINVAL;
+
+                       target = nla_get_be32(attr);
 
                        bond_opt_initval(&newval, (__force u64)target);
                        err = __bond_opt_set(bond, BOND_OPT_ARP_TARGETS,


Patches currently in stable-queue which might be from [email protected] are

queue-3.17/bond-check-length-of-ifla_bond_arp_ip_target-attributes.patch
queue-3.17/netlink-use-jhash-as-hashfn-for-rhashtable.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to