Netdev List
 help / color / mirror / Atom feed
From: Murali Krishna <muralikrishna2444b@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: Murali Krishna <muralikrishna2444b@gmail.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Shuah Khan <shuah@kernel.org>,
	Hangbin Liu <hangbin.liu@linux.dev>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3] selftests: net: add tests for the QRTR socket family
Date: Thu,  3 Dec 2026 19:50:01 +0530	[thread overview]
Message-ID: <20261203142024.15053-1-muralikrishna2444b@gmail.com> (raw)
In-Reply-To: <179630210271.3146.11727363632224442979@kernel.org>

On Thu, Dec 03, 2026 at 12:48:22PM +0000, netdev-bot+sashiko@kernel.org wrote:
> - [Medium] qrtr_endpoint.c gives the fake /dev/qrtr-tun endpoint the
>   fixed node id TEST_SRC_NODE = 5.

Agreed. qrtr_node_assign() gives the tun endpoint the id even when
another node already has it, so a small fixed id can be taken for a
real remote processor on a Qualcomm board. v4 still has this; v5 will
use 0xfff0, near the top of the 16-bit v2 node field.

> - [Medium] qrtr.sh passes on only the binaries' failure status, so it
>   exits 0 (PASS) whenever nothing actually runs

Fixed in v4: if no test passes and none fails, qrtr.sh now exits
with the kselftest skip code.

> - [Medium] The commit message says the suite covers the CAP_NET_ADMIN
>   boundary, but bind_privileged_port in qrtr_sock.c does not test it

Fixed in v4: the test drops CAP_NET_ADMIN itself, so a single run as
root checks both sides: with it, binding a low port succeeds; without
it, binding the port just below the ephemeral range fails with EACCES.
v5 also checks that the first port of the range is not refused
without it, and only trusts capget() in the initial user namespace,
since capable() checks that one.

> - [Medium] The qrtr_endpoint.c header comment (lines 11-12) and the
>   commit message say each frame is malformed in exactly one way

Fixed in v4: zero_size and unaligned_length now fail only the check
they are named for, and the comments say which checks cannot be
tested on their own. In v5, size_exceeds_frame uses a frame that only
the size check rejects when size_t is 32-bit.

> - [Low] Since commit 3b536db8fb32, qrtr_create() in net/qrtr/af_qrtr.c
>   returns -EAFNOSUPPORT for any network namespace other than init_net

Right. v5 mentions init_net in the skip messages and in the comment.
qrtr.sh does not need to detect it: as root outside init_net,
qrtr_endpoint still runs the tests that need no socket, and a run
where no test passes or fails is reported as a skip.

v4: https://lore.kernel.org/r/20261203122145.144381-1-muralikrishna2444b@gmail.com

pw-bot: cr

      reply	other threads:[~2026-12-03 14:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:03 [PATCH net-next v3] selftests: net: add tests for the QRTR socket family Murali Krishna
2026-12-03  2:01 ` Hangbin Liu
2026-12-03 12:48 ` netdev-bot+sashiko
2026-12-03 14:20   ` Murali Krishna [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=20261203142024.15053-1-muralikrishna2444b@gmail.com \
    --to=muralikrishna2444b@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hangbin.liu@linux.dev \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    /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