From nobody Sat May 18 22:59:13 2024 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 4VhfQn5pq8z5KBCD for ; Sat, 18 May 2024 22:59:13 +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 4VhfQn2gtLz3xdD for ; Sat, 18 May 2024 22:59:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716073153; a=rsa-sha256; cv=none; b=gKuzR9D5uwpi343sGP8qvK8ZeuXNox9UrkEsmHsbArSNy5/nLdZtAAdc45EoRB4h0EhKJn eJLk3nN+ra0pF69qxrzYhxMNoF5KRBXagy6vz/4v2Z7di96FS7kEiKcDfaqmrFZEI8v1yY gOhbo0wdFJHGXYx+Ch0L3OP1XcAxChE/uE/MD693ZvVA1u797Nw5KFa1RnqroOonTKcFhk ZHNCl2nG3umQ3hLGSdduzY8EU5KKVmLLeSK1f1lbC38FmhuvOgMgEMqD1zmVwlT0zhUKhc YnY5VBMNHmR6pX0PnXs64I7j3aZn3ZAxrbPKvWLbC3Ivb3AFDE9icEkkzSPSRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716073153; 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: in-reply-to:in-reply-to:references:references; bh=zEb7CMP3ody/JNSWCicX5lUpNbKZrHshbQn3nTNgYgQ=; b=V63Qt1Rf3Rm2OOGR48ErtKFaEUqoAiluWESrcuNzqRuqlQhzI+KyEVQftPg4rvqWVwuLl1 Kef6o5/chIXNYz5wgXxEifETR0xw4cIM/cNoyFEMZrO0SuMXvYlguQhxBKsGXL4PB2Gk3d JTmEJhtP3MKV0gwe+lS4/pR+15B/quhpriQ9VUkqd+QrbhgM3btFduSC2fRrNzBBGGg/sZ re2VWdbk7W3yyUdSjdZQGiBz5jl/wqB7kowEMhHfFr9O33enSm8+D6pJHW+1XhybtN4xfr 7h/dPC7x+nzhh6/Uy8z4s8+p7BWL7sVYxS5H0scD5ZwfUqg+Rgpx0ScTLmjwQQ== 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 4VhfQn1lNrzlb4 for ; Sat, 18 May 2024 22:59:13 +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 44IMxDZg072150 for ; Sat, 18 May 2024 22:59:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44IMxDuu072144 for bugs@FreeBSD.org; Sat, 18 May 2024 22:59:13 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 279138] NFS and NFSUPG and BUFWAIT Date: Sat, 18 May 2024 22:59:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@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: Message-ID: In-Reply-To: References: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279138 --- Comment #3 from Konstantin Belousov --- The first LoR looks as a false positive, mostly. It is readdirplus doing scan of the directory, and then querying the attributes of each found entry' node, except dotdot. So the lock order is parent vnode -> (it's buffers) -> child vnode, as expected by VFS. I said "mostly" because server can do the directory move like from A->B to B->A while client is not aware, and I am not completely sure that our clien= t- side invalidations would avoid tricking in this situation. But this is very unlikely. For the second LoR, nfsupg->bufwait, the reported order is right. I wonder where the reversed order was recorded. That said, to diagnose the problem, you need to gather the information list= ed in the developer's handbook, debugging kernels, debugging deadlocks: https://docs.freebsd.org/en/books/developers-handbook/kerneldebug/#kernelde= bug-deadlocks --=20 You are receiving this mail because: You are the assignee for the bug.=