From nobody Sun May 07 16:55:49 2023 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 4QDrCV04bFz49DFF for ; Sun, 7 May 2023 16:55:50 +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 4QDrCT5sW7z40yD for ; Sun, 7 May 2023 16:55:49 +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=1683478549; 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=rb3ctoRYZ5uERFmQdCbMa9RwskynHud8vQTRHrzxaec=; b=bUQ7XNZn3i7PaMP2uk8HqsGC+3W5uUpzzYc6x4W5o6LfkrMKZ48O3o6nkBVgVc9+XlpUQt QBGecQ5s5Mv6s8e9H1QZxD0sHApcm+bLmy/KmGocW+XtddfOHxU3WYIOa1IihRJKivDFPi 56H7Ihbdrk0HWmrkNR+HSKqkGIfevUWGfG5f5SL2MfYvQyjKZrMwamDgaezT6JzmV59a5r PiZhWLSGHm7lc5HAjLITlZeWNA7DWLBhHT4/S+Gn6jwioecZa1JlY0JhIWPFnco247Q5as M9KlJUNF1p+x8lTJEvS73+K0BR80h4XcH3V1FazopgtxDkD6ndnRKGbZenco0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683478549; a=rsa-sha256; cv=none; b=S7NkwCo5IcfdwoZeLBHl1c21qkMBDfQ/q6D9a/tz3Z3WN+cmf6zgKFSeW8p3YIibgyR/ZT ayuCgO1Ffm5RSz0KQNsxyJ1QQkihyklnZYlW2/yF1IyrvkIhC79VyBkx9zU4AeO9s2Zcqo 2drSGILm2y0dxt2DQ3PS5yegWMGinT/uFLtBUBvIg9PI1HBPN1LnERCTXYAWez07WFFsMd ldg9jyXnt91xGQaf6idkI/EulkK4XMAmZNHheM4qjf/2PXGg3YH6JwPZVrCA9DkHzoGPbO 149Ds64V7ZGBoz4cn+MjLElSSgTCfRAN7FRhT9KBrlcr5K4UflrXhsyiEJ683A== 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 4QDrCT4yZ7zR0b for ; Sun, 7 May 2023 16:55:49 +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 347Gtnui033443 for ; Sun, 7 May 2023 16:55:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 347GtnjM033442 for bugs@FreeBSD.org; Sun, 7 May 2023 16:55:49 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 271300] kernel panics when using linux module (mutex umtxql not owned / recursed on non-recursive mutex) Date: Sun, 07 May 2023 16:55:49 +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 Only Me X-Bugzilla-Who: bcran@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 attachments.created Message-ID: 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=3D271300 Bug ID: 271300 Summary: kernel panics when using linux module (mutex umtxql not owned / recursed on non-recursive mutex) Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bcran@FreeBSD.org Created attachment 242039 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242039&action= =3Dedit dmesg from a dual-EPYC PowerEdge R7525 I'm getting a couple of panics in the linux_sys_futex code when using the VS Code Remote SSH extension from my Linux machine to my FreeBSD 14-CURRENT PowerEdge R7525 system. I've attached the dmesg. FreeBSD maxamd 14.0-CURRENT FreeBSD 14.0-CURRENT #3 main-n262792-7e0f8b79b773-dirty: Sun May 7 07:58:16 MDT 2023=20=20=20=20 bcran@maxamd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 First is "mutex umtxql not owned": root@maxamd:/var/crash # kgdb -n 0 ... Unread portion of the kernel message buffer: panic: mutex umtxql not owned at /usr/src/sys/kern/kern_umtx.c:510 cpuid =3D 136 time =3D 1683471469 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0416344= c40 vpanic() at vpanic+0x152/frame 0xfffffe0416344c90 panic() at panic+0x43/frame 0xfffffe0416344cf0 __mtx_assert() at __mtx_assert+0xa0/frame 0xfffffe0416344d00 umtxq_remove_queue() at umtxq_remove_queue+0x4a/frame 0xfffffe0416344d30 linux_sys_futex() at linux_sys_futex+0x5ae/frame 0xfffffe0416344e00 amd64_syscall() at amd64_syscall+0x140/frame 0xfffffe0416344f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0416344f30 --- syscall (202, Linux ELF64, linux_sys_futex), rip =3D 0x801e0bde2, rsp = =3D 0xc86803da0, rbp =3D 0x168ed58 --- KDB: enter: panic Uptime: 56m5s Dumping 9776 out of 260660 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%.= .91% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59 59 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, -------------------------------------------- Second is "_mtx_lock_sleep: recursed on non-recursive mutex umtxql" Unread portion of the kernel message buffer: panic: _mtx_lock_sleep: recursed on non-recursive mutex umtxql @ /usr/src/sys/compat/linux/linux_futex.c:718 cpuid =3D 196 time =3D 1683477614 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe04ba90b= ba0 vpanic() at vpanic+0x152/frame 0xfffffe04ba90bbf0 panic() at panic+0x43/frame 0xfffffe04ba90bc50 __mtx_lock_sleep() at __mtx_lock_sleep+0x41f/frame 0xfffffe04ba90bce0 __mtx_lock_flags() at __mtx_lock_flags+0xe9/frame 0xfffffe04ba90bd30 linux_sys_futex() at linux_sys_futex+0x6c5/frame 0xfffffe04ba90be00 amd64_syscall() at amd64_syscall+0x140/frame 0xfffffe04ba90bf30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe04ba90bf30 --- syscall (202, Linux ELF64, linux_sys_futex), rip =3D 0x80160c1ee, rsp = =3D 0xc8d801c08, rbp =3D 0 --- KDB: enter: panic Uptime: 5m8s Dumping 9500 out of 260660 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%.= .91% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59 59 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, --=20 You are receiving this mail because: You are the assignee for the bug.=