Article View: linux.kernel.netdev
Article #1806Re: [PATCH net v2 2/3] amt: make pre-query report drops visible
From: netdev-bot+sashiko
Date: Sat, 10 Oct 2026 21:08
Date: Sat, 10 Oct 2026 21:08
69 lines
7636 bytes
7636 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 commit message's protocol explanation is wrong.
--
amt: make pre-query report drops visible
In gateway mode, amt_dev_xmit() drops an IGMP or MLD report when no
Membership Query has arrived yet for that family. This commit adds a
family-specific netdev_dbg() message before that drop. The drop path
itself is unchanged and still increments tx_dropped.
> A gateway cannot forward an IGMP or MLD report until it has received the
> relay's Membership Query for that family. The query supplies the nonce and
> interval echoed by the Membership Update, so dropping an early report is
> required, but doing so silently leaves operators with a dark multicast path
> and no indication why the join never happened.
[Severity: Low]
Is "The query supplies the nonce and interval echoed by the Membership
Update" accurate? The code doesn't seem to match it.
The gateway generates the nonce itself in amt_event_send_request():
drivers/net/amt.c:amt_event_send_request() {
...
get_random_bytes(&amt->nonce, sizeof(__be32));
...
}
amt_membership_query_handler() only checks the nonce against that value.
>From the Query it stores the response MAC and the query interval:
drivers/net/amt.c:amt_membership_query_handler() {
...
if (amtmq->nonce != amt->nonce)
return true;
response_mac = amtmq->response_mac;
...
WRITE_ONCE(amt->ready4, true);
amt->mac = response_mac;
amt->req_cnt = 0;
amt->qi = ihv3->qqic;
...
}
amt_send_membership_update() echoes only the nonce and the response MAC.
amt->qi is not part of the Update:
drivers/net/amt.c:amt_send_membership_update() {
...
amtmu->nonce = amt->nonce;
amtmu->response_mac = amt->mac;
...
}
So the state the Update needs from the relay's Query is the response
MAC, not the nonce or the interval. Could the commit message say that
instead?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261009201455.1904698-1-omar%40blockcast.net
Technical Details
Message-ID:
<179166653324.434549.3763843215808008320@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-344336-linux-kernel-netdev=dewy.ruReferences:
<20261009201455.1904698-3-omar@blockcast.net>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-344336-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 2/3] amt: make pre-query report drops visible Date: Sat, 10 Oct 2026 21:08:53 +0000 Organization: Usenet Network Message-ID: <179166653324.434549.3763843215808008320@kernel.org> References: <20261009201455.1904698-3-omar@blockcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1411086"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:IAMAqjoIGLuZSlsM835QgCsckI8= sha256:af1aCGz9xUShwmpBUvfi09GAt8uJ96uYnXu0cIkMNaA= sha1:Y+9AokJ1Oo01PhRbStEtYboJacU= sha256:RUlrtjqWC3pWjZ8EgEeuaUpwUDjR4RxQPAospOiuY2g= 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 1B96110E0F8; Sun, 11 Oct 2026 00:09:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 IjKZX3BsXjUZ; Sun, 11 Oct 2026 00:09:05 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-344336-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 5EA9910F95B; Sun, 11 Oct 2026 00:08:58 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 60E8C606F27; Sat, 10 Oct 2026 21:08:57 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3F90378D7D; Sat, 10 Oct 2026 21:08:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Jkb2MuQA" 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 BFC2336F8F2; Sat, 10 Oct 2026 21:08:54 +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=1791666535; cv=none; b=OIJymuXXaGPZMn4+r2VKX9IKIBtrQL7955KjjlhSvbzNGNYJjs6n0HU2Jagt6IxZ3I2OTB6uiQ8tbEHYzSKZoL97uX6geM4Ylv/GQpyjPswyxTfUfGHIPsWGiOmSFwcnJJYOcOCxGUFJaxn/B+Le7A5MKi43XTLsojHuU3sf9gw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791666535; c=relaxed/simple; bh=ZQfrfZgYIIj+xriL1FdNEdy5OlnVY6TsC114SX0ZFcg=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=rBhrKLxdG8Xp0gFb7dFfQcJmT8Oyg32y+1fihVEVkrtwB2z9S2oIbv/bVE/MMHFetgfLqwbkNIPGGqPJbg9ktllacCXsw2qfPJ7I/FoRpyiGIGmdkma2ligg/Eej84QHMkPCOH+8YjSBwmkq4+S3JtI5am3A7cYEtaHfUJ0YPQw= 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=Jkb2MuQA; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA1EE1F00893; Sat, 10 Oct 2026 21:08:53 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791666534; bh=Gg9Odpb8GX+VeBeKSAWzFWr3ml/oqtZsY52TKxyJ/uE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Jkb2MuQAuJ1Pz6JOzk+ygeI+etUm1u9nK5CvAclVt6EB6u+G6aUY68luMDcuAK4EG dPBeR7yZbDv0EprhH9Ej0uLVZFp52zC6LoPvx9SWHW1rnJCUEE6hpdBwSCMQD3c9uB lpQO0kbA13VQU2FkSZ7nr6W3bLf4wg+3geQEWckIovXSqTqkWuc0oH3n8jvLDz3HJm ST9P8IZRTE/ghBnBdJBFKq1vpTStZPnKQYNNFEOSTXk4vCXX3OLtV61chDOh269Cfj hdDXncB2d6zLma22OyRNn3x2ABxpbi8I6oT0StnpWmMDmofZRJR503xlQ9Qfxfmf2K 8kku0+izwDFCA== X-Cc: ap420073@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org X-In-Reply-To: <20261009201455.1904698-3-omar@blockcast.net> 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>