From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.146 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796083933; b=QeAXgm+ShzCMaQEDLJ2DybItmh/uEPpT8+BhgLQl0yYpi3aJjulOS95hSb5xOgsbWfrM 306g1TzF1x9GH8hqHxY0Yad308C7EV7DPp/HRbhR0XRDaim5mUpWJdxVy4/VQs1Hf5uPq kJHrP8qgZZVSxftENECAN8lG49f0GsicngJCvcg6VmzgCZT1KHa0+dBJF4T+eN2WWeGV7 9hPQIFpHXk2aZsaghIIn5+N0rCgU3cz04IVUjHXkTacKW5VljB8Lue0vdpD22PaXmhIoT 7lyNrBwWXxjCmcYeHB5qIYptwb6qUCbOZeda0IYulix0WrXBPBsBZ2IxQ64KNoW6ILw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796083933; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer: MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To: References:Subject:Content-Type:Content-Transfer-Encoding; bh=ilwvizxmpgEJuIsme/SP4PiIXX7GeTFEuZMRSxU8ORo=; b=tmY/kx7I/G8UXWqys46CQywxg7Dq0jXk2T0Xf6whj/qQ1n2lmugzQQYSLF4Da53NRLpz SaV4JlNG2XfNXaqejRPPEH3OWWGzs3on9DbCKuGXB2DsJIsA7fQ5cJUpL/ceetlwImPp7 HkjcHm856+7dyuhG8gIK/aShTSJgZIRc47gOQyyDMp+zQwU7xY3fC4hN8pRpKjLYMEMTn DybSg870UNRUhnSv1LHd+/1Sy7+dFcEtMbeKLhn57mk45QWkPdKRQNd/OV8+USJbuqpJb Dk4XGcIk0oSqEH4o4v0MwoVDToQ4wm++uIRaE5mZof1gX6dHyOxi85clcaNqSRkN5GA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cbannister.uk; spf=pass smtp.mailfrom=cbannister.uk; dkim=pass header.d=cbannister.uk header.i=@cbannister.uk header.a=rsa-sha256 header.s=fm3 header.b=QRkQ1nnt; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b="l0y/L3l5"; arc=none smtp.remote-ip=202.12.124.146 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F0DE606A325 for ; Tue, 1 Dec 2026 00:12:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9F0DE606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cbannister.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cbannister.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=cbannister.uk header.i=@cbannister.uk header.a=rsa-sha256 header.s=fm3 header.b=QRkQ1nnt; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=l0y/L3l5 Received: from ams-compute-01.internal (ams-compute-01.internal [10.64.2.61]) by mailfout.stl.internal (Postfix) with ESMTP id CE6821D0047E for ; Mon, 30 Nov 2026 19:12:11 -0500 (EST) Received: from ams-imap-03 ([10.64.2.23]) by ams-compute-01.internal (MEProxy); Mon, 30 Nov 2026 19:12:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbannister.uk; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1796083925; x=1796170325; bh=ilwvizxmpgEJuIsme/SP4PiIXX7GeTFE uZMRSxU8ORo=; b=QRkQ1nntNO8pi9syozKtnSwR3GHcVrpKTptXo/wcrYeryn45 beiBItpJioDLO7RRqGmsXW5H6wDUvOiM54ndFqXD4c2jEq44GUkTkSe/fxyOkdVC Whotiaulcq/9mDX8zQLg6zokbQAEKU5PX74Z8/BFNb6LyrjjNdlY5m8A7osmrIe9 yEepzJChFe0nilqpzEiT04OQ7IC+cRPgW8u4vGhalqpXZCQKMOCUiu5msRf3WeYh YvZjKfoPqwUT6N/Qj85Ri/M/tQD9nErD6F3H8AKczeW2tLogc510Cswe8OUqvjz4 2qcF6rw6aZntoNIW9bXCAjHiomJ0K/Q8PSs0hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1796083925; x= 1796170325; bh=ilwvizxmpgEJuIsme/SP4PiIXX7GeTFEuZMRSxU8ORo=; b=l 0y/L3l5bmxSn6B/AB18hOxNsGZKgG+E99B+fdLLhoy20FGnEpriNUKV8eUaftNPv PT4WsxqhHk+s/UmsH8BdTWjPrQ2gSHbrnBGmBEwnux2314ue5/QmS6SH647M4vnL 8bG9Mc46Ye+I7KSsdpPUOywhDR0dSP39fIr4GQrtWmUZnFVia4adDeJWNSoV8hmf ZhvIgli6ZhNWbLQbpmdQT37MpfMOvZEFfbdpDSuGKVDROBPnq+dQEKy8NuIZHbtS 2Ul4ZR+UQDbOMxuMdrZCn54SQGLw9gbeCn5t74J5Tl/YgFHvCFEl0Qc7zUkq84Ya DUEUGD/pDacvSHwTogC0g== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=cbannister.uk a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796083925; d=cbannister.uk; mf=PGtlcm5lbEBjYmFubmlzdGVyLnVrPg==; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:BEaFvL2kYrtXIY/L/G0jmGzQ+AAZ41G0ZDVC+sXTegWG/gI uvpKENHdczsnjlqodYZkkiZFZ+m8/3QIWhPWywzk1yEWOSictwR0bxZep70CU7q2 9SEC6vSDQ9iX4NOKMulZ+sqXr6CrI3HOEcXOmFtI5tjFOK4itLJ+noPiaTxS9CYm AERxhSf9Cz5+XmCNfBl7v/RelGSuICIjevnIvpIM8RR6V7xUrJvWCPFdhKYYlpwt AJ9C5jhzcfohPN0k7QofXidG9rUwFheNUR7hV+TXIAW8LZb/byzDL9Xe5ClJBtgH sAEnjWIOApOHaY3gIHk82UYwKPAIg5l/tePYE2A==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:EaIwHpyc4fpPgzzKPbKbieJ+1OXxI6N92sRCy4uPTHQ=:ilwvizxmpgEJuIsme/SP4PiIXX7GeTFEuZMRSxU8ORo=; X-ME-Sender: X-ME-Proxy-Cause: dmFkZTEz5ZfJUkpbQ3D8v1D/NbOoVOiGID7xbS5KV4LkSHcB2WHpZopcgCkqN6UGlzbQca uhAzZPyfItuxJ12xlqMYxyv23GKL2Xk9KBhXfPyj6ng59obCfuJuMoSsnUPDwTeAx3Et+o 3eA0uXpW77tg6rAX2xcHnLt331FTZtk13JFbRqErCn7wi7pQuO5qkUAv5bqWW9r5HuFsUB fz6NBU/gVb1wOiCWPiLmLD1P/PAfA/GZc1y0SV8vWo6v1BT143OxHw1B1LPRiamkYhfTct xW513oHB7N2w0lTxHsoc4ICrcjs8Cr2jpYqLos4f2aprXs92MmYvLwCax0l7uQmwfihHAF /f8V8E/ih8IzZsuxpczA90N0jzMKX4dbXFCaCA/S1bhl9yPrHMkgR9x0/g1qG2sBgSuWuS JuUv162tE3EqwXee3xQwdI2iQkRSsIfWrBUOZFudeOS6AIBBrohFMA8U++fCIx0Ifl28p8 LVK22IkV3uO2KoStWqXKjQ0s38BnzEiqjROG4Iyz1OwUhiGGhkkzC7Fp/8sIoknPeCk0Is Igg1LOz9XqnmXzWqqjQPzGOEV1s9xox+CuKbB9ue36fODyOjmmzLc73iSom0nkhCI1IJVH UY18DHeJCW6aFiNf3UHoEVKNc3evf1NU0lHSEfF18yxv4DgBAPrU3U5U+y7g X-ME-Proxy: Feedback-ID: ic4a04a9c:Fastmail Received: by mailuser.ams.internal (Postfix, from userid 501) id 1759A32A0099; Mon, 30 Nov 2026 19:12:01 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-ThreadId: A_m61xmPlSDw Date: Tue, 01 Dec 2026 00:11:40 +0000 From: "Chris Bannister" To: netdev-bot+sashiko@kernel.org Cc: edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, willemb@google.com, horms@kernel.org, kuniyu@google.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, regressions@lists.linux.dev, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <179607837909.3146.12869515913198207631@kernel.org> References: <20261129223628.2167924-4-kernel@cbannister.uk> <179607837909.3146.12869515913198207631@kernel.org> Subject: Re: [PATCH net 3/3] selftests: net: test that RTM_GETLINK answers from the target netns Content-Type: text/plain Content-Transfer-Encoding: 7bit Thanks for the review. The points about the test are fair, and I will send a v2. > Could the fix this test depends on be named by its subject rather than > as "1/3 and 2/3"? Yes. The test needs "rtnetlink: look the device up under RTNL in full rtnl_getlink() requests". > Could the message say who produced these results? AI tools that I directed did those 80 runs, in VMs on a test machine of mine. I had not run the test when I posted it. I have now run it myself in VMs: it fails without the fixes and passes with them. > Is a 'D' state enough to show that the sender is on the rtnl_mutex > wait list? No. With a 50 ms sleep added before the lookup in a kernel without the fixes, the test passed all 20 runs when it should have failed. Checking wchan instead is not simple, because the function it shows differs between kernels. It showed rtnl_setlink and rtnl_getlink, rtnetlink_rcv_msg for the request before e896e5c0734b, and rt_mutex_schedule with PREEMPT_RT. It never showed rtnl_lock or __mutex_lock in the kernels tried. > Should the test skip rather than fail in that case, so that fixing the > RTNL stall doesn't make this selftest fail? Yes, it should skip. On a kernel changed so that SIOCGIFCONF waits for the page before taking RTNL, the test did not fail. It passed all 20 runs, because it mistook another sleep during the netns move for waiting on RTNL. > Would resolving the fault before the ASSERT fails keep a failing run > from stalling RTNL for the whole machine? Not by much, because a failed ASSERT ends the process, and that releases the lock. The stall comes from the waiting before it, so that is what needs a limit. > Should there also be a request by name? Yes. With only the lookup by name moved back before RTNL, the test still passed all 20 runs. AI tools that I directed also did the runs on changed kernels and with PREEMPT_RT. A question for the maintainers, following the one in the cover letter: is this test worth keeping? It relies on SIOCGIFCONF holding RTNL while it copies to user space, and checking the wait properly seems to need more reliance on kernel internals. I can send a fixed 3/3, or only 1/3 and 2/3. pw-bot: cr