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, 7 Oct 2021 16:10:27 +0200
From:   Andrew Lunn <andrew@...n.ch>
To:     Jakub Kicinski <kuba@...nel.org>
Cc:     Michael Walle <michael@...le.cc>, davem@...emloft.net,
        netdev@...r.kernel.org, vladimir.oltean@....com
Subject: Re: [PATCH net-next 2/3] eth: platform: add a helper for loading
 netdev->dev_addr

On Thu, Oct 07, 2021 at 06:57:01AM -0700, Jakub Kicinski wrote:
> On Thu, 07 Oct 2021 15:42:17 +0200 Michael Walle wrote:
> > > +int platform_get_ethdev_address(struct device *dev, struct net_device *netdev)
> > > +{
> > > +	u8 addr[ETH_ALEN];
> > > +	int ret;
> > > +
> > > +	ret = eth_platform_get_mac_address(dev, addr);  
> > 
> > this eventually calls ether_addr_copy(), which has a note:
> >    Please note: dst & src must both be aligned to u16.
> > 
> > Is this true for this addr on the stack?
> 
> It will but I don't think there's anything in the standard that
> requires it. Let me slap __aligned(2) on it to be sure.

Hi Jakub

I though you changed ether_addr_copy() to be a memcpy?
Or was that some other helper?

	Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ