Re: [PATCH fixes] soc: samsung: exynos-pmu: fix use-after-free of interrupt generator node
From: Krzysztof Kozlowski
Date: Thu Sep 17 2026 - 04:16:36 EST
On 17/09/2026 10:15, Krzysztof Kozlowski wrote:
> From: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Closes: https://sashiko.dev/#/patchset/20260513-exynos850-cpuhotplug-v4-0-54fec5f65362@xxxxxxxxxx?part=3
> Fixes: 78b72897a5c8 ("soc: samsung: exynos-pmu: Enable CPU Idle for gs101")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
> Link: https://patch.msgid.link/20260828-exynos-pmu-cpuhp-idle-fixes-v2-1-06bce6107bd6@xxxxxxxxxx
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> ---
> drivers/soc/samsung/exynos-pmu.c | 7 ++-----
Please ignore, brain fart.
Best regards,
Krzysztof