Re: [Race] data race between dev_ifsioc_locked() and eth_commit_mac_addr_change()

2021-01-21 Thread Gong, Sishuai
Hi, We found this data race can corrupt the variable ifr->ifr_hwaddr.sa_data as only partially updated, so it should be harmful. Under the following interleaving, the writer and reader from these 2 memcpy() can interleave with each other on the variable dev->dev_addr. Thus, ifr->ifr_hwaddr.sa_

[Race] data race between dev_ifsioc_locked() and eth_commit_mac_addr_change()

2020-11-30 Thread Gong, Sishuai
Hi, We found a data race in linux kernel 5.3.11 that we are able to reproduce in x86 under specific interleavings. Currently, we are not sure about the consequence of this race but it seems that the two memcpy can lead to some inconsistency. -- Writer si