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] [day] [month] [year] [list]
Message-ID: <20211007072154.32de24dc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date:   Thu, 7 Oct 2021 07:21:54 -0700
From:   Jakub Kicinski <kuba@...nel.org>
To:     Andrew Lunn <andrew@...n.ch>
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, 7 Oct 2021 16:10:27 +0200 Andrew Lunn wrote:
> On Thu, Oct 07, 2021 at 06:57:01AM -0700, Jakub Kicinski wrote:
> > > 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?

I changed eth_hw_addr_set(), I think Michael is referring to 
a ether_addr_copy() inside eth_platform_get_mac_address().

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ