From owner-freebsd-current@freebsd.org Sun May 3 13:18:09 2020 Return-Path: Delivered-To: freebsd-current@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 C6F612DD7A4 for ; Sun, 3 May 2020 13:18:09 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49FRPY0gxkz4gCZ for ; Sun, 3 May 2020 13:18:08 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from [10.70.7.24] ([10.70.7.24]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id 043DI7qE099783 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 3 May 2020 13:18:07 GMT (envelope-from list1@gjunka.com) Subject: Re: lock order reversal and poudriere To: freebsd-current@freebsd.org, bzeeb+freebsd+lor@zabbadoz.net References: <68514e96-f1a5-0c8d-998f-bf81034ed61d@gjunka.com> From: Grzegorz Junka Message-ID: <0c256497-955c-122e-400a-8642f90b8e97@gjunka.com> Date: Sun, 3 May 2020 14:18:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <68514e96-f1a5-0c8d-998f-bf81034ed61d@gjunka.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 49FRPY0gxkz4gCZ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-5.87 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd,lor]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gjunka.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.57)[ip: (-9.36), ipnet: 88.98.192.0/18(-4.68), asn: 56478(-3.75), country: GB(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 13:18:09 -0000 On 02/05/2020 10:08, Grzegorz Junka wrote: > I am compiling some packages with poudriere on 13-current kernel. I > noticed some strange messages printed into the terminal and dmesg: > > lock order reversal: >  1st 0xfffff8010ca78250 zfs (zfs) @ /usr/src-13/sys/kern/vfs_mount.c:1005 >  2nd 0xfffff8010cd37250 devfs (devfs) @ > /usr/src-13/sys/kern/vfs_mount.c:1016 > stack backtrace: > #0 0xffffffff80c2d5f1 at witness_debugger+0x71 > #1 0xffffffff80b92f18 at lockmgr_lock_flags+0x188 > #2 0xffffffff80cae744 at _vn_lock+0x54 > #3 0xffffffff80c90756 at vfs_domount+0xd16 > #4 0xffffffff80c8efd1 at vfs_donmount+0x871 > #5 0xffffffff80c8e729 at sys_nmount+0x69 > #6 0xffffffff81060c40 at amd64_syscall+0x140 > #7 0xffffffff810370a0 at fast_syscall_common+0x101 > pid 17216 (conftest), jid 6, uid 0: exited on signal 11 > pid 51159 (conftest), jid 6, uid 0: exited on signal 11 > pid 23833 (conftest), jid 3, uid 0: exited on signal 11 > pid 4916 (conftest), jid 3, uid 0: exited on signal 11 > > (... then there is a bunch of similar ones, then ...) > > pid 14504 (conftest), jid 3, uid 0: exited on signal 11 > pid 27466 (conftest), jid 6, uid 0: exited on signal 11 > pid 43297 (conftest), jid 5, uid 0: exited on signal 11 > lock order reversal: >  1st 0xfffffe00bc68c030 filedesc structure (filedesc structure) @ > /usr/src-13/sys/kern/sys_generic.c:1557 >  2nd 0xfffff803baeddbd8 tmpfs (tmpfs) @ > /usr/src-13/sys/kern/vfs_vnops.c:1553 > stack backtrace: > #0 0xffffffff80c2d5f1 at witness_debugger+0x71 > #1 0xffffffff80b946b5 at lockmgr_xlock+0x55 > #2 0xffffffff80cae744 at _vn_lock+0x54 > #3 0xffffffff80cad0da at vn_poll+0x3a > #4 0xffffffff80c33e19 at kern_poll+0x419 > #5 0xffffffff80c340df at sys_ppoll+0x6f > #6 0xffffffff81060c40 at amd64_syscall+0x140 > #7 0xffffffff810370a0 at fast_syscall_common+0x101 > pid 37533 (conftest), jid 5, uid 0: exited on signal 11 > pid 43474 (conftest), jid 5, uid 0: exited on signal 11 > > I restarted the compilation and again seeing similar LORs: lock order reversal:  1st 0xfffff80115d32068 zfs (zfs) @ /usr/src-13/sys/kern/vfs_mount.c:1005  2nd 0xfffff800243d6808 devfs (devfs) @ /usr/src-13/sys/kern/vfs_mount.c:1016 stack backtrace: #0 0xffffffff80c2d5f1 at witness_debugger+0x71 #1 0xffffffff80b92f18 at lockmgr_lock_flags+0x188 #2 0xffffffff80cae744 at _vn_lock+0x54 #3 0xffffffff80c90756 at vfs_domount+0xd16 #4 0xffffffff80c8efd1 at vfs_donmount+0x871 #5 0xffffffff80c8e729 at sys_nmount+0x69 #6 0xffffffff81060c40 at amd64_syscall+0x140 #7 0xffffffff810370a0 at fast_syscall_common+0x101 lock order reversal:  1st 0xfffffe00a7aa49b0 filedesc structure (filedesc structure) @ /usr/src-13/sys/kern/sys_generic.c:1557  2nd 0xfffff800aa2cdbd8 zfs (zfs) @ /usr/src-13/sys/kern/vfs_vnops.c:1553 stack backtrace: #0 0xffffffff80c2d5f1 at witness_debugger+0x71 #1 0xffffffff80b946b5 at lockmgr_xlock+0x55 #2 0xffffffff80cae744 at _vn_lock+0x54 #3 0xffffffff80cad0da at vn_poll+0x3a #4 0xffffffff80c33e19 at kern_poll+0x419 #5 0xffffffff80c339f0 at sys_poll+0x50 #6 0xffffffff81060c40 at amd64_syscall+0x140 #7 0xffffffff810370a0 at fast_syscall_common+0x101 The page to report still returns 404 :) -- GrzegorzJ