linux/drivers/soc/samsung
Alexey Klimov 4dd1999783
soc: samsung: exynos-pmu: fix use-after-free of interrupt generator node
The setup_cpuhp_and_cpuidle() parses the device tree node for the
interrupt generation block via of_parse_phandle() and decrements its
reference count using of_node_put() immediately after fetching the resource
address. However, later the intr_gen_node pointer is passed into
of_syscon_register_regmap().

Fix this by declaring intr_gen_node with __free() and removing
of_node_put().

Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260513-exynos850-cpuhotplug-v4-0-54fec5f65362@linaro.org?part=3
Fixes: 78b72897a5 ("soc: samsung: exynos-pmu: Enable CPU Idle for gs101")
Cc: stable@vger.kernel.org
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Link: https://patch.msgid.link/20260828-exynos-pmu-cpuhp-idle-fixes-v2-1-06bce6107bd6@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20260917081641.72291-2-krzk@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2026-09-18 14:39:19 +02:00
..
exynos-asv.c soc: samsung: include linux/array_size.h where needed 2025-03-06 19:10:17 +01:00
exynos-asv.h soc: samsung: exynos-chipid: convert to driver and merge exynos-asv 2021-01-03 17:08:45 +01:00
exynos-chipid.c soc: samsung: exynos-chipid: add google,gs101-otp support 2025-12-28 12:31:38 +01:00
exynos-pmu.c soc: samsung: exynos-pmu: fix use-after-free of interrupt generator node 2026-09-18 14:39:19 +02:00
exynos-pmu.h soc: samsung: exynos-pmu: move some gs101 related code into new file 2025-10-18 19:16:44 +02:00
exynos-regulator-coupler.c soc: samsung: exynos-regulator-coupler: Add simple voltage coupler for Exynos5800 2020-07-22 22:33:57 +02:00
exynos-usi.c soc: samsung: usi: prevent wrong bits inversion during unconfiguring 2025-04-14 08:51:18 +02:00
exynos4-pmu.c soc: samsung: exynos-pmu: Re-introduce Exynos4212 support 2023-05-09 19:49:37 +02:00
exynos3250-pmu.c soc: samsung: include linux/array_size.h where needed 2025-03-06 19:10:17 +01:00
exynos5250-pmu.c soc: samsung: include linux/array_size.h where needed 2025-03-06 19:10:17 +01:00
exynos5420-pmu.c soc: samsung: include linux/array_size.h where needed 2025-03-06 19:10:17 +01:00
exynos5422-asv.c soc: samsung: exynos-chipid: convert to a module 2021-09-29 15:50:34 +02:00
exynos5422-asv.h soc: samsung: Add Exynos Adaptive Supply Voltage driver 2019-10-28 17:59:33 +01:00
gs101-pmu.c soc: samsung: gs101-pmu: implement access tables for read and write 2025-10-18 19:16:45 +02:00
Kconfig soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs 2024-02-25 11:39:23 +01:00
Makefile soc: samsung: exynos-pmu: move some gs101 related code into new file 2025-10-18 19:16:44 +02:00
s3c-pm-check.c soc: samsung: s3c-pm-check: Fix incorrectly named variable 'val' 2020-11-03 21:37:45 +01:00