From nobody Mon Apr 11 12:38:57 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 BDEEB1A9F185 for ; Mon, 11 Apr 2022 12:38:57 +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 4KcT1Y3LvVz4mFp for ; Mon, 11 Apr 2022 12:38:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 5004A2310B for ; Mon, 11 Apr 2022 12:38: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 23BCcvvn020524 for ; Mon, 11 Apr 2022 12:38:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23BCcvMd020523 for bugs@FreeBSD.org; Mon, 11 Apr 2022 12:38: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 263219] Kernel Panics when doing IO on USB3 device Date: Mon, 11 Apr 2022 12:38: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: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: luciano@vespaperitivo.it 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 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649680737; 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=ly0lo8SX5Z+/jhmlMgCmIN0wfwosuW2ncwSouKYyi2k=; b=hgLkzBr4DjI2dbMnWPDtTusKbX0F/fM/m9P/YKvZk53m2ObeNOrgV+DBeRwCHdUJpb8umU 0QWu37gq/NwfAPk2oiXnzrzz0j55rNh8HWoUmeT/7ePbuWthoJmFk+ikW3TD6ioSX6Serw TQGqxRyBMMHmQrayAiLGxl4DFbjw4AG8rfpHbSdhwDu21KQqooNw0h/uTmqIKOZ4omkTTS j1Dma98b0Xh4pIOz/3Y2kN2MX8SLZrzEpUl7mR7GFwQqcaIkMAwmCHGIxLSrBV+7LHRBQp 1ZYG8VgffdY96YgvhYJKAL7KCkGK/YjFcmjmwLMvVWrXQLePu61TTSrZvhKndg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649680737; a=rsa-sha256; cv=none; b=jatLO03zUnu2C2rnThV5t73TLlwprYdIK8ksR8r7k4hBT/vhhWfEtsC/IK+kCkclV8VzV5 eDEFCZGHAFqGHiCGYqwKsM0UXERluH6VB4GMXIpRbaw5jMNgzwDle1B+L9vyTnlP3zzGKJ gLYcc7PgiGrFXqY76N6zXncZEbxhwymEa2LE/ebfk5TN+kLhKu5mwveCEUR6pogFTR4vzB zrb1p+6y5W2wU3hkMgs7ZkGIYdHTDGy1X3gyfvBD38eAXbGHVIj9JHiHbCQUsOHocOeGVD uzeIWAx+qTlKouUbXquTVC7cZOiadvSAxI3T2qFhmMzgdDj1GyZDJpQDYBmGLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263219 Bug ID: 263219 Summary: Kernel Panics when doing IO on USB3 device Product: Base System Version: 12.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: luciano@vespaperitivo.it When writing to a hard disc accessed via USB3 I get a panic and a kernel coredump. I've recompiled my GENERIC Kernel with debug; uname -a says FreeBSD mordax 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 GENERIC amd64 dmesg says: #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARN_ON(!mutex_is_locked(&dev->struct_mutex)) WARN_ON(!mutex_is_locked(&fbc->lock)) WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))W= ARN_ON(!mutex_is_locked(&fbc->lock)) panic: pctrie_remove: impossible to locate the key cpuid =3D 3 time =3D 1649598985 KDB: stack backtrace: #0 0xffffffff80c2d4a5 at kdb_backtrace+0x65 #1 0xffffffff80be163b at vpanic+0x17b #2 0xffffffff80be14b3 at panic+0x43 #3 0xffffffff80c3152e at pctrie_remove+0x1ae #4 0xffffffff80cafa03 at reassignbuf+0x73 #5 0xffffffff80c90639 at bdirty+0x39 #6 0xffffffff80c8f80d at brelse+0x10d #7 0xffffffff80c920e0 at bufdone+0x2d0 #8 0xffffffff80b2db2b at g_io_deliver+0x1eb #9 0xffffffff80b2db2b at g_io_deliver+0x1eb #10 0xffffffff80b2aab2 at g_disk_done+0x102 #11 0xffffffff80c2665e at bioq_flush+0x7e #12 0xffffffff80382698 at cam_iosched_flush+0x18 #13 0xffffffff803bcdab at dadone+0x15b #14 0xffffffff8038cd77 at xpt_done_process+0x407 #15 0xffffffff8038f035 at xpt_done_td+0xf5 #16 0xffffffff80ba2a0e at fork_exit+0x7e #17 0xffffffff810d61de at fork_trampoline+0xe Uptime: 17h33m36s Dumping 837 out of 8023 MB:..2%..12%..22%..31%..41%..52%..62%..71%..81%..92%---<>--- issueing kgdb /usr/lib/debug/boot/kernel/kernel.debug /var/crash/vmcore.0 I get: GNU gdb (GDB) 11.2 [GDB v11.2 for FreeBSD] Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.2". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/debug/boot/kernel/kernel.debug... Unread portion of the kernel message buffer: (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 04 f2 84 e8 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI status: Check Condition (da0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error) (da0:umass-sim0:0:0:0): Error 5, Unretryable error g_vfs_done():da0p1[READ(offset=3D42497376256, length=3D131072)]error =3D 5 g_vfs_done():da0p1[READ(offset=3D42497507328, length=3D131072)]error =3D 5 g_vfs_done():da0p1[READ(offset=3D42497638400, length=3D131072)]error =3D 5 g_vfs_done():da0p1[WRITE(offset=3D964266131456, length=3D131072)]error =3D 5 g_vfs_done():da0p1[WRITE(offset=3D964266262528, length=3D131072)]error =3D 5 g_vfs_done():da0p1[READ(offset=3D7614693376, length=3D131072)]error =3D 5 g_vfs_done():da0p1[READ(offset=3D7614824448, length=3D131072)]error =3D 5 g_vfs_done():da0p1[WRITE(offset=3D964266393600, length=3D131072)]error =3D 5 g_vfs_done():da0p1[WRITE(offset=3D964266524672, length=3D131072)]error =3D 5 g_vfs_done():da0p1[READ(offset=3D7614955520, length=3D131072)]error =3D 5 g_vfs_done():da0p1[READ(offset=3D7615086592, length=3D131072)]error =3D 5 g_vfs_done():da0p1[WRITE(offset=3D26880512, length=3D3072)]error =3D 5 WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:577 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff828536bd at drm_atomic_helper_check_modeset+0xcd #2 0xffffffff8279d1cf at intel_atomic_check+0x1f #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:577 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff828536bd at drm_atomic_helper_check_modeset+0xcd #2 0xffffffff8279d1cf at intel_atomic_check+0x1f #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:577 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff828536bd at drm_atomic_helper_check_modeset+0xcd #2 0xffffffff8279d1cf at intel_atomic_check+0x1f #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:622 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82853840 at drm_atomic_helper_check_modeset+0x250 #2 0xffffffff8279d1cf at intel_atomic_check+0x1f #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 WARNING !drm_modeset_is_locked(&plane->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/driver= s/gpu/drm/drm_atomic_helper.c:821 #0 0xffffffff80e81f43 at linux_dump_stack+0x23 #1 0xffffffff82854917 at drm_atomic_helper_check_planes+0xa7 #2 0xffffffff8279deec at intel_atomic_check+0xd3c #3 0xffffffff828516bb at drm_atomic_check_only+0x2ab #4 0xffffffff82851a63 at drm_atomic_commit+0x13 #5 0xffffffff8287da38 at restore_fbdev_mode_atomic+0x1c8 #6 0xffffffff82879d5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a #7 0xffffffff8289f717 at vt_kms_postswitch+0x127 #8 0xffffffff80a4b79a at vt_window_switch+0x13a #9 0xffffffff80a4880f at vtterm_cngrab+0x1f #10 0xffffffff80b809c6 at cngrab+0x16 #11 0xffffffff80be15a5 at vpanic+0xe5 #12 0xffffffff80be14b3 at panic+0x43 #13 0xffffffff80c3152e at pctrie_remove+0x1ae #14 0xffffffff80cafa03 at reassignbuf+0x73 #15 0xffffffff80c90639 at bdirty+0x39 #16 0xffffffff80c8f80d at brelse+0x10d #17 0xffffffff80c920e0 at bufdone+0x2d0 <4>WARN_ON(!mutex_is_locked(&dev->struct_mutex)) <4>WARN_ON(!mutex_is_locked(&fbc->lock)) <4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock= ))WARN_ON(!mutex_is_locked(&fbc->lock)) panic: pctrie_remove: impossible to locate the key cpuid =3D 3 time =3D 1649598985 KDB: stack backtrace: #0 0xffffffff80c2d4a5 at kdb_backtrace+0x65 #1 0xffffffff80be163b at vpanic+0x17b #2 0xffffffff80be14b3 at panic+0x43 #3 0xffffffff80c3152e at pctrie_remove+0x1ae #4 0xffffffff80cafa03 at reassignbuf+0x73 #5 0xffffffff80c90639 at bdirty+0x39 #6 0xffffffff80c8f80d at brelse+0x10d #7 0xffffffff80c920e0 at bufdone+0x2d0 #8 0xffffffff80b2db2b at g_io_deliver+0x1eb #9 0xffffffff80b2db2b at g_io_deliver+0x1eb #10 0xffffffff80b2aab2 at g_disk_done+0x102 #11 0xffffffff80c2665e at bioq_flush+0x7e #12 0xffffffff80382698 at cam_iosched_flush+0x18 #13 0xffffffff803bcdab at dadone+0x15b #14 0xffffffff8038cd77 at xpt_done_process+0x407 #15 0xffffffff8038f035 at xpt_done_td+0xf5 #16 0xffffffff80ba2a0e at fork_exit+0x7e #17 0xffffffff810d61de at fork_trampoline+0xe Uptime: 17h33m36s Dumping 837 out of 8023 MB:..2%..12%..22%..31%..41%..52%..62%..71%..81%..92% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 55 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb) bt #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 doadump (textdump=3D) at /usr/src/sys/kern/kern_shutdown= .c:371 #2 0xffffffff80be1255 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:452 #3 0xffffffff80be1693 in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:881 #4 0xffffffff80be14b3 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:808 #5 0xffffffff80c3152e in pctrie_remove (ptree=3D, index=3D, freefn=3D) at /usr/src/sys/kern/subr_pctrie.c:621 #6 0xffffffff80cafa03 in BUF_PCTRIE_REMOVE (ptree=3D, key=3D) at /usr/src/sys/kern/vfs_subr.c:441 #7 buf_vlist_remove (bp=3D0xfffffe0001539420) at /usr/src/sys/kern/vfs_subr.c:2104 #8 reassignbuf (bp=3D0xfffffe0001539420) at /usr/src/sys/kern/vfs_subr.c:2= 543 #9 0xffffffff80c90639 in bdirty (bp=3D0xfffffe0001539420) at /usr/src/sys/kern/vfs_bio.c:2465 #10 0xffffffff80c8f80d in brelse (bp=3D0xfffffe0001539420) at /usr/src/sys/kern/vfs_bio.c:2658 #11 0xffffffff80c920e0 in bufdone (bp=3D0xfffffe0001539420) at /usr/src/sys/kern/vfs_bio.c:4458 #12 0xffffffff80b2db2b in g_io_deliver (bp=3D0xfffff801aabe8468, error=3D) at /usr/src/sys/geom/geom_io.c:740 #13 0xffffffff80b2db2b in g_io_deliver (bp=3D0xfffff801aae8ad38, error=3D) at /usr/src/sys/geom/geom_io.c:740 #14 0xffffffff80b2aab2 in g_disk_done (bp=3D0xfffff802024eb178) at /usr/src/sys/geom/geom_disk.c:261 #15 0xffffffff80c2665e in bioq_flush (head=3D0xfffff8000394db80, stp=3D0x0, error=3D5) at /usr/src/sys/kern/subr_disk.c:186 #16 0xffffffff80382698 in cam_iosched_flush (isc=3D0xfffff8000394db80, stp= =3D0x0, err=3D5) at /usr/src/sys/cam/cam_iosched.c:1183 #17 0xffffffff803bcdab in dadone (periph=3D0xfffff800047e2800, done_ccb=3D0xfffff8011cdb6000) at /usr/src/sys/cam/scsi/scsi_da.c:4483 #18 0xffffffff8038cd77 in xpt_done_process (ccb_h=3D0xfffff8011cdb6000) at /usr/src/sys/cam/cam_xpt.c:5517 #19 0xffffffff8038f035 in xpt_done_td (arg=3D0xffffffff81bc8180 ) at /usr/src/sys/cam/cam_xpt.c:5544 #20 0xffffffff80ba2a0e in fork_exit (callout=3D0xffffffff8038ef40 , arg=3D0xffffffff81bc8180 , frame=3D0xfffffe0000438b00) at /usr/src/sys/kern/kern_fork.c:1080 #21 (kgdb)=20 Maybe the disc has some hardware problems, though panic() is not the expect= ed behaviour... Luciano. --=20 You are receiving this mail because: You are the assignee for the bug.=