From: Matthieu Baerts <matttbe@kernel.org>
To: David Carlier <devnexen@gmail.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Simon Horman <horms@kernel.org>,
Ilya Dryomov <idryomov@gmail.com>,
Johannes Berg <johannes@sipsolutions.net>,
Mat Martineau <martineau@kernel.org>,
Geliang Tang <geliang@kernel.org>,
Aaron Conole <aconole@redhat.com>,
Ilya Maximets <i.maximets@ovn.org>,
Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>,
Xin Long <lucien.xin@gmail.com>, Jon Maloy <jmaloy@redhat.com>,
netdev@vger.kernel.org, ceph-devel@vger.kernel.org,
linux-wireless@vger.kernel.org, mptcp@lists.linux.dev,
dev@openvswitch.org, linux-sctp@vger.kernel.org,
tipc-discussion@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 net-next] net: use get_random_u{16,32,64}() where appropriate
Date: Mon, 6 Apr 2026 16:13:14 +0200 [thread overview]
Message-ID: <268a9951-c1a6-4b24-8578-0a8bf4b957a3@kernel.org> (raw)
In-Reply-To: <20260405154816.4774-1-devnexen@gmail.com>
Hi David,
On 05/04/2026 17:48, David Carlier wrote:
> Use the typed random integer helpers instead of
> get_random_bytes() when filling a single integer variable.
> The helpers return the value directly, require no pointer
> or size argument, and better express intent.
Regarding the modifications in net/mptcp, it looks good to me:
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> # net/mptcp
> Skipped sites writing into __be16 fields (netdevsim) where
> a direct assignment would trigger sparse endianness warnings.
Note that the AI reviews are mentioning that auth->client_challenge from
net/ceph/auth_x.c is declared as __le64, and it might then also cause
sparse warnings:
https://sashiko.dev/#/patchset/20260405154816.4774-1-devnexen%40gmail.com
It looks like they are right:
$ make C=1 net/ceph/auth_x.o
net/ceph/auth_x.c:574:40: warning: incorrect type in assignment (different base types)
net/ceph/auth_x.c:574:40: expected restricted __le64 [usertype] client_challenge
net/ceph/auth_x.c:574:40: got unsigned long long
Note that the Netdev CI currently doesn't check sparse warnings:
https://github.com/linux-netdev/nipa/issues/76
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2026-04-06 14:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-05 15:48 [PATCH v3 net-next] net: use get_random_u{16,32,64}() where appropriate David Carlier
2026-04-05 23:51 ` Andrew Lunn
2026-04-06 14:13 ` Matthieu Baerts [this message]
2026-04-06 14:28 ` David CARLIER
2026-04-07 1:33 ` Julian Calaby
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=268a9951-c1a6-4b24-8578-0a8bf4b957a3@kernel.org \
--to=matttbe@kernel.org \
--cc=aconole@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=ceph-devel@vger.kernel.org \
--cc=davem@davemloft.net \
--cc=dev@openvswitch.org \
--cc=devnexen@gmail.com \
--cc=edumazet@google.com \
--cc=geliang@kernel.org \
--cc=horms@kernel.org \
--cc=i.maximets@ovn.org \
--cc=idryomov@gmail.com \
--cc=jmaloy@redhat.com \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sctp@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lucien.xin@gmail.com \
--cc=marcelo.leitner@gmail.com \
--cc=martineau@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=tipc-discussion@lists.sourceforge.net \
/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