Re: [PATCH 6.18.y 5/5] rust: irq: pass RegistrationInner as cookie to request_irq
From: Alice Ryhl
Date: Wed Oct 07 2026 - 02:03:41 EST
On Tue, Oct 6, 2026 at 11:36 PM Sasha Levin <sashal@xxxxxxxxxx> wrote:
>
> > This is not needed in mainline because commit 98c63ce4d760 ("rust: irq:
> > make Registration compatible with lifetime-bound drivers") removed
> > Devres from irq::Registration.
>
> 7.2 has the same uninitialized read. Devres::new() returns Result<Self>
> there as well, since ba268514ea14 ("rust: devres: fix race condition due
> to nesting") is already in v7.0, and the refactor you cite only arrives in
> v7.3. This patch does not apply to 7.2 as is, because d1880d5f5899 ("rust:
> irq: move 'static bounds to traits") moved the context lines.
>
> Could you send a 7.2.y variant of this patch? We will queue the 6.18
> series together with it.
Sent! Thanks!
Alice