[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161309640848.12988.7029386535147942032.git-patchwork-notify@kernel.org>
Date: Fri, 12 Feb 2021 02:20:08 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, cong.wang@...edance.com,
sishuai@...due.edu, eric.dumazet@...il.com, kuba@...nel.org
Subject: Re: [Patch net-next v3] net: fix dev_ifsioc_locked() race condition
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 <cong.wang@...edance.com>
>
> 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
Powered by blists - more mailing lists