summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPavel Andrianov <andrianov@ispras.ru>2021-03-10 11:10:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-10 13:01:57 +0200
commit48e2623e734dc93832299190608ab9fecf494e93 (patch)
tree4f20643e3e851590a19cff025eb2ff4d90c5ecbf /net/unix/af_unix.c
parenta0c646821e9dedc5368abd2f71f50ebe2c351d19 (diff)
net: pxa168_eth: Fix a potential data race in pxa168_eth_remove
[ Upstream commit 0571a753cb07982cc82f4a5115e0b321da89e1f3 ] pxa168_eth_remove() firstly calls unregister_netdev(), then cancels a timeout work. unregister_netdev() shuts down a device interface and removes it from the kernel tables. If the timeout occurs in parallel, the timeout work (pxa168_eth_tx_timeout_task) performs stop and open of the device. It may lead to an inconsistent state and memory leaks. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Pavel Andrianov <andrianov@ispras.ru> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions