From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795923771; b=OvcAFkCTZXPga5N7eqc31R5kozFNQZByCpjlFzDXhJvmAOW4djObFJ073fqiLXxOpIjG VDd4v0yYMWzK4rZuHjwEeR9TU+HTFv85FiZGagguYFlTpgDJV2KViabkZKozyWayTZeuK mxSjZiRwsss7bV4v8Q2jIZmYk7YtXyRc0O8gE/d/pQVJKxsHuHj70lEgjbavlWeJvRX++ IMZmuRoRCrPhh2dSRbnr0QZfMEbIw66rLAuC/k4AzeRqEo0roU0IX+Pb7zY702OQpLpnP OiHsN0/teKRfsbK8R5uymO0XER9oCt8XPxll/dbljj0wDYV3m+e26ajGShr8em5uYOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795923771; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=k3X1rmuqcRwo7tskvNgj1omkCKOFHA/aOAT76ydSgQE=; b=JYQWklw0kk9+wn54AgsNH94yT556pCwLUDu8/INOso08b7uKJ2ElNWx+CuJSgFQ8GbI8 PhekmUaFniee3TH3J7x0t/rdQgw7hN6ZvxjhcpyXLOFuObz//8l7Nt5/iWb13mp4KUCfe ZmKotyNuKLwol5Ep8G+ctB5+txu5+/P24R7/3MGNQH6M8pKV+SM413ZtO+1mC2QcRZ1xm DoV9nVtx4TSnGAgEzkVFxnlv/h8AxA2sMbOVF/ZEezLGtNTldMmDL+JHsXNKTLGLflhLF 3jyR1BssmVYTL6BvPIIQqzqkGNmmVrXt7zGP4VTHTKjKgqhQasG/qqxbjYvlUxkw/kw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=blockcast.net; spf=pass smtp.mailfrom=blockcast.net; dkim=pass header.d=blockcast.net header.i=@blockcast.net header.a=rsa-sha256 header.s=google header.b=pe8HBIEW; arc=none smtp.remote-ip=74.125.82.172 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 291A5606A31C for ; Sun, 29 Nov 2026 03:42:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 291A5606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=blockcast.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=blockcast.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=blockcast.net header.i=@blockcast.net header.a=rsa-sha256 header.s=google header.b=pe8HBIEW Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-385d8a00598so15414151eec.1 for ; Sat, 28 Nov 2026 19:42:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blockcast.net; s=google; t=1795923770; x=1796528570; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=k3X1rmuqcRwo7tskvNgj1omkCKOFHA/aOAT76ydSgQE=; b=pe8HBIEWqfeGIs5h1XU4srblcY8mNZK5MB9xPZzz0VlCJ4l8OMv6Aq2dkuA0aQo39p D8C8uXbgNTZOMamGrvGS/nRZSAf7nx04MoIvUT015S44eam1DmN8VHSychOTgAwtAMV6 Ngb+fDVvK0nGTCVSQt8+pK7RSKKrGAIRsnPB5EY38CABWuc0de29W/8KMOEjKYy4mSO1 V1ZgddYwrVtC8ZgVuETGrNFyuRh3J1SJzqh0T7VGJ4MqZ2miI8jb6dhaH+eCVX+Nbp49 Qkqxn4isBNMfu+5UNKa29uKqiK6YSF+etYCHML129Ueqb70icQYbBXa+1tqIe3LRUE6g KQ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795923770; x=1796528570; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=k3X1rmuqcRwo7tskvNgj1omkCKOFHA/aOAT76ydSgQE=; b=R81Ic1Gby5Zxgf8VvwdXC+W/xwpgoy92DIsKeiogeG+GwBBGC2cR5djj3pyJrYx3sR pSb/0gtPzfUDttxbKY/K9dBBS2XHmc6dig4vr2kXHzGcyIZWNVJUXxN2D4o9by5wYmFA eSxw9IYkJZE8eRouG5gsOZzSNo5gxG3/UHGk/pIt6ZKbxpA8vGp+fHWt3Za74XNocqis L7L/GPfHyd2L5gBBctpmklMHdkVIwjh3sRt7Vdr8jmYafUEgm3A7sM2T4+wjhKFVYZcm dH45LZXNcMxxmnEDzaGwPw4soowaSeIEr8JdRr3y9KCVK8tpAn7j6wRcBOsUIKSbznPv 1ovA== X-Forwarded-Encrypted: i=1; AL+hErF46V4Dm6ERjYgvpiF80ZqgDU1rYi+uBzw4CeaOIEQ0rmPDQvALO+sN42jdc0fbdtTMsEA4gguXXf5UtTo=@vger.kernel.org X-Gm-Message-State: APuU4Z+c9thpt/e4syrSPLvkixl78cOxU71Mx4wkRcxjLCMT9yJxepB0 oJlKqvlObDR21a+Ce0COh9pMPzXPcZlY/pDaMVcDR/FDHnVXoKMM4gDieeQK49dfgYY= X-Gm-Gg: AZFdTZekShKLso2rdpSJ2PYyar8TXoa1ZkjVOT9KPDnvpet9sV6ceJ6+5orqN5oZ7xg 4k/yiOcJozO3hCLqbuCkAhjMbDG0l4uVzLO8+T7Aukk3mDDlyCguVGe1xYzuZ9YPkcpApznUD5X LhiCvAFNmwAlQin+SRchjvxNonV287XA38i8IWopJeEAiA/i+iK/fmPLcJzqRpSzg+4b9dBsQsM nQhixqxeBoUvlZUo71l3EBuzpd1400F74ywiCWmOc3/XYjYtL21Mn6/c1ix0cGYrTo9O5Agc8ih 4oBPAd8z4TAX7l/uHETjhgFlwRh+0wHsdcRbxYQA6rEDjwJqxypihI+p/Nri4cufuyFxoLcHDoE Ojbzij/5si8z2emnXnCiictnYFST71Kd+U+C0M9xCwM/r6i8E84qS/+Lz/upe7x1lA0aGe8WEnb pI4+AFgMyltWvqgGOxUVo4cvz3lOeNe14V8k0aFXD8Xv7dynLsAu6sJiQqkrs5J6PtAaEgGn6fG PYALEKXBrd8pqDOf1KNkLB88l7rP/UYyjMOnv8dSWQS1F07H8RPiZDCQwHhXBpsFP50M0v42QeV XOW0+HUs4CfCiQcG/Npd9lHlHn+6k1ltP7epdwgBd3HS55VMCGvXVMq8u4DhRUctvOMzUIx0u/R fOozdjsE035tz1QL9Ct/zoGRi2s0= X-Received: by 2002:a05:7300:c01b:10b0:386:c3c2:a37b with SMTP id 5a478bee46e88-386c3c2a444mr17650921eec.4.1795923770037; Sat, 28 Nov 2026 19:42:50 -0800 (PST) Received: from devbox.ts.blockcast.net ([2602:f74d:1::32]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3866f299d0bsm75494003eec.19.2026.11.28.19.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2026 19:42:49 -0800 (PST) From: Omar Ramadan To: netdev-bot+sashiko@kernel.org 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 Subject: Re: [PATCH net-next v3 05/12] amt: forward multicast data over IPv6 Date: Sun, 29 Nov 2026 03:42:46 +0000 Message-ID: <20261129034247.1825859-1-omar@blockcast.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <179585931904.3135.10573142335250073634@kernel.org> References: <20261127094703.3025517-6-omar@blockcast.net> <179585931904.3135.10573142335250073634@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sat, 28 Nov 2026 09:48:39 +0000, netdev-bot+sashiko@kernel.org wrote: > Is this an accurate description of the effect? With a route PMTU of > 1280, amt_tmtu() returns 1280 - (40 + 8 + 2) = 1230 No. You are right on the arithmetic and on the scope: a forged Packet Too Big for a gateway's address lowers the route MTU to 1280, the tunnel MTU is then 1230, and every multicast payload above that, IPv4 or IPv6, is dropped toward that gateway. Its source gets no Packet Too Big, because 1230 is below the 1280 one can ask for. My message said "an IPv6 payload between that and 1280 bytes", which is far too narrow. > Doesn't this mean an off-path sender can silently black-hole all > multicast above 1230 bytes toward a chosen gateway, [...]? Could the > commit message describe the real scope, or could the design be > reconsidered? It can, until the route exception expires (10 minutes by default). I checked the path: udpv6_err() calls udpv6_err_update_exception() before the socket lookup, ip6_update_pmtu() takes the quoted headers' addresses, and __ip6_rt_update_pmtu() raises any value below IPV6_MIN_MTU to 1280. "mtu lock" does not apply to IPv6, so nothing in a tunnel can stop it. v4 describes this scope in the message. I did not change the design. An AMT relay must not send a Fragment header over IPv6 (RFC 7450 s5.3.3.6), so the only choices are to drop at the relay, as here, or to ignore the route's MTU and send at the device MTU, which moves the same loss onto the path whenever the real path MTU is smaller. I would rather have the relay follow the path MTU, as every IPv6 UDP tunnel in the tree does, and say so. > Do the header comments match this check? No; v4 says in both that no Packet Too Big is sent for a tunnel MTU below IPV6_MIN_MTU, and for an IPv4 source. The two paths that were not counted, a failed skb_copy_expand() and a failed udp_tunnel_handle_offloads(), now count in tx_dropped, and the message says which failure carries a drop reason. I will send v4. pw-bot: cr -- Omar