From nobody Tue Jul 28 15:01:57 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h8dwQ4z4Zz6mt0y for ; Tue, 28 Jul 2026 15:01:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h8dwQ0f0Fz3M1T for ; Tue, 28 Jul 2026 15:01:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785250918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fNOMSL8v9wtvLEUi8M6F+pWjU0JdCZfIYe+sP5+Eyqg=; b=nmJu6lGjsfjDCXo9iTUDiIY2QukON0fzlUz+CHbE+1BBR3RpONc8IRIKCZXBmlTLm+hxUT egNjBqM7jZ3+PaXHBipkd5D+lR3uUCWkTHUPMpR5lAbP++cFg0edHofIg3La5hkQYj6Su5 fMGF7IBRd7WhLgYZpvKtLoc7UF+j4GyjNbtF7+HJHGTHwQD+WoliPXbp9cxbZ867+CiRq0 EH9UDs7hok32hpPg9uYjR6LLgs76XfKwqctUXfNpEDAOC6UTjwxFqWE1kOm3fcdgudgFe/ Nars3O6a9yj8dCNFPgc+43CI5oJAyagUJUEDAU0YHjcJnRNDIJ15JIYqJX1NQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785250918; a=rsa-sha256; cv=none; b=f0f1TXjNZn29bZ+Gxj4MWWd38xbgEsxwIOYEDZFV6GH2dIV0Fxn7cgt/esr9Rz0fzFhnnW GyVyuFhWOKtygKndlrGLWfTAMdt8oesjx9p7v2w1x4UsC//PBl7lSRNR9idRcsAgQNmlXW MNoIq5gIwg70cX1Bj60e5u/D8cdKOcOmY2nFdUJ/WwSuBRISHBm/GAVr9VUyIqy5iBlivj ICHGgTKrRC2DSHugGp14Q5EBCxG/Uvtle5hiLuuVuYHq0ZOPLdOtmZoxIQj5oaJhBsOW5F P/h00aoB4aHaemsPRuDZ4s7lHsVMFevW5r+nGkwTFwFjKTcT418Xr3oGFBiBoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785250918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fNOMSL8v9wtvLEUi8M6F+pWjU0JdCZfIYe+sP5+Eyqg=; b=aPNd6x1hkwpP5SIYsMSQYNVCD+wajQpqzthTglp1eBaCU5PMV6gCRMBVRtHbZ29djDz2a+ 0Pj8lMAHkOGImMufa8vlYDcFXZM23S2i3m2UqulKVhGvcXtBSFUxmZrOB0QBXcP9E4C1tr EcHTN+EBBsSDwlsz+p8QN8ysRXpqxV0kZDtESY27kmSPYzIPwXi6Aex0O/QBLMUM2vNPeD TIU8WC+e7Q2w0UYJ7XbPC5LUnPtISGcaYGSb3VmbbQeIE9fHjdjI/aCFLcBezYrOjypuus hsbs6erCGAZkUHPD91SD9i+jZqqJ4OfcHXBF3EbDUtjMGZr5WDFjshdmgkbBxA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4h8dwP6HJPzlVY for ; Tue, 28 Jul 2026 15:01:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 66SF1vdu082927 for ; Tue, 28 Jul 2026 15:01:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 66SF1vin082926 for bugs@FreeBSD.org; Tue, 28 Jul 2026 15:01:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 297121] LinuxKPI: uma_zalloc_debug: zone "malloc-16" with the following non-sleepable locks held (alloc_bounce_zone) Date: Tue, 28 Jul 2026 15:01:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297121 Bug ID: 297121 Summary: LinuxKPI: uma_zalloc_debug: zone "malloc-16" with the following non-sleepable locks held (alloc_bounce_zone) Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bz@FreeBSD.org CC: jhb@FreeBSD.org, markj@FreeBSD.org I got a problem report on testing a wireless driver (unrelated as the probl= em is in general LinuxKPI code). Filing the PR as I currently cannot debug it to the end and do not want to = lose it. I cannot remember this reported in the last years. amd64, 16GB memory, but in general it seems this is LinuxKPI holding the lo= ck and running into the alloc_bounce_zone() case which adds sysctls which will malloc with M_WAITOK (compared to everything else in the path). Cc: jhb, markj as you've done some the bounce buffer paths for this. I won= der how to best avoid that problem. Multiple of these with different malloc-XXx zones: uma_zalloc_debug: zone "malloc-16" with the following non-sleepable locks h= eld: exclusive sleep mutex lkpi-priv-dma (lkpi-priv-dma) r =3D 0 (0xfffff8001152= 63a0) locked @ /usr/src/sys/compat/linuxkpi/common/src/linux_pci.c:1746 stack backtrace: #0 0xffffffff80c8f27c at witness_debugger+0x6c #1 0xffffffff80c90b7c at witness_warn+0x4bc #2 0xffffffff8100596f at uma_zalloc_debug+0x3f #3 0xffffffff810054b7 at uma_zalloc_arg+0x27 #4 0xffffffff80be07dd at malloc+0x7d #5 0xffffffff80c20ffb at sysctl_add_oid+0x6b #6 0xffffffff81155d3f at alloc_bounce_zone+0x19f #7 0xffffffff81154ca0 at bounce_bus_dmamap_create+0x180 #8 0xffffffff80ef467f at linux_dma_map_phys_common+0x9f #9 0xffffffff80ef4514 at lkpi_dma_map_phys+0x24 ... lock order reversal: (sleepable after non-sleepable) 1st 0xfffff800115263a0 lkpi-priv-dma (lkpi-priv-dma, sleep mutex) @ /usr/src/sys/compat/linuxkpi/common/src/linux_pci.c:1746 2nd 0xffffffff81de6ce8 sysctl lock (sysctl lock, sleepable rm) @ /usr/src/sys/kern/kern_sysctl.c:886 lock order lkpi-priv-dma -> sysctl lock attempted at: #0 0xffffffff80c8ee3b at witness_checkorder+0xd3b #1 0xffffffff80c09a14 at _rm_wlock_debug+0x64 #2 0xffffffff80c21070 at sysctl_add_oid+0xe0 #3 0xffffffff81155d3f at alloc_bounce_zone+0x19f #4 0xffffffff81154ca0 at bounce_bus_dmamap_create+0x180 #5 0xffffffff80ef467f at linux_dma_map_phys_common+0x9f #6 0xffffffff80ef4514 at lkpi_dma_map_phys+0x24 ... --=20 You are receiving this mail because: You are the assignee for the bug.=