lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 03 Mar 2016 16:12:40 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	mmanning@...cade.com
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH net] Propagate MAC address changes to VLANs

From: Mike Manning <mmanning@...cade.com>
Date: Mon, 29 Feb 2016 11:32:51 +0000

>  
> -	/* vlan address was equal to the old address and is different from
> +	/* vlan address was equal to the old address so now also inherit
>  	 * the new address */
> -	if (ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) &&
> -	    !ether_addr_equal(vlandev->dev_addr, dev->dev_addr))
> -		dev_uc_add(dev, vlandev->dev_addr);
> +	if (ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr))
> +		ether_addr_copy(vlandev->dev_addr, dev->dev_addr);
>  

This dev_uc_add() call removal cannot be correct, if the device is up
we must programe it into the hardware unicast filters and if also
potentially put it into promiscuous mode via __dev_set_rx_mode().

Also your subject line isn't formatted properly, it should be:

	[PATCH net] vlan: Propagate MAC address changes properly.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ