[PATCH 6.18.y 0/5] Four Rust Devres fixes
From: Alice Ryhl
Date: Mon Oct 05 2026 - 05:54:30 EST
These fixes were not picked up because of some conflicts and/or build
failures, but they are important to avoid deadlocks and races. Please
pick them up for 6.18, thanks!
Unfortunately, it turns out that backporting these fixes introduces a
bug in the irq abstraction due to the fact that it makes Devres
allocate. This bug is not present in mainline because irq no longer uses
Devres at all upstream. I included a fix for this as well.
Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
Alice Ryhl (1):
rust: irq: pass RegistrationInner as cookie to request_irq
Danilo Krummrich (4):
rust: devres: fix race condition due to nesting
rust: devres: add 'static bound to Devres<T>
rust: devres: fix race between concurrent revokers
rust: devres: ensure revocation is complete before device finishes unbinding
rust/kernel/devres.rs | 164 ++++++++++++++++++---------------------------
rust/kernel/irq/request.rs | 89 ++++++++++++++----------
2 files changed, 119 insertions(+), 134 deletions(-)
---
base-commit: 1b357ecb321392158d507b04672ffee57bfa071d
change-id: 20260930-devres-6-18-backport-93f976775b42
Best regards,
--
Alice Ryhl <aliceryhl@xxxxxxxxxx>