[Bug 297121] LinuxKPI: uma_zalloc_debug: zone "malloc-16" with the following non-sleepable locks held (alloc_bounce_zone)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Jul 2026 19:49:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297121
--- Comment #1 from John Baldwin <jhb@FreeBSD.org> ---
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 out 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 held:
bus_dma_tag_create()
bus_dmamap_create()
bus_dmamem_alloc()
--
You are receiving this mail because:
You are the assignee for the bug.