[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#835670: MAC address of the network card keeps changing in each reboot



Control: tag -1 moreinfo

On Sun, 2016-08-28 at 18:31 +0900, Hughe wrote:
> Package: src:linux
> Version: 3.16.7-ckt25-2
> Severity: important
> Tags: upstream
> 
> Hi,
> 
> This machine has two ethernet cards.
> 
> $ lspci -nn | grep Ether
> 02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8161 Gigabit Ethernet
> [1969:1091] (rev 10)
> 03:05.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
> RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10)
> 
> I use AR8161 as default network interface card. The problem is each time system
> boots, AR8161's MAC address changes.

Was the MAC address stable when using an earlier kernel version?

[...]
> Does MAC address alignment problem is related to floating MAC address I've
> experienced for three years since 2013?

I don't think so.

> http://code.metager.de/source/history/linux/stable/drivers/net/ethernet/atheros/alx/hw.c
> alx: fix MAC address alignment problem
> 
> In two places, parts of MAC addresses are used as u32/u16
> values. This can cause alignment problems, use put_unaligned
> and get_unaligned to fix this.
> 
> > Reported-by: Ben Hutchings <ben@decadent.org.uk>
> > Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
> > Signed-off-by: David S. Miller <davem@davemloft.net>
[...]

This dealt with a potential crash or corruption of the MAC address on
some architectures.  It shouldn't have any affect on x86 systems.

Ben.

-- 
Ben Hutchings
No political challenge can be met by shopping. - George Monbiot

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: