From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795923771; b=WcCfFJZb2HKm3oTrgiZED+r4YMtE6Gu6Br6fmOG01ske8Acln3XhctsSI9HMIpG/MkX+ Ht/x5XjDViUSKBbTU/hjbrifrU93NIeEEPtLQBxR2DE2F7VqU6srm/C/I75sJFm2fs+tu vCF5xrUNxVLDFVha/WbZqQf8dajCeEO8qtpMZ41aLVjUdA7VyCO40cI+5iNsUYvocrDgd jD89bKdWNt1/eimP0vn9+4d03fHCOPp2V0bcfM+2enPG4ejwJdzmEw9wbrDmV3ptIpCMt jcowZX9u7cOtmq5TRAa8iUR12bBM9wCaJ7VlHasZYG9c+gHTGZEdXuzL2/oiHtf39pg== 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=sRhf/nFQv8HrSYiVDqzk6PYqjdtRZf6tbVxYA1y0/sOyCQ8miDANntt+DuoZJj8LWFlm pR+DPdkAdzOleoZFKPa6+Y4unES+4t3Zgk8fZpHX7qnwVzingas5CuP54ciZSkSkqZfB0 nP19SwDlgPiZM097oJp8MKTAP4KSbadRt0VbPITmZrM7YJc8UGiEFuh35ZGR5MXUOn656 33+2S5kdGhCWcru+o9ZQLaM1A/bhPRDjesi/66Cw8Zsh056JC5Z5pqVBD+7xMKq7Vr2/w y7zH6J+BnQRXennHu+QusNgUliwjk4kdtjplB3R9wfhMK5/58lmDf5mfyDoQvmAmltA== 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.169 Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) (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 2C013606A323 for ; Sun, 29 Nov 2026 03:42:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2C013606A323 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-f169.google.com with SMTP id 5a478bee46e88-38644aedba1so15240117eec.0 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=h3QXdSz0sYaSwXh5oVV3nEi2A0LEZxb8jv4JAOWP3vDBLWzo8RHpQneyoECA4J2gmh gAYksSORdQCGB5e0GhosL+UkcMv3WoekCb30LSYSvbp/GmhEeAOoFAq7sbBgdh4FBLrI VHc9KeL80emdxat2F0eSdw6nfUXklmDN857C8xnyQLfDr0PWG7bRANXWMeLrKPo5xEdZ nljx8JwEqg+AkX2pg5YnjdC3csjJH4+ECagE1d2xiqmKN25jy7Gkh/aBUDljvxy62c9a l/45haCxUuW3meKv9aqeU+lysTNzcurlruc5uMtyeHdRIBZroB0Rrb5LHFjoSyd+TM3A J45w== X-Forwarded-Encrypted: i=1; AL+hErHDBQgsnb7ZVhl2S87MA8vaMMATk9UdVeXiklRPLJHiNy/shjc0EGhdKF27OCZuAQUEz5UcsW0=@vger.kernel.org X-Gm-Message-State: APuU4Z/XBm2g7KBBsRTc+DVkBRVFoIiLg0fBeFJQVPupNkeCQoJm2cDF YnPqeWPCzdr7E7G5Bl4O1S/Suf6MfrZpOqJ5pwWbnycMddtNvEyybCYFa+qZdPQn8Zg= X-Gm-Gg: AZFdTZcDQjKs+g2SKotLmCzgT8HH9s1tBATkJTj8+uaMR2Kti0kZu/+bZidSmoKLhF6 7cdl0tYWTcYVRfxgYqVbyB+6JNl1MY4WL8tOgtibPAq2ZCh9gdchPBeSWT5MaeUdx5oofhJL1vv 7LqQX6QNts+C9wlpXnDIlKgk6abBhGnNO8fd5HSKsKfurz1Zil4VDAwYAsbn62HOmH8rG2nWg+P N1jx5MBLc9i04hjrGxzlJvou20te26usyFqcN+ptPgIIPos1w0UjivCNbQNx0nnyRVb8a70vLbd VXOCqANFkF1PM0DJHhyyZ6BCgIOhyZvSd96oGEYHYW13i2cNXagP+0kg1eG/Mu5gV/bZCJjJ9u4 VoVWC7mWSxXlvTNf96HGAr3ymSlH1P2PTftxpjGDJCkNKm3TuGx/WlaWygmEAP3ZPG3NsDO1EhM JVpMEfFLn/GjYxADc9pzzt6ZIAqVS9M+wg2PduZIOulq1RYn4MKTcJmxyFjQ4K4kQDhwu1TLOgX X+B/hUOHG57BB6jjCK+D3u6eU5WTaHsxLoJbed/kw6BU5SqpMkcpDr/tZm6FTlQAeS2P4gYPjj+ WwsmAW4CwwkdMtBNAhSH1onBMBjZQRn8t+OFthtrlUFj76pum+XG7gwNje4q8WiCzJeb+in3ePA 4+/9ycaei0klck/fc1burREd21SE= 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: netdev@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