Article View: linux.kernel.netdev
Article #19Re: [PATCH net-next v16 02/15] net: build socket infrastructure for QUIC protocol
From: netdev-bot+sashiko
Date: Wed, 07 Oct 2026 01:04
Date: Wed, 07 Oct 2026 01:04
94 lines
9015 bytes
9015 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The patch installs the native family ioctl handlers in
quic_proto_ops (`.ioctl = inet_ioctl`, net/quic/protocol.c:138) andβ¦
--
net: build socket infrastructure for QUIC protocol
This patch adds the first socket scaffolding for an in-kernel QUIC
implementation. It defines the QUIC proto and proto_ops tables for IPv4
and IPv6, per-netns SNMP statistics and sysctls. It also adds the
Kconfig/Makefile glue needed to build the code as CONFIG_IP_QUIC=m.
> diff --git a/net/quic/protocol.c b/net/quic/protocol.c
> new file mode 100644
> index 0000000000000..91db48e79c2c6
> --- /dev/null
> +++ b/net/quic/protocol.c
> @@ -0,0 +1,378 @@
[ ... ]
> +static const struct proto_ops quic_proto_ops = {
> + .family = PF_INET,
[ ... ]
> + .poll = quic_inet_poll,
> + .ioctl = inet_ioctl,
> + .gettstamp = sock_gettstamp,
[ ... ]
> +static const struct proto_ops quicv6_proto_ops = {
> + .family = PF_INET6,
[ ... ]
> + .poll = quic_inet_poll,
> + .ioctl = inet6_ioctl,
> + .gettstamp = sock_gettstamp,
[Severity: Low]
Should quic_proto_ops and quicv6_proto_ops also set .compat_ioctl, to
inet_compat_ioctl and inet6_compat_ioctl respectively?
Both tables use the native inet_ioctl() and inet6_ioctl() handlers but
leave .compat_ioctl NULL. On a CONFIG_COMPAT kernel, a 32-bit task that
issues SIOCADDRT or SIOCDELRT on a QUIC socket ends up here:
net/socket.c:compat_sock_ioctl() {
...
if (ops->compat_ioctl)
ret = ops->compat_ioctl(sock, cmd, arg);
...
if (ret == -ENOIOCTLCMD)
ret = compat_sock_ioctl_trans(file, sock, cmd, arg);
...
}
compat_sock_ioctl_trans() has no case for SIOCADDRT or SIOCDELRT. The
32-bit task therefore gets -ENOTTY. A native 64-bit task on the same
socket reaches the routing ioctl.
Only inet_compat_ioctl() and inet6_compat_ioctl() translate the compat
struct rtentry and struct in6_rtmsg:
net/ipv4/af_inet.c:inet_compat_ioctl() {
...
case SIOCADDRT:
case SIOCDELRT:
return inet_compat_routing_ioctl(sk, cmd, argp);
...
}
The other INET and INET6 proto_ops tables that use inet_ioctl() or
inet6_ioctl() all set .compat_ioctl. These include inet_stream_ops,
inet_dgram_ops, inet_sockraw_ops, inet6_stream_ops, inet6_dgram_ops, and
the SCTP, MPTCP and raw IPv6 ops.
In the final revision of the series, the only ioctl entries under
net/quic/ are these two .ioctl lines. So no later patch seems to add
.compat_ioctl for QUIC either.
[ ... ]
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1791227050.git.lucien.xin%40gmail.com
Technical Details
Message-ID:
<179133509783.434549.2591261955322103799@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342138-linux-kernel-netdev=dewy.ruReferences:
<266c7e267db1c1687001b2ffb194492c4f50c77e.1791227050.git.lucien.xin@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342138-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v16 02/15] net: build socket infrastructure for QUIC protocol Date: Wed, 07 Oct 2026 01:04:57 +0000 Organization: Usenet Network Message-ID: <179133509783.434549.2591261955322103799@kernel.org> References: <266c7e267db1c1687001b2ffb194492c4f50c77e.1791227050.git.lucien.xin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="548179"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ZXyvufQBgTjvUOpT0aBwNPB9nIE= sha256:CMqr/Fb5QIjQxJljA5eZqcmLuE9eGqWOlg6qLKjkbkM= sha1:1gRgDk3vVu5n3kw/uMPY8cPSbFs= sha256:XG8QNTazb2b9DgqeMkeT76wi0JTpWjI2HqKw5P4IJ9M= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 250F210F0A0; Wed, 7 Oct 2026 04:05:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.341 X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w6poD2f-xpL6; Wed, 7 Oct 2026 04:05:07 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342138-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 4A66F10F015; Wed, 7 Oct 2026 04:05:03 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 0BB4D2E52D; Wed, 7 Oct 2026 01:05:02 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5241239068; Wed, 7 Oct 2026 01:05:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Eul1gh81" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94216199E89; Wed, 7 Oct 2026 01:05:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791335101; cv=none; b=RfcLWRODm9EGYCrpl8e7Aovm/le/b46r+kPLX1OkVP9elnKfsi4m1P4KoUgsEtI+a/s4NJoA5xGWrpzERrQN0vSkUYR4Suu1L3fg2t8Xf5eGHi4whRM+2PSPStQ9gS774mGarOXsleQYMVy7ieGWc2LQ/d7IjVPWvqcsPhd7FLg= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791335101; c=relaxed/simple; bh=bAVG1WmBZ2kNBQXbAP6N83iHKKxTWsHEVRhgN6sXa0Q=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=WyEQSrR5n55Gi6MmNlpZISSZ7F838L2h7TRaSIkEe1hNY9z7KoGc5Y0WN2X3+KhBj206aRmDjv0Px4DTdA2pSjx1HP5ry+E8bxSJ4utNypYdzPpYHT9uV5CLW3D5/tcynD+5GyqoeyHKHg1zK5wdgFHgLPxpWowsC2NkilhBZE4= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Eul1gh81; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5464A1F0089B; Wed, 7 Oct 2026 01:04:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791335100; bh=L8zCEm4ebpEhT1oPkMuKU8PPb72WeSJDkF0vOeGDjZ8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Eul1gh816ukMGn1Y/EIFdtyje9ry3CS0b/U2Qtei/7FYliR0+X3EPU09pf3gqSIBy OwytpCz/g6ArDUNbv6NrAFyQgpMY7+qOWKtqdxFxQ+0bzEdqfoe2DPAtw0m96Whzmu Ua3Xh/Zzeixq9G8p05SQoR5WJw+8EVk+sBE69nctyiWaZFvn9PKnV6sTWCoyPMtG04 QGcyw3NIm+lUR+LCqk5TIJt49V6wCAFcdF9ZDUEmCTYXbn+8Xm1JkoZtHuB1lcTcTX L4y/K3/ynccPV6/GltWFJk4c7vZ6lJTEl0PYSqMAfhoOpNYmAu40OZl4p035pPBdyZ iLyc2eRnIvfzw== X-Cc: netdev@vger.kernel.org, quic@lists.linux.dev, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, horms@kernel.org, metze@samba.org, mbuhl@openbsd.org, tfanelli@redhat.com, hepengtao@xiaomi.com, dreibh@simula.no, linux-cifs@vger.kernel.org, pc@manguebit.org, linkinjeon@kernel.org, tom@talpey.com, kernel-tls-handshake@lists.linux.dev, chuck.lever@oracle.com, jlayton@kernel.org, steved@redhat.com, hare@suse.de, aahringo@redhat.com, dhowells@redhat.com, matttbe@kernel.org, mail@johnericson.me, xiyou.wangcong@gmail.com, alibuda@linux.alibaba.com, jbaron@akamai.com, illiliti@protonmail.com, sd@queasysnail.net, marcelo.leitner@gmail.com, daniel@haxx.se, andrew.gospodarek@broadcom.com, mef@scarletmail.rutgers.edu, paul@jakma.org, kuniyu@google.com X-In-Reply-To: <266c7e267db1c1687001b2ffb194492c4f50c77e.1791227050.git.lucien.xin@gmail.com> X-sashiko-severity: Low X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>