[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpUGG2co65Yp379_X=DbyAnUn68nqfKZ4AX4Qb9gWXqU4g@mail.gmail.com>
Date: Wed, 27 Jan 2021 17:42:42 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: "Gong, Sishuai" <sishuai@...due.edu>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Cong Wang <cong.wang@...edance.com>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [Patch net] net: fix dev_ifsioc_locked() race condition
On Mon, Jan 25, 2021 at 11:43 AM Gong, Sishuai <sishuai@...due.edu> wrote:
>
> Hi,
>
> We also found another pair of writer and reader that may suffer the same problem.
>
> A data race may also happen on the variable netdev->dev_addr when functions e1000_set_mac() and packet_getname() run in parallel, eventually it could return a partially updated MAC address to the user, as shown below:
Yeah, this one requires a separate patch, because at least
it uses an index instead of a name to lookup the devices.
Thanks.
Powered by blists - more mailing lists