[Bug 297121] LinuxKPI: uma_zalloc_debug: zone "malloc-16" with the following non-sleepable locks held (alloc_bounce_zone)

[email protected] Tue, 28 Jul 2026 19:49:20 +0000
Newsgroups gmane.os.freebsd.devel.emulation
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297121

--- Comment #1 from John Baldwin <[email protected]> ---
Yeah, you can't hold a mutex across bus_dmamap_create().  You will have to =
fix
your locking in the LinuxKPI layer to not do that.  This is even spelled ou=
t in
bus_dma(9) explicitly:

     Certain bus_dma operations should not be called with the driver lock
     held, either because they are already protected by an internal lock, or
     because they might sleep due to memory or resource allocation.  The
     following functions must not be called with any non-sleepable locks he=
ld:

           bus_dma_tag_create()
           bus_dmamap_create()
           bus_dmamem_alloc()

--=20
You are receiving this mail because:
You are the assignee for the bug.=