Re: [PATCH] rust: DamFence: Remove warning about unsignaled drop
From: Danilo Krummrich
Date: Tue Nov 17 2026 - 09:07:14 EST
On Tue Nov 17, 2026 at 10:51 AM CET, Christian König wrote:
> See the HW eventually doesn't necessarily stop doing DMA if you unload the driver.
No, if you can't stop the underlying device you must not unload the driver and
leak resources. Device resources (such as DMA mappings) are not safe against
this and it can cause UB in many layers of kernel, e.g. IOMMU.
> I even know about one case where a driver fully intentionally leaks memory on
> unload because the devs couldn't figure out which FW keeps writing into a
> buffer.
Again, please don't finish unloading then; everything else will cause UB.