From nobody Wed Apr 3 18:32:54 2024 X-Original-To: freebsd-current@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 4V8tfT0wZhz5Fb18 for ; Wed, 3 Apr 2024 18:33:05 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V8tfS316Dz4BP0 for ; Wed, 3 Apr 2024 18:33:04 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 68E8A8D4A177 for ; Wed, 3 Apr 2024 18:32:56 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 17E9C2D029D8 for ; Wed, 3 Apr 2024 18:32:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id cBau8hxEhdVE for ; Wed, 3 Apr 2024 18:32:55 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 309C22D029D2 for ; Wed, 3 Apr 2024 18:32:55 +0000 (UTC) Date: Wed, 3 Apr 2024 18:32:54 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-current@freebsd.org Subject: LOR so_snd_sx / nfs Message-ID: <6nn67272-3osp-26o7-170p-14p1n6476633@yvfgf.mnoonqbm.arg> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spamd-Bar: - X-Spamd-Result: default: False [-1.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.50)[0.497]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; R_DKIM_NA(0.00)[]; MISSING_XM_UA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zabbadoz.net]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4V8tfS316Dz4BP0 NFS root boot of a Lab machine; calling wpa_cli: Thilock order reversal: 1st 0xffff0001d4e1c800 so_snd_sx (so_snd_sx, sx) @ /usr/src/sys/kern/uipc_socket.c:4020 2nd 0xffffa020cb20e930 nfs (nfs, lockmgr) @ /usr/src/sys/kern/vfs_lookup.c:1083 lock order nfs -> so_snd_sx established at: #0 0xffff000000529588 at witness_checkorder+0x328 #1 0xffff0000004bdf48 at _sx_xlock+0x70 #2 0xffff0000005687e0 at soiolock+0x5c #3 0xffff000000567ff0 at sosend_generic+0x104 #4 0xffff0000005688b8 at sosend+0x48 #5 0xffff00000076b6a0 at clnt_vc_call+0x570 #6 0xffff000000769914 at clnt_reconnect_call+0x1c4 #7 0xffff0000003552ec at newnfs_request+0x7e4 #8 0xffff00000037abf0 at nfsrpc_getattrnovp+0xfc #9 0xffff00000039823c at mountnfs+0x6ec #10 0xffff000000395c64 at nfs_mount+0xe78 #11 0xffff00000059b59c at vfs_mount_sigdefer+0x30 #12 0xffff0000005a44c8 at vfs_domount_first+0x254 #13 0xffff0000005a0884 at vfs_domount+0x2d4 #14 0xffff00000059f1ec at vfs_donmount+0x824 #15 0xffff0000005a3438 at kernel_mount+0x64 #16 0xffff0000005a72b0 at parse_mount+0x494 #17 0xffff0000005a59ac at vfs_mountroot+0x5b8 lock order so_snd_sx -> nfs attempted at: #0 0xffff000000529cd8 at witness_checkorder+0xa78 #1 0xffff00000047edb8 at lockmgr_lock_flags+0x78 #2 0xffff000000390044 at nfs_lock+0x34 #3 0xffff00000059793c at vop_sigdefer+0x38 #4 0xffff0000005c3734 at _vn_lock+0x58 #5 0xffff00000059cb78 at vfs_lookup+0x12c #6 0xffff00000059c01c at namei+0x280 #7 0xffff0000005751f8 at unp_connectat+0x244 #8 0xffff000000576adc at uipc_sosend_dgram+0x3c0 #9 0xffff0000005689c8 at sousrsend+0x80 #10 0xffff00000056ec90 at kern_sendit+0x1e4 #11 0xffff00000056ef78 at sendit+0x1b0 #12 0xffff00000056edb4 at sys_sendto+0x4c #13 0xffff00000086ad40 at do_el0_sync+0x59c #14 0xffff00000084391c at handle_el0_sync+0x48 -- Bjoern A. Zeeb r15:7