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=1796083934; b=PL+vOdI7LCBk7iQL6plQoK/dkaRRDObjZTjLOrZeOG1Z87Cysfj463XQ4F1FEWKdK3Q9 7F+05Dry5DxdRqbNe3Y0/QxPb1AUU8GFfAsVzrHShZT1yFadrNKnh3eEpbUuklpkNTo4F UGcAO28SJ1syzl9YsvltYcaxekNFPD+/KoWraa7N2a2xw/wsKkGfT+fnCyswPy0DXhs4s GD+ZnoYS143+a82tQMJDfLR7YAHW8SEMH0f8WClqFoz5PfCXpY+8BETumrzm4rB6hKOft 6GWQPqgDbJtbk6ky65KEN5OHEYTeICmyoDyTAq7hk7nPzCFyHJImRrU+xvS2g1swaoA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796083934; 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=ptWHlLRXBhTwvnc4+Qgw6ZvsyLVdCKs/Nk0al3rMmIiVV4Z5iYuOz0W8Y8NZuAyJlPZY O9TT/b08snElGsVcbw4PpvyWlU9iuPg/81X9xjtfCla5CXbLsy46t/WkxvIDcV1jy+DH5 nE36SGRwctqveYuJqz/qddpp0MKOSaifKik3Yt3XzYR5YPmRKsfvRG7pv+Lq9AvufS5E0 e5Y7/I7AgHW1TvXU52HLtQJFSqVthHy7pC66xD+uJ8zDQc2Whubq5iYFtbH4+LgBsRvfh O9Pa+p8q23zG1BZbS3BxNLMDkfaXyUIN+3OmXp5DHfhwDQQmEEpW3lIuqo+M2S1b/7w== 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)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3B7D606A32E for ; Tue, 1 Dec 2026 00:12:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D3B7D606A32E 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 143441D00595 for ; Mon, 30 Nov 2026 19:12:12 -0500 (EST) Received: from ams-imap-03 ([10.64.2.23]) by ams-compute-01.internal (MEProxy); Mon, 30 Nov 2026 19:12:13 -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=PG5ldGRldkB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:VKy5P5EpnEzeKnekDi1r6Sp31BCj4mcn5nRRtV59+1o276I Bo4AUKxdWnAiiXd2ZY0uvYmoCxmDlenFE2/uswmuGr8POIErBp0qeEaN0Hg8uoSs cpfK6L2Oo3h/4cL/X0XOv7JNphc0K3/a5Jb90QHnKPMYcoPp5NNs8DOdIcMF9IKV McjgrumPNSmuH5LF3Fy/WwIgugsCU0LSKHP6ocnzBCcoy5lslIgrXL0Nyz54TVp6 XUIC0lg80RdufbAhxstQugBbeun5ur0mQhmy3xD9D2mNZJLK8N2sFIoE9Q/+f3EU TJLFPyCmV+AlL7nMWM9DTjHamS2Cs97FdTsD8jA==; 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: netdev@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