From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020870; b=ZWO5yuLeYRUJVY5CCnBugYbtnXv3u9GVs/TNHg9Q+sTm5v7ze1WBSvndTS+/VvqYvFa0 MMsw/5z5vvAXuVVI5VXERsjd1CeyUeZT/9msyhFnSYP/bU93FbFlvJq+D53q8zv33mtDC JtoPs62Dcg8jIyzADth9mkUtr2CC5XfkVSVVG3JrPX/FtoEwLRqm+Ue2Ae0FyYj1oZ1r4 Dxi/Pj8bzyoAntJFakRjUUcFwikaifDjUeacegCqcTcC/iZSEWAVY3cBSC85ovMaByjwO GmD3m773nRaFZ6drMEym24IY6AIBmnQzvBfDKYgU2WyiIV97kglvwtNzUclnixIKLUw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796020870; 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=wnaVV5l8sh1KdUIE4jA781/6pQceAAvQyelhXtpEJ+Q=; b=k4u8tchSNBafZ5fmmsJMfU12mDaX8+74ayoUbhaq4e9vBbeTYhcScJ4YJ+tAv1vUeoR+ pyaAzGjswHAPSYTm4zPcxnhW7A3OiEATmL9F5CGxnYh6vmPur08weaDxyCXjhhJJi3V9h gYTuoyhf88NDhUBahFN6yRCvjYpq4jX7IAhwlrUZ+wwWDZc6qY92mzQj3teLd2qR2QVlh LFCK1ZnrfrpXZ9FZz2sp8UvftuKSS+DHQFvlIzr8NZU8zPU7fcmOXuywlBwAZ5YF1ebp2 b9RnaYVvyNV9ZpKkSGlxmjF4h7NRUgPu2G4Erkuim+sPCMwd2Cf1ETbMd8xKHSFAttA== 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=CQJnU5YN; arc=none smtp.remote-ip=74.125.82.46 Received: from mail-dl1-f46.google.com (mail-dl1-f46.google.com [74.125.82.46]) (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 F3160606A32E for ; Mon, 30 Nov 2026 06:41:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3160606A32E 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) header.d=blockcast.net header.i=@blockcast.net header.a=rsa-sha256 header.s=google header.b=CQJnU5YN Received: by mail-dl1-f46.google.com with SMTP id a92af1059eb24-1ae58d17cd9so11552362c88.1 for ; Sun, 29 Nov 2026 22:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blockcast.net; s=google; t=1796020869; x=1796625669; 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=wnaVV5l8sh1KdUIE4jA781/6pQceAAvQyelhXtpEJ+Q=; b=CQJnU5YNfEGjE6Czhobe3A63Q/3toF0n4Z75YC0RNwRNNU/3GuGdTlGFOWSbv2VoYw aVkMfLtz9uEg7Nu2vN2NJAJpn1Mw/eOLOqDqBmbZm7wvEK7msl7W4SdRhqhcYVIgmfzW sUHMGvrNOXLvyLom4J36OcoRV7GXdmZ/CM2ejZt/jQIa55osSRwGgcwF6zNO6glMLtPe W5wXa8W+evL79Mgy17p4jtkYG66/5ZlhjS5T3b3D2n5DT56u66AE5+O8KEfp6WOm7LMo 4LjVXx0e65/xwfqlslMsi57xbxgbtn+SmnGDgscINC+PWaxegALniArv6PmW1UWFw50o MjIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796020869; x=1796625669; 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=wnaVV5l8sh1KdUIE4jA781/6pQceAAvQyelhXtpEJ+Q=; b=vfTgtMlNId1TEsocmNLNhIi2rO42clIE4BTmewocGurZXxsxa0pMiNC+TO1JSETDJp VJZlaYx2xp5H8y8XbUCyDOurdqO/o7ejg+RnL1g3FtMq5IIBK3V4CCiHp5UfBEfxvYlk lzi71xATxcU42FD/ZtTDrP6yeRi9HWSPudOg4Sxnpo81joThTKHW00HfQU1ZAwttQUQr GRQTyuVAPf0E39M2cbxVyVc5i52xESuf+k+IusqgTGMFvyUldhVv/a03oDku+oyqauxd 0v7uBPzXQ98UVVhB1Zay/roTldCuA36W0PKHalbaHxPv02xvl5qeC6AHUtPW8KE+7QYr 8F9g== X-Forwarded-Encrypted: i=1; AL+hErFMxKNW1b7ZFi+IEWGWGfqXH7/HqBoNpYMUswWaUYkc6B+Xb8iRrqG2UjX+P0gqpp0Rv4oJlKRc0TwNhNM=@vger.kernel.org X-Gm-Message-State: APuU4Z+7CIiL8qnGptSSgSx6iAQa1/Z+0sflzsG5pLmFAIgbPBEtwsGU fykiGO17UrNMzm8gro+uUaCiqtoHY9zbioFiNhvXzCaNTJ2vDL6f10+RiUUR7A3SUbs= X-Gm-Gg: AZFdTZeVDC74DZc+RVjJdelR2ma9q82hZWGMdS/TWHOk0s2KexHHPH0cipraUfNXGUo SKceZ48J7gATm7ji0t6Mm+FlHz3zJxvzqVo1rJ7NqvUKwzb6cdaBrrAxQGyE8rRUxDx33jH9guo RFtIsbmPNfNHTmrEkp7QOelhY3js/iXhfM7+TBc6OnGOxXYusJ8ixgbTTYNjP6lPrk3ho5DefVy fqvtJtJ1OoLvF4xGk0ZFWWPbEq9sX6oiuaDFSva2gk7+uhVBkoJ7TJ4BzDttVFnCc/TUV2hLkY2 OpTBwG3uYS1oW1wThv7DwY7BsAaYZZkrcpp9uefAhEbaWo6PRRPLbVYvxZN4JXwpN9shhtNWfa7 d8oWx+HuzLIVobRyjjPQRiL3weQ0JBQNlCFt99M27gdyhGLdOYwk2JNPJYQXsgVgAQNlLbu3cz0 hW1Q0ua1usV60I7nLJsW+sKessVqrF/cnoKcNboCeksdP51bQ6SCaJspuqugdJu0f+mz89Sn1XZ ONix2iRcEV+Re519iKm7Q+8Df1tB5xqjmyWnBig76RRwp8/goef1rY/Z70Frbn68bmkGuoJ23se VbdEsfCLzcG1WMnIvO3CIrOZBCn2+IzRPcIKBlqtfphJ9IQ23C639HOI/qxSTGnWuEXJdVjQn8p LSRxqQLDZ/q/nfaOLhYGIt8pTBWY= X-Received: by 2002:a05:701a:815a:20b0:1b2:4e29:92f4 with SMTP id a92af1059eb24-1b5568eaf10mr28067244c88.39.1796020869028; Sun, 29 Nov 2026 22:41:09 -0800 (PST) Received: from devbox.ts.blockcast.net ([2602:f74d:1::32]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5566c3052sm74177855c88.1.2026.11.29.22.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 22:41:08 -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, shuah@kernel.org, horms@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, willemb@google.com Subject: Re: [PATCH net-next v4 05/12] amt: forward multicast data over IPv6 Date: Mon, 30 Nov 2026 06:41:04 +0000 Message-ID: <20261130064106.1857938-1-omar@blockcast.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <179601051244.3146.8134195674516208005@kernel.org> References: <20261129034652.1853485-6-omar@blockcast.net> <179601051244.3146.8134195674516208005@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 Mon, 30 Nov 2026 03:48:32 +0000, netdev-bot+sashiko@kernel.org wrote: > Does the saved th_off actually account for extension headers on the > relay's usual input path, IPv6 multicast forwarded by ip6mr? Only for a Hop-by-Hop header, and you are right about the rest. ip6_rcv_core() sets the transport header to the network header plus 40, ipv6_parse_hopopts() moves it past a Hop-by-Hop header, and nothing on the forwarding path moves it past a Destination Options or Routing header. For those the restored offset is the end of the fixed header. > Can this under-count each segment by the length of the extension > headers, so that segments up to that many bytes over the tunnel MTU > pass the check? Yes, for such a packet, by the length of those headers. I did not change it, because it is not specific to the relay: ip6_forward() and ip6_finish_output_gso(), where ip6mr forwarding ends, validate a GSO skb with skb_gso_validate_network_len() from the same offset, so the same skb is counted the same way when it is forwarded. The patch puts back the offset the skb had on entry, which is no worse than the rest of the IPv6 forwarding path. Making the offset exact for every extension header means walking them with ipv6_skip_exthdr() on this path, or changing the receive path, and I would rather not put that in this series. The inner header offsets are copied from this one, so the outer check inherits the same count: segments up to the length of those headers over the route MTU can leave the relay and be dropped at the link. I have not made that exact either. v5 says this in the message and in the comment. v4's comment said that the restore makes the per-segment length count extension headers, which was too strong. -- Omar