From nobody Mon Nov 21 09:39:31 2022 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 4NG2R746gDz4hVfn for ; Mon, 21 Nov 2022 09:39:31 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NG2R72zT2z3mbW for ; Mon, 21 Nov 2022 09:39:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669023571; 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: in-reply-to:in-reply-to:references:references; bh=Fcc+u6IkHKa3EU7INovQDety3Br8wPs5DoarKE1gX+A=; b=F6Uwj9RG6LDaiUKMxgbcyWe0QXiADm1PiT6PoIBTM1Kyp7t0treTk3TQe7zvJyRrKhjXIH oSwut54AK2jh4ZpcGT4T65h5blhPr0cWvtcVtnVqYjh3j9F2ZlslYnkYUF0P28fnQyxFT1 +J9KG6Ru++7Rv8GLVAtOhhb6EHy/6nJDyWp7yS8xyw/FU1Xbht2nMsapF7sXMq2I9A5Tod xfK9wcR/JnvXtJPt5U1wfeK/2k5mS+72erRGT/rvHfTI/zENvnWhUXoOJpxtZ3osl2Qu3P MhdgTkWNIkEh4TzNROPYhtjf7qayYDP2gPIaZdCEDUca2XQ0+jUROx+NM6DGLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669023571; a=rsa-sha256; cv=none; b=dpoQ8tvbNm0MrIrs7jA9x+5yU1QO088aXzkdjZX4zdrPDVI01cpz3uoNsrcWjtgCx7UbJb Bp5y5nGKlPgnejg1+QmBtdKsz3+EKuFag3Frl7Qh9pQmJ3Iru5IgG11jE9XEw52mwGXlLZ n6XpRAFTeEopZr/E7q0d1f/BgjyxmHyOB7eTV9r/0pV6O+WRX9qaih4apOACyjaaiZDW5d F+JNOAR6/0FUanoIT+rrt/57nMM6TOLfY3O0ubhu9iEgFZ6hcxbdPBchWrgZZBTC1mRIHK mbO6aWlBQr8kHnkX1KPjey1mkgEEo5nu2D46VkLaZa4STdtAgWME85HWvtSHgQ== 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 4NG2R71v9tzySh for ; Mon, 21 Nov 2022 09:39:31 +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 2AL9dVu9053316 for ; Mon, 21 Nov 2022 09:39:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AL9dVVp053315 for bugs@FreeBSD.org; Mon, 21 Nov 2022 09:39:31 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 266480] Panic "sleeping thread" with qlnxe driver Date: Mon, 21 Nov 2022 09:39:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei.huang@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266480 --- Comment #1 from Zhenlei Huang --- From the stack dump: > Sleeping thread (tid 100919, pid 62482) owns a non-sleepable lock > KDB: stack backtrace of thread 100919: > sched_switch() at sched_switch+0x630/frame 0xfffffe00c741ddf0 > mi_switch() at mi_switch+0xd4/frame 0xfffffe00c741de20 > sleepq_timedwait() at sleepq_timedwait+0x2f/frame 0xfffffe00c741de60 > _sleep() at _sleep+0x1c8/frame 0xfffffe00c741dee0 > pause_sbt() at pause_sbt+0xf1/frame 0xfffffe00c741df10 > qlnx_stop() at qlnx_stop+0x4b5/frame 0xfffffe00c741dfa0 > qlnx_init_locked() at qlnx_init_locked+0x2a/frame 0xfffffe00c741e070 > qlnx_ioctl() at qlnx_ioctl+0x53a/frame 0xfffffe00c741e0d0 > ifhwioctl() at ifhwioctl+0x596/frame 0xfffffe00c741e150 > ifioctl() at ifioctl+0x4bc/frame 0xfffffe00c741e210 > kern_ioctl() at kern_ioctl+0x2b7/frame 0xfffffe00c741e270 > sys_ioctl() at sys_ioctl+0x101/frame 0xfffffe00c741e340 > amd64_syscall() at amd64_syscall+0x387/frame 0xfffffe00c741e470 > fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00c741e470 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x800b54d4a, rsp =3D = 0x7fffffffd198, > rbp =3D 0x7fffffffd210 --- > panic: sleeping thread > cpuid =3D 3 > time =3D 1663318115 > KDB: enter: panic `qlnx_stop()` tried to sleep while is under mutex locked. That is prohibit since mutex is not sleepable lock. See mutext(9): > Sleeping > Sleeping while holding a mutex (except for Giant) is never safe and > should be avoided. There are numerous assertions which will fail if = this > is attempted. The driver calls `qlnx_mdelay()`, cold boot and hot boot differs. > #define qlnx_mdelay(fn, msecs) \ > {\ > if (cold) \ > DELAY((msecs * 1000)); \ > else \ > pause(fn, qlnx_ms_to_hz(msecs)); \ > } I guess this happens when your box is hot rebooted. Can you please try cold reboot (shutdown -p and then startup) your box and = try again? --=20 You are receiving this mail because: You are the assignee for the bug.=