From owner-freebsd-testing@freebsd.org Sun Feb 16 11:12:36 2020 Return-Path: Delivered-To: freebsd-testing@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F074625AF02 for ; Sun, 16 Feb 2020 11:12:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48L4GC5mnYz3yhq for ; Sun, 16 Feb 2020 11:12:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A807F25AEFC; Sun, 16 Feb 2020 11:12:35 +0000 (UTC) Delivered-To: testing@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7FD8125AEFB for ; Sun, 16 Feb 2020 11:12:35 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48L4GB3sGyz3yhY for ; Sun, 16 Feb 2020 11:12:34 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3522B24D28 for ; Sun, 16 Feb 2020 11:12:34 +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 01GBCYvj093167 for ; Sun, 16 Feb 2020 11:12:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01GBCYkL093163 for testing@freebsd.org; Sun, 16 Feb 2020 11:12:34 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: testing@freebsd.org Subject: [Bug 244163] Lock-order reversals triggered by tests under sys.net.if_lagg_test.* Date: Sun, 16 Feb 2020 11:12:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: testing@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 MIME-Version: 1.0 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Feb 2020 11:12:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244163 Bug ID: 244163 Summary: Lock-order reversals triggered by tests under sys.net.if_lagg_test.* Product: Base System Version: CURRENT Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: tests Assignee: testing@freebsd.org Reporter: lwhsu@FreeBSD.org Lock-order reversals can be triggered by tests under sys.net.if_lagg_test.* https://ci.freebsd.org/job/FreeBSD-head-i386-test/8444/testReport/junit/sys= .net/if_lagg_test/witness/ Error Message Lock-order reversals involving if_lagg.c detected Standard Output debug.witness.badstacks: Number of known direct relationships is 1408 Lock order reversal between "proctree"(sx) and "GEOM topology"(sx)! Lock order "GEOM topology"(sx) -> "proctree"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfda33d at _sx_xlock+0x4d #2 0xf9491f at fork1+0xe5f #3 0xf9ff8c at kproc_create+0x6c #4 0x270ba4fb at g_eli_create+0x53b #5 0x270bdc87 at g_eli_config+0x1b57 #6 0xf25b56 at g_ctl_req+0xe6 #7 0xf29b8e at g_run_events+0x15e #8 0xf95a69 at fork_exit+0x69 #9 0xffc033de at lagg_detach_cookie+0xd8ada046 Lock order reversal between "allproc"(sx) and "GEOM topology"(sx)! Lock order "GEOM topology"(sx) -> "allproc"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfda33d at _sx_xlock+0x4d #2 0xf94252 at fork1+0x792 #3 0xf9ff8c at kproc_create+0x6c #4 0x270ba4fb at g_eli_create+0x53b #5 0x270bdc87 at g_eli_config+0x1b57 #6 0xf25b56 at g_ctl_req+0xe6 #7 0xf29b8e at g_run_events+0x15e #8 0xf95a69 at fork_exit+0x69 #9 0xffc033de at lagg_detach_cookie+0xd8ada046 Lock order reversal between "allprison"(sx) and "vnet_sysinit_sxlock"(sx)! Lock order "allprison"(sx) -> "vnet_sysinit_sxlock"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfdb339 at _sx_slock_int+0x49 #2 0x10ec4c1 at vnet_alloc+0xf1 #3 0xf9a8d7 at kern_jail_set+0x17b7 #4 0xf9bfe8 at sys_jail_set+0x38 #5 0x1410b51 at syscall+0x2e1 #6 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "in_multi_sx"(sx) and "pfsync"(sleep mutex)! Lock order "pfsync"(sleep mutex) -> "in_multi_sx"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfda33d at _sx_xlock+0x4d #2 0x113aa65 at in_joingroup+0x25 #3 0x25653f08 at pfsyncioctl+0x688 #4 0x1135f5d at in_control+0x2ed #5 0x10c1798 at ifioctl+0x5e8 #6 0x103d908 at soo_ioctl+0x178 #7 0x10363b1 at kern_ioctl+0x251 #8 0x10360f9 at sys_ioctl+0xf9 #9 0x1410b51 at syscall+0x2e1 #10 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "bufwait"(lockmgr) and "tmpfs"(lockmgr)! Lock order "bufwait"(lockmgr) -> "tmpfs"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa93b4 at lockmgr_xlock+0x44 #2 0x108160a at vop_lock+0x6a #3 0x1425c5f at VOP_LOCK1_APV+0x2f #4 0x10a4b2f at _vn_lock+0x4f #5 0xbe251e at mdstart_vnode+0x41e #6 0xbe09eb at md_kthread+0x1db #7 0xf95a69 at fork_exit+0x69 #8 0xffc033de at lagg_detach_cookie+0xd8ada046 Lock order "tmpfs"(lockmgr) -> "bufwait"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa7edd at lockmgr_xlock_hard+0x4d #2 0xfa8b1c at __lockmgr_args+0x6bc #3 0x1070ca5 at getblkx+0x125 #4 0x1073886 at getblk+0x26 #5 0x12a3bb6 at ffs_unmount+0x1b6 #6 0x1089b51 at dounmount+0x3f1 #7 0x10896fd at kern_unmount+0x25d #8 0x1089493 at sys_unmount+0x13 #9 0x1410b51 at syscall+0x2e1 #10 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "cpslk"(sx) and "pf rulesets"(rm)! Lock order "pf rulesets"(rm) -> "cpslk"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfda33d at _sx_xlock+0x4d #2 0x13eacac at cp_slow0+0x12c #3 0x13eaed7 at copyin+0xa7 #4 0x25683701 at pfioctl+0x1c11 #5 0xea6de4 at devfs_ioctl+0xa4 #6 0x1424ab8 at VOP_IOCTL_APV+0x28 #7 0x10a34cb at vn_ioctl+0x1cb #8 0xea736c at devfs_ioctl_f+0x2c #9 0x10363b1 at kern_ioctl+0x251 #10 0x10360f9 at sys_ioctl+0xf9 #11 0x1410b51 at syscall+0x2e1 #12 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "filedesc structure"(sx) and "GEOM topology"(sx= )! Lock order "GEOM topology"(sx) -> "filedesc structure"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfdb339 at _sx_slock_int+0x49 #2 0xf81ce6 at fdinit+0x96 #3 0xf81f4c at fdcopy+0x1c #4 0xf94502 at fork1+0xa42 #5 0xf9ff8c at kproc_create+0x6c #6 0x270ba4fb at g_eli_create+0x53b #7 0x270bdc87 at g_eli_config+0x1b57 #8 0xf25b56 at g_ctl_req+0xe6 #9 0xf29b8e at g_run_events+0x15e #10 0xf95a69 at fork_exit+0x69 #11 0xffc033de at lagg_detach_cookie+0xd8ada046 Lock order reversal between "GEOM topology"(sx) and "tmpfs"(lockmgr)! Lock order "tmpfs"(lockmgr) -> "GEOM topology"(sx) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfda33d at _sx_xlock+0x4d #2 0x12a3ccd at ffs_unmount+0x2cd #3 0x1089b51 at dounmount+0x3f1 #4 0x10896fd at kern_unmount+0x25d #5 0x1089493 at sys_unmount+0x13 #6 0x1410b51 at syscall+0x2e1 #7 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "devfs"(lockmgr) and "ufs"(lockmgr)! Lock order "devfs"(lockmgr) -> "ufs"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa7edd at lockmgr_xlock_hard+0x4d #2 0xfa8b1c at __lockmgr_args+0x6bc #3 0x12a5c5c at ffs_lock+0x5c #4 0x1425c5f at VOP_LOCK1_APV+0x2f #5 0x10a4b2f at _vn_lock+0x4f #6 0x1088e2a at vfs_domount+0xc2a #7 0x108788a at vfs_donmount+0x7da #8 0x108ad97 at kernel_mount+0x57 #9 0x108cdb2 at parse_mount+0x462 #10 0x108b723 at vfs_mountroot+0x493 #11 0xf71052 at start_init+0x22 #12 0xf95a69 at fork_exit+0x69 #13 0xffc033de at lagg_detach_cookie+0xd8ada046 Lock order "ufs"(lockmgr) -> "devfs"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa79c0 at lockmgr_lock_fast_path+0x140 #2 0x107ffce at vop_stdlock+0x1e #3 0x1425c5f at VOP_LOCK1_APV+0x2f #4 0x10a4b2f at _vn_lock+0x4f #5 0x12a1456 at ffs_flushfiles+0x106 #6 0x12a3a7c at ffs_unmount+0x7c #7 0x1089b51 at dounmount+0x3f1 #8 0x10896fd at kern_unmount+0x25d #9 0x1089493 at sys_unmount+0x13 #10 0x1410b51 at syscall+0x2e1 #11 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "devfs"(lockmgr) and "tmpfs"(lockmgr)! Lock order "tmpfs"(lockmgr) -> "devfs"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa79c0 at lockmgr_lock_fast_path+0x140 #2 0x107ffce at vop_stdlock+0x1e #3 0x1425c5f at VOP_LOCK1_APV+0x2f #4 0x10a4b2f at _vn_lock+0x4f #5 0x12a1456 at ffs_flushfiles+0x106 #6 0x12860ab at softdep_flushfiles+0x9b #7 0x12a3a72 at ffs_unmount+0x72 #8 0x1089b51 at dounmount+0x3f1 #9 0x10896fd at kern_unmount+0x25d #10 0x1089493 at sys_unmount+0x13 #11 0x1410b51 at syscall+0x2e1 #12 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "ufs"(lockmgr) and "tmpfs"(lockmgr)! Lock order "ufs"(lockmgr) -> "tmpfs"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa93b4 at lockmgr_xlock+0x44 #2 0x108160a at vop_lock+0x6a #3 0x1425c5f at VOP_LOCK1_APV+0x2f #4 0x10a4b2f at _vn_lock+0x4f #5 0x1088e2a at vfs_domount+0xc2a #6 0x108788a at vfs_donmount+0x7da #7 0x108707d at sys_nmount+0x5d #8 0x1410b51 at syscall+0x2e1 #9 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order "tmpfs"(lockmgr) -> "ufs"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa7edd at lockmgr_xlock_hard+0x4d #2 0xfa8b1c at __lockmgr_args+0x6bc #3 0x12a5c5c at ffs_lock+0x5c #4 0x1425c5f at VOP_LOCK1_APV+0x2f #5 0x10a4b2f at _vn_lock+0x4f #6 0x1088e2a at vfs_domount+0xc2a #7 0x108788a at vfs_donmount+0x7da #8 0x108707d at sys_nmount+0x5d #9 0x1410b51 at syscall+0x2e1 #10 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Lock order reversal between "syncer"(lockmgr) and "tmpfs"(lockmgr)! Lock order "tmpfs"(lockmgr) -> "syncer"(lockmgr) first seen at: #0 0x1031a3b at witness_checkorder+0x3ab #1 0xfa79c0 at lockmgr_lock_fast_path+0x140 #2 0x107ffce at vop_stdlock+0x1e #3 0x1425c5f at VOP_LOCK1_APV+0x2f #4 0x10a4b2f at _vn_lock+0x4f #5 0x10910e2 at vput_final+0x132 #6 0x1089b43 at dounmount+0x3e3 #7 0x10896fd at kern_unmount+0x25d #8 0x1089493 at sys_unmount+0x13 #9 0x1410b51 at syscall+0x2e1 #10 0xffc033c9 at lagg_detach_cookie+0xd8ada031 Standard Error Test case metadata ------------------ allowed_architectures is empty allowed_platforms is empty description =3D Check witness(4) for lock-order reversals in if_lagg has_cleanup =3D false is_exclusive =3D false required_configs is empty required_disk_space =3D 0 required_files is empty required_memory =3D 0 required_programs is empty required_user is empty timeout =3D 300 Timing information ------------------ Start time: 2020-02-13T17:16:25.985145Z End time: 2020-02-13T17:16:26.140134Z Duration: 0.155s Original stderr --------------- --=20 You are receiving this mail because: You are the assignee for the bug.=