diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2023-02-13 13:42:48 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-02-13 22:31:24 +0300 |
commit | 601363cc08da25747feb87c55573dd54de91d66a (patch) | |
tree | 586e6bbcb208633cf0ccd19c84efd975b5e9f152 /scripts/gdb/linux/utils.py | |
parent | d55f7f4c58c07beb5050a834bf57ae2ede599c7e (diff) | |
download | linux-601363cc08da25747feb87c55573dd54de91d66a.tar.xz |
irqdomain: Fix mapping-creation race
Parallel probing of devices that share interrupts (e.g. when a driver
uses asynchronous probing) can currently result in two mappings for the
same hardware interrupt to be created due to missing serialisation.
Make sure to hold the irq_domain_mutex when creating mappings so that
looking for an existing mapping before creating a new one is done
atomically.
Fixes: 765230b5f084 ("driver-core: add asynchronous probing support for drivers")
Fixes: b62b2cf5759b ("irqdomain: Fix handling of type settings for existing mappings")
Link: https://lore.kernel.org/r/YuJXMHoT4ijUxnRb@hovoldconsulting.com
Cc: stable@vger.kernel.org # 4.8
Cc: Dmitry Torokhov <dtor@chromium.org>
Cc: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230213104302.17307-7-johan+linaro@kernel.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions