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]
Message-ID: <B5657A6538887040AD3A81F1008BEC63C26107@avmb3.qlogic.org>
Date:	Wed, 8 Apr 2015 05:49:59 +0000
From:	Yuval Mintz <Yuval.Mintz@...gic.com>
To:	Alexander Duyck <alexander.h.duyck@...hat.com>,
	Manish Chopra <manish.chopra@...gic.com>,
	Patrick McHardy <kaber@...sh.net>
CC:	netdev <netdev@...r.kernel.org>
Subject: RE: Question regarding MAC address configuraton with VLAN devices

> What you are proposing would likely require significant changes to more than
> just VLANs.  It would have an impact on all stacked devices since normally the
> assumption is that we push addresses down, not up.  That is why the
> vlan_sync_address is simply checking to see if its current address is supported
> before pushing the address down.
> 
> Maybe we should look into adding some sort of flag to indicate that the address
> table is locked, like a IFF_L2_ADDR_LOCKED in order to indicate that the device
> only supports one L2 address and cannot be changed.
> Then you could probably pass that up to higher levels to force things like the
> address change you want in VLAN, and things like MACVLAN would simply fail if
> that flag is set.
> 
> - Alex

I think there's an even simpler question here -
Today, if you'll have a network interface with a vlan stacked on top of it
and user calls 'ip link set ... address ...' the end result would be that the vlan
interface retains the original MAC and push it downward [to base device].
You can claim this is harmless, but I don't really think anyone intends this to
happen. [You may claim this is not an interesting flow, and you'll probably
be right; but that's beside the point ;-) ]

Perhaps limiting this only for devices-that-support-a-single-l2-address is too
harsh; Although in that case, we'll need to distinguish between MAC address
that were passed upward [e.g., vlan interface] and downward [e.g., macvlan], 

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ