Re: [PATCH] gpio: sodaville: fix use-after-free bug when registering the irqchip
From: Andy Shevchenko
Date: Tue Nov 10 2026 - 04:39:34 EST
On Tue, Nov 10, 2026 at 11:15 AM Bartosz Golaszewski <brgl@xxxxxxxxxx> wrote:
>
> On Thu, Nov 05, 2026 at 02:14:27PM +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.
> >
>
> Andy, will you queue this or should I take it for this week's PR with
> fixes?
Feel free to take it, I won't think of any conflicts in this area in
the future with this driver.
--
With Best Regards,
Andy Shevchenko