From: Phil Sutter <p...@nwl.cc> Date: Mon, 17 Aug 2015 23:06:47 +0200
> Upon evaluation of IFLA_ADDRESS and IFLA_BROADCAST messages, make sure > the passed argument length matches dev->addr_len exactly. > > This fixes dubious behaviour of 'ip link set eth0 addr <MAC>' where > '<MAC>' is too long, e.g. '00:11:22:33:44:55:66:77'. Called like this, > 'ip' would return successfully and the kernel sets eth0's MAC address to > the leading six octets of the passed argument. > > Signed-off-by: Phil Sutter <p...@nwl.cc> I don't think this behavior is very "dubious" and making the check more strict risks breaking things that have worked for a very long time. I'm not applying this, sorry. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html