android_kernel_xiaomi_sm8450/drivers/net/appletalk
Saubhik Mukherjee ee144b7980 net: appletalk: cops: Fix data race in cops_probe1
[ Upstream commit a4dd4fc6105e54393d637450a11d4cddb5fabc4f ]

In cops_probe1(), there is a write to dev->base_addr after requesting an
interrupt line and registering the interrupt handler cops_interrupt().
The handler might be called in parallel to handle an interrupt.
cops_interrupt() tries to read dev->base_addr leading to a potential
data race. So write to dev->base_addr before calling request_irq().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Saubhik Mukherjee <saubhik.mukherjee@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-16 12:01:37 +02:00
..
cops_ffdrv.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cops_ltdrv.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cops.c net: appletalk: cops: Fix data race in cops_probe1 2021-06-16 12:01:37 +02:00
cops.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ipddp.c ipv4: Prepare rtable for IPv6 gateway 2019-04-08 15:22:40 -07:00
ipddp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig net: appletalk: Kconfig: Fix docs location 2020-10-15 07:49:47 +02:00
ltpc.c net/appletalk: Supply missing net/Space.h include file 2020-09-18 14:53:40 -07:00
ltpc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00