Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Thu, 11 Feb 2021 11:34:10 -0800 you wrote:
> From: Cong Wang <[email protected]>
> 
> dev_ifsioc_locked() is called with only RCU read lock, so when
> there is a parallel writer changing the mac address, it could
> get a partially updated mac address, as shown below:
> 
> Thread 1                      Thread 2
> // eth_commit_mac_addr_change()
> memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
>                               // dev_ifsioc_locked()
>                               memcpy(ifr->ifr_hwaddr.sa_data,
>                                       dev->dev_addr,...);
> 
> [...]

Here is the summary with links:
  - [net-next,v3] net: fix dev_ifsioc_locked() race condition
    https://git.kernel.org/netdev/net-next/c/3b23a32a6321

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


Reply via email to