From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020870; b=ODZSlVIw5diXrFkC2vHBfzJ0AWmtj6n70+KfGD0tB3Ik6n1qrv8La8nITAncDf4DH6+o vZmVrsqVL0WRs+6A7I4cCjE/JTwWYpC5P8p2gvZ/gfUgbXkVrxW3KJRbJ0MtYmYfJekNa y7hCyXKUxaJPumaXqtJq2Yts9qcXuhxcEPBBET9sJOfhE+sqx0GPM0QkgmwaumJd4hcUL ihQ0XqXbEA4EZbnhHNZ0g9P0BLLvcCrwsz7Rx/dv69g8FfqAGUSbxiAVNNEgqMA1tt8tE 1i7UULjYB/ElBnN51rhZtzuTCNszxammubLBBcUMaI26mp+nn2GXo4j6GyBUOe3+8Kw== 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=UPHS3xkT12ifYIVi9XurZRM7+NlxPs5x7LxkHlFic0Fjyr+hU25mo/v1OSm2C6JfC7qi rIncifJRryV8Je/mRlKukDOZbsLqtXH8SdGkG5s/JYy7ybVrqBgPDs6Re2j7vwG0RCbnR TBU/BS/YJBc4vRBgEot01RQI0G+OMoDqaDqGTkPVvz7GDDCLjdIklN4OEiCtZfTyY28vv yZeTlZZUVNMRGwhftSJSK5bE2bFT5Pel+DbJK8xpg7oDPe7PY1lGTV7Sp71JGBQ2ae69C N09FBJOOczrI1kzn8MVesQS32B1pf1SG8ZsSTw/IWPHwZX17iSXNv6wWx3VyKAapMtA== 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.54 Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54]) (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 DFCB5606A31C for ; Mon, 30 Nov 2026 06:41:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DFCB5606A31C 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-f54.google.com with SMTP id a92af1059eb24-1a3c08d6928so15183830c88.0 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=kerRUDtKiLfeLPixGsH2rj+0ojGToZ7XDxOR9NrxU9Ofr88rOVm4d4FnOgNTWgvAR4 p/Ivh0MQUoWY5ZplqAkz2jVxkFS95mwlaYvs0XJ1NvRpPWKsIlMYlLbQIae0vK7Bh9c3 rMjgfNBKUQcbGR1byYAoL5ps/Gq+f2KoTo8IHMEih2ci+3dVX0V4LiZk5Yu7W6qHezrJ r4kohu2bKj5e7T54Cve+2WI7HwKzuthbgrYEMZOlBdTrAu6QXkHjZiVq4QhHYsON65cR /FOphHx+WKK92JFhHgCYTpnM3zeNpffzD0BSv5KtY/W0qcIEhbEvWT9v+h5e3haYPM1K TvOw== X-Forwarded-Encrypted: i=1; AL+hErHNOmb1ObrpJiuvTTQaJgWtKJdaFe1rGuDcZRji+bm8cie4RHAzHdZn0KpQKTPlmUtNSHdME+M=@vger.kernel.org X-Gm-Message-State: APuU4Z+lV9h9T2T227SDTK1wZhH2qaSVNKV6YgmWdF+GmQnl/gXRGzWH vUVfDA1/YOzgxNsKDR4z4L2jC8bfUFFjt1hURKua9MzJnc6Zof0rrW8C6x05Kkfhdj8= X-Gm-Gg: AZFdTZce+nfQlXyMjun0Du+luJ0f5gPS2mexvIArwmNHwiwwctBi2frFPGXe6cD4RoJ q+DVrR20Kj9Oh3iQ2pieEh0eE+/Dzqcyxw3CKqLV4o69ytnOOwVo4r0uKsfEzZMorI5jPVBF8x2 vI0JKE9yLbkotUoBkTyAnuYMxK+yIEHOGsxO1RLy3OrCVsmoMfHj7aWSy/F4waaL9SoLP1Wvhbp QsOMwxKjIkvrmC6BQVoNChkIKSW0Kl8QPY75FqrRHTZExsUPcr5cPnx4EQZGzt/+cM9xugs/FKf zZD8LrS8IPSnuHRDoxKZMMjavCEdkvhjUIrjbB4dxnHiXyYHQvMN0Q88WkshASnNcTE2Pw5A/OQ Io0lKyi4fbG44C+vM+LmXFw9kt4lOQ75s6ppZmV1+txeuzKEluTm08JOdWehqjAc9Y+wAjPejjI qu/g6RWFbJSqOdsgl+g7pPg3PPNJQcFfhz/L0B79IGuUbbIKPD/J1m5aDFQvm0Ew92vuzAsAdCd mlbtkvP2cpQR+9TQ0xufGGGfgB6ervadKb5RNAAarcagNYMu4XAMfB6Zen5vLRyIuG8Tb5pd2ei xhh1CJidAexo+SytOqAzf1RnJEuGW2NPgLGzSCkIfkNFUL80WKDeMTEv4lNrWBj+xhRb4WLJOza Q/YSUTr8gumUfQSAVgAOFLkU5cJQ= 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: 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 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