[Bug 297336] zfs: panic: malloc(M_WAITOK) with sleeping prohibited in spa_async_request()

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Aug 2026 14:53:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297336

            Bug ID: 297336
           Summary: zfs: panic: malloc(M_WAITOK) with sleeping prohibited
                    in spa_async_request()
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: rosenfeld@grumpf.hope-2000.org

Created attachment 273530
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273530&action=edit
crashinfo output

panic: malloc(M_WAITOK) with sleeping prohibited
cpuid = 10
time = 1786109044
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x36/frame 0xfffffe0197462a70
vpanic() at vpanic+0x136/frame 0xfffffe0197462ba0
panic() at panic+0x43/frame 0xfffffe0197462c00
malloc_dbg() at malloc_dbg+0xc2/frame 0xfffffe0197462c10
malloc() at malloc+0x3e/frame 0xfffffe0197462c60
__dprintf() at __dprintf+0x45/frame 0xfffffe0197462d00
spa_async_request() at spa_async_request+0x49/frame 0xfffffe0197462d30
vdev_geom_io_intr() at vdev_geom_io_intr+0x73/frame 0xfffffe0197462d50
g_io_deliver() at g_io_deliver+0x2d3/frame 0xfffffe0197462db0
g_io_deliver() at g_io_deliver+0x2d3/frame 0xfffffe0197462e10
g_disk_done() at g_disk_done+0x14a/frame 0xfffffe0197462e60
xpt_done_process() at xpt_done_process+0x3e0/frame 0xfffffe0197462ea0
xpt_done_td() at xpt_done_td+0x145/frame 0xfffffe0197462ef0
fork_exit() at fork_exit+0x82/frame 0xfffffe0197462f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0197462f30

This happened while the system had some troubles with nvme and one of my
drives, but that may be just a coincidence.

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