linux/drivers/soc
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
..
amlogic soc: amlogic: meson-clk-measure: remove debugfs tree 2026-07-03 11:52:17 +02:00
apple soc: apple: Add driver for Apple PMGR misc controls 2026-07-14 20:28:42 +02:00
aspeed soc: drivers for 7.3 2026-08-18 19:40:29 -07:00
atmel Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bcm treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
canaan soc: canaan: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 for K210 2024-04-05 16:42:50 +01:00
cirrus Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dove Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fsl FSL SOC Changes for 7.3 2026-08-10 10:15:56 +02:00
fujitsu soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
gemini
hisilicon soc: hisilicon: kunpeng_hccs: Remove unused input parameter 2026-03-21 03:55:35 +00:00
imx soc: imx9: devm_kasprintf error handling 2026-07-13 12:08:39 -04:00
ixp4xx soc: ixp4xx: Remove redundant dev_err() 2026-07-24 10:08:05 +02:00
lantiq
litex drivers/soc/litex: Use devm_register_restart_handler() 2025-01-19 14:05:35 -05:00
loongson soc: loongson: loongson2_guts: Add check for devm_kstrdup() 2025-02-20 22:29:05 +01:00
mediatek soc: mediatek: add missing MODULE_DEVICE_TABLE() 2026-07-30 09:41:54 +02:00
microchip soc: microchip: mpfs-sys-controller: fix resource leak on probe error 2026-05-14 21:03:34 +01:00
nuvoton Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pxa soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
qcom remoteproc updates for v7.3 2026-08-25 14:03:31 -07:00
renesas pmdomain providers: 2026-08-19 09:28:46 -07:00
rockchip soc: rockchip: grf: Add missing of_node_put() when returning 2026-02-22 23:27:20 +01:00
samsung soc: samsung: exynos-pmu: fix use-after-free of interrupt generator node 2026-09-18 14:39:19 +02:00
sophgo Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
sunxi soc: sunxi: sram: Add H616 SRAM regions 2026-04-27 23:25:35 +08:00
tegra soc: drivers for 7.3 2026-08-18 19:40:29 -07:00
ti TI SoC driver updates for v7.3 2026-08-10 09:48:29 +02:00
ux500 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
versatile Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vt8500 soc: Add VIA/WonderMedia SoC identification driver 2025-05-04 19:27:01 +02:00
xilinx soc: xilinx: Remove redundant dev_err() 2026-07-23 08:48:54 +02:00
Kconfig RISC-V SoC for v6.16 2025-05-21 19:25:08 +02:00
Makefile RISC-V SoC for v6.16 2025-05-21 19:25:08 +02:00