Article View: linux.kernel.netdev
Article #7477Re: [PATCH net 3/5] ipv6: restrict mld_qrv to 255
From: netdev-bot+sashiko
Date: Mon, 26 Oct 2026 12:15
Date: Mon, 26 Oct 2026 12:15
60 lines
10070 bytes
10070 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] This patch adds an upper bound to net.ipv6.mld_qrv in
net/ipv6/sysctl_net_ipv6.c: `static int mld_qrv_max = U8_MAX;` at lineβ¦
--
ipv6: restrict mld_qrv to 255
This commit adds an upper bound of U8_MAX to the net.ipv6.mld_qrv
sysctl. ipv6_mc_reset() stores the value in the u8 inet6_dev::mc_qrv, so
larger values wrap. A value of 256 wraps to 0, which then trips the
WARN_ON() in mld_update_qrv() when an MLDv2 query arrives.
> diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c
> index 1a0a36dcdabc1..05a3846803322 100644
> --- a/net/ipv6/sysctl_net_ipv6.c
> +++ b/net/ipv6/sysctl_net_ipv6.c
[ ... ]
> @@ -229,7 +230,8 @@ static struct ctl_table ipv6_rotable[] = {
> .maxlen = sizeof(int),
> .mode = 0644,
> .proc_handler = proc_dointvec_minmax,
> - .extra1 = SYSCTL_ONE
> + .extra1 = SYSCTL_ONE,
> + .extra2 = &mld_qrv_max,
> },
[Severity: Low]
This isn't a bug, but should Documentation/networking/ip-sysctl.rst be
updated to match? The mld_qrv entry there already lists its lower limit,
but it doesn't mention the new maximum:
mld_qrv - INTEGER
Controls the MLD query robustness variable (see RFC3810 9.1).
Default: 2 (as specified by RFC3810 9.1)
Minimum: 1 (as specified by RFC6636 4.5)
With extra2 set to &mld_qrv_max, proc_dointvec_minmax() now rejects
writes above 255 with -EINVAL. Writes such as 256 or 1000 used to be
accepted.
Could a "Maximum: 255" line be added, maybe with a short note that the
value is stored in a u8?
No later patch in the series seems to update this file. The igmp_qrv
entry in ip-sysctl.rst also still lists only a minimum, even though
igmp_qrv also appears to be capped at 255 by the end of the series.
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261023091419.167088-1-jiayuan.chen%40linux.dev
Technical Details
Message-ID:
<179301694174.3134.6591289617782917175@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-351880-linux-kernel-netdev=dewy.ruReferences:
<20261023091419.167088-4-jiayuan.chen@linux.dev>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-351880-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 3/5] ipv6: restrict mld_qrv to 255 Date: Mon, 26 Oct 2026 12:15:41 +0000 Organization: Usenet Network Message-ID: <179301694174.3134.6591289617782917175@kernel.org> References: <20261023091419.167088-4-jiayuan.chen@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1302799"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:lM16fRPtlYi/2fvAXFUzaXZTJqg= sha256:7zaUYTrgLl5PPBbBLET+eRQmbxGeBJN5ADyAlJmBQAE= sha1:B8jaoa02ZL/pzTaC2Ldl/K/2JaQ= sha256:sAV9/lNmapdp2DK+Iq4HjzbteSh56WmHfraVZqWz2p0= 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 06784125BA1; Mon, 26 Oct 2026 15:21:25 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, 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 oreavR_0cQAE; Mon, 26 Oct 2026 15:21:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351880-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 353FD125B9F; Mon, 26 Oct 2026 15:21:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id A93D22C9D3; Mon, 26 Oct 2026 12:15:46 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793016945; b=ds8eOEbHIzvLaoqUjT8KY0gNk6cl2TNBZ6Mp31r5xR7666OVsK7P8eUjdil9oH5pqSqT N4N8TsNFSto++UlTESpSmrhk6CYeZTp+PvFXJaH64NoXetaBTcnyEzx+hLybHp5p7N65q PxBd4q8WMqqkSxxPHUqp13kdTGc8C9iOS1/xaCMZ7i8Dz+Ad5lMTdiwWKLXkBx5ZZ/ur1 U0Y6B3PmXfrkW+Bvzb51EiGdZZP7FL5T66E6Se3lT+bPDgBAT+vCjIVSrZ56uQ6bu+eZW FjC9ZoHNX0n+s1l/KUNa7FOrUAYGozC0Y7CPJg62jhx5eKcSO9Be28wlrIX6UPQGuWA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793016945; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=IvTulwyfQHGq9xJw1yja6dywbpy8LCBW375451x69yI=; b=V9JzqtrXH7ODsfh2ysBx1hHvjvl4tXUMjke5UQPTLHKr1d9LQ7rwBnl/plZf3iZZMzLh LDtze/RowJ24okXvplMG1Ylir7JA3f8EBtPTDMiJ2cAH1wLG8TcK61VKL/cP9z9PoE7pe 8hSdhFjERYOe84hKJq2JbzuIFozbmwZNmnk2tKGIf3DSdUDtzZ669Z6J/UKeKNnpPgU5V akeexgi+34NaNZL1mPXb5x4VHzsV2cjFfpDf67XaLsZMU3QFkcY01MssXjNeUKzmNy4tq 5XAMBr80nA4rvCRom0Iyo7tIijdYFMEjHI2Omd4fqKLTf12q7/SyAs9nzhFuiw1kAew== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JOwtRTzA; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECC3A606A339; Mon, 26 Oct 2026 12:15:44 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JOwtRTzA X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793016944; b=13N8KyHZT2Yni/wit/F1mdvrVo5bWBlB5qnsD6riwCFhzcmaZMJfVWrpQlF1kzOm6jq4 fKtSyGqvOO7qtBKXLqZQ8r3ml90xzh9iioB9h09+QAXcHLEvZMaaHSXN4ht2E/RbbbNnr 54WwKunPwLk7AFhZVi8DGDGtOdAs55+uclZtXLzC2ZgYbBJmu/XgzT7v1Gosv5loO9z92 pNR2uajrM18s0awcusgLtrHss9H6ryQoSUxt752i5DhVNq7c9ffPhOm5h1SYGyycVwCB+ CV6hGSRojgSdId3rDEEMjxng/D4r9rFjgxFu6NCg9EjUH2Nd1lpAlo/oih+WJg6EFyA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793016944; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=IvTulwyfQHGq9xJw1yja6dywbpy8LCBW375451x69yI=; b=gZtXlsmLi3qjJ9YHZ7zJYEJpLouydA8eo8rzpvoqeI06gTrZ6FKTtlbDtTV5unlS2EDS B+hLXrOtStW91Vd6INVYXT0fLxFNHK3wkwwItSlPzqGTSy5XQUfKc3cz++6jcT8ped+Az gU+AcRWIZwqwM4UL8IWZdm/Ze88umYTXncjvAOLMLku9zSJ560fQktC88F3MnhTgtGD+B vuSoqZvtaFtIy4QdGIPuArxGphzuau++huGV7nMB4Oi0uvtxkT4JIwixZv5uXtC5pg/KM Cj/+HuOzUF85BH/0LLaw/D98xi2S3sQzpICFiWsN8EBgkAfprWhV6EDZjrbpw13pA0w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JOwtRTzA; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 CD4EA606A31A; Mon, 26 Oct 2026 12:15:43 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AB4E1F01825; Mon, 26 Oct 2026 12:15:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793016943; bh=IvTulwyfQHGq9xJw1yja6dywbpy8LCBW375451x69yI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=JOwtRTzAlepsbPE9vjwpasr6jqIBmMZ7ZgaImUQJl5dbLv6NH5CDR8oqvWG3kiO8b Ghl4I3GDbbwtaEHd6lWhe7xgsdYEwz6hygb/QA1m7pnwVjPXsLvc1W18eKs6Epi55R Hrq0Elv2KbPdFjt7F0HA96dvdGNdnmscFXyzv58c1461tViQsEyvYnrVwxgVvuVrTd ++zHkoKVlRIJRXDV9w1S7UtG1cA3kxAKZ2uHqbFLjZzyIiKtRTALY4ur4okCuQ49Hc XRdQN27mxAsOg6m4ADGo+RZmu8EOuceNZ3NFRrBBI6P+FTbTbK+oir3EYw2DY13E+X 4Va6iEOQwi08w== X-Cc: netdev@vger.kernel.org, stable@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, dsahern@kernel.org, idosch@nvidia.com, kuniyu@google.com, joel.granados@kernel.org, chia-yu.chang@nokia-bell-labs.com, bronzed_45_vested@icloud.com, yuuchihsu@gmail.com, fmancera@suse.de, hannes@stressinduktion.org, fbl@redhat.com, pmladek@suse.com, paulmck@kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261023091419.167088-4-jiayuan.chen@linux.dev> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list