Re: [PATCH] gpio: sodaville: fix use-after-free bug when registering the irqchip

From: Bartosz Golaszewski

Date: Tue Nov 10 2026 - 05:39:29 EST



On Thu, 05 Nov 2026 14:14:27 +0100, Bartosz Golaszewski wrote:
> In sdv_register_irqsupport(), if irq_domain_create_legacy() fails during
> device probing, a generic IRQ chip is left registered in the global gc_list
> while its underlying memory is freed, leading to a use-after-free. Use
> the managed variant of irq_setup_generic_chip() to ensure that the chip
> gets unregistered before the memory it uses is freed.
>
>
> [...]

Applied, thanks!

[1/1] gpio: sodaville: fix use-after-free bug when registering the irqchip
https://git.kernel.org/brgl/c/ab9102375b7c77e0c4d33c7594e514454dc9f2b3

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>