linux/drivers/base
Saravana Kannan eed6e41813 driver core: Fix locking bug in deferred_probe_timeout_work_func()
list_for_each_entry_safe() is only useful if we are deleting nodes in a
linked list within the loop. It doesn't protect against other threads
adding/deleting nodes to the list in parallel. We need to grab
deferred_probe_mutex when traversing the deferred_probe_pending_list.

Cc: stable@vger.kernel.org
Fixes: 25b4e70dcc ("driver core: allow stopping deferred probe after init")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210402040342.2944858-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-05 09:14:18 +02:00
..
firmware_loader
power PM: runtime: Fix race getting/putting suppliers at probe 2021-03-29 19:27:09 +02:00
regmap Char/Misc driver patches for 5.12-rc1 2021-02-24 10:25:37 -08:00
test
Kconfig RISC-V Patches for the 5.12 Merge Window 2021-02-26 10:28:35 -08:00
Makefile
arch_numa.c arch_numa: fix common code printing of phys_addr_t 2021-02-18 23:18:04 -08:00
arch_topology.c
attribute_container.c
auxiliary.c
base.h
bus.c
cacheinfo.c
class.c
component.c
container.c
core.c Driver core / debugfs update for 5.12-rc1 2021-02-24 10:13:55 -08:00
cpu.c
dd.c driver core: Fix locking bug in deferred_probe_timeout_work_func() 2021-04-05 09:14:18 +02:00
devcoredump.c
devres.c
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
map.c
memory.c drivers/base/memory: don't store phys_device in memory blocks 2021-02-26 09:41:00 -08:00
module.c
node.c mm: memcg: add swapcache stat for memcg v2 2021-02-24 13:38:29 -08:00
pinctrl.c
platform-msi.c
platform.c Driver core / debugfs update for 5.12-rc1 2021-02-24 10:13:55 -08:00
property.c
soc.c
swnode.c software node: Fix device_add_software_node() 2021-03-10 15:25:02 +01:00
syscore.c
topology.c
transport_class.c