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-next>] [day] [month] [year] [list]
Date:   Wed, 15 Apr 2020 17:28:00 +1000
From:   Russell Strong <russell@...ong.id.au>
To:     Stephen Hemminger <stephen@...workplumber.org>
Cc:     netdev@...r.kernel.org
Subject: Re: vxlan mac address generation

On Tue, 14 Apr 2020 21:12:06 -0700
Stephen Hemminger <stephen@...workplumber.org> wrote:

> On Wed, 15 Apr 2020 10:05:24 +1000
> Russell Strong <russell@...ong.id.au> wrote:
> 
> > Hi Stephen,
> > 
> > I've hit a problem with vxlan not communicating because mac
> > addresses being duplicated when I use the same IFNAME across
> > multiple virtual machines. The mac address appears to be some sort
> > of hash related to the IFNAME. Changing the name changes the mac
> > address.
> > 
> > Looking at vxlan_setup this should be random (eth_hw_addr_random)
> > but it is not.
> > 
> > Is there a bug here?
> > 
> > Regards,
> > Russell Strong  
> 
> I don't know what platform you are using but on x86-64 Debian 10.
> 
> # ip li add vxlan0 type vxlan id 1
> vxlan: destination port not specified
> Will use Linux kernel default (non-standard value)
> Use 'dstport 4789' to get the IANA assigned value
> Use 'dstport 0' to get default and quiet this message
> # ip li show dev vxlan0
> 8: vxlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
> DEFAULT group default qlen 1000 link/ether 5a:09:e2:81:08:61 brd
> ff:ff:ff:ff:ff:ff # ip li del dev vxlan0
> # ip li add vxlan0 type vxlan id 1
> vxlan: destination port not specified
> Will use Linux kernel default (non-standard value)
> Use 'dstport 4789' to get the IANA assigned value
> Use 'dstport 0' to get default and quiet this message
> # ip li show dev vxlan0
> 9: vxlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
> DEFAULT group default qlen 1000 link/ether 06:8d:c0:4a:73:90 brd
> ff:ff:ff:ff:ff:ff # ip li del dev vxlan0
> 
> 
> # ip li add vxlan0 type vxlan id 1
> vxlan: destination port not specified
> Will use Linux kernel default (non-standard value)
> Use 'dstport 4789' to get the IANA assigned value
> Use 'dstport 0' to get default and quiet this message
> # ip li show dev vxlan0
> 11: vxlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
> DEFAULT group default qlen 1000 link/ether a2:2e:04:f6:85:73 brd
> ff:ff:ff:ff:ff:ff
> 

I tried debian ( 4.19.0-8-amd64 ) and got the same result as you.  I am
using Fedora 31 ( 5.5.15-200.fc31.x86_64 ).  I have discovered a
difference:

On fedora /sys/class/net/v0/addr_assign_type = 3
On debian /sys/class/net/v0/addr_assign_type = 1

The debian value is what I would expect (NET_ADDR_RANDOM).  I thought
addr_assign_type was controlled by the driver.  Do you think this could
be a Fedora bug, or perhaps something has changed between 4.19 and 5.5?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ