On Fri, 31 Jul 2026 at 07:13, <[email protected]> wrote:
>
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) 
> to consider:
>
> New issues:
> - [Critical] Embedding `drm_driver` inside `nouveau_drm` causes a 
> Use-After-Free of `dev->driver` in the DRM core when the device is unbound or 
> hot-unplugged while userspace holds an open file descriptor.

I'm going to agree with sashiko here. We don't want to embed it.

Just create two copies of the struct, one with atomic and one without,
or use some macros to do that, because anything else is just going to
have messy lifetimes.

I think you could also move the atomic flag handling earlier.

Dave.

Reply via email to