From: "Chris Bannister" <kernel@cbannister.uk>
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
Subject: Re: [PATCH net 3/3] selftests: net: test that RTM_GETLINK answers from the target netns
Date: Tue, 01 Dec 2026 00:11:40 +0000 [thread overview]
Message-ID: <efcebbca-a312-4ff3-b99f-0e19d5c60e1f@app.fastmail.com> (raw)
In-Reply-To: <179607837909.3146.12869515913198207631@kernel.org>
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
prev parent reply other threads:[~2026-12-01 0:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 22:36 [PATCH net 0/3] rtnetlink: build full rtnl_getlink() replies in one RTNL section again Chris Bannister
2026-11-29 22:36 ` [PATCH net 1/3] rtnetlink: look the device up under RTNL in full rtnl_getlink() requests Chris Bannister
2026-11-29 22:36 ` [PATCH net 2/3] rtnetlink: queue the rtnl_getlink() reply before releasing RTNL Chris Bannister
2026-11-29 22:36 ` [PATCH net 3/3] selftests: net: test that RTM_GETLINK answers from the target netns Chris Bannister
2026-11-30 22:39 ` netdev-bot+sashiko
2026-12-01 0:11 ` Chris Bannister [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=efcebbca-a312-4ff3-b99f-0e19d5c60e1f@app.fastmail.com \
--to=kernel@cbannister.uk \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=regressions@lists.linux.dev \
--cc=shuah@kernel.org \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®