Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020870; b=hBuZ2otCWgA9Ea9+C1mD/T5OpKKuWeaa+PaFUvbSqVYA/arSUqrBHyPOhcxJzfHdbh4W JvSWpQPBXBBG+4if1PGCnoLInyExZcaelx63vHkCd9x5N98r5pukP0BOtnqh0sZws77oX 9Ow3HPJQcwQw2njb7D3njI5SjeuTVHMin/a/9srvdC/uSOKl1TQPKz/e71Si9hqj869Dj 6pFGBI6EMt96kbkOS2hhOVb9UGEZ+sZh9lAnR3W+fd3PgRyvu3njeyD3+Hl7p9pKc0l1u HG/smOgn4nfpzBbV3swPfpvlxRJBdBAx+JSJX3xjhqs+HK6Caa5fY/1X75MXqSPCLtQ== 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=HjNG5ZvB+I6alvsySMNbQ00XxmCkHSs0wMDAoMYTUSbmEJpFRAXqG6oOqDO5MFodz1NU 8uaPX2VmEA3qQnrs+NLi9zVZ7TYSWZ//dsIGKLVHQQTKSiNiOhTNvQX2ZPgCi8NK5o+Kh Kg1d8HyKSBw04lQbWvGImiVl18nIl/RVe6bBWaQyjUe0YPAg4I4mShroLrNHoiYvVooLC gf8gDvYQcylqL8Y+KPXOEn4ioaVh/S86nXrZQSbOr5rpsQ5La2igdORx7If+CqCl9KUPd X6Qjon6LlSMWEdZnLgMmqoiwo/Z0Y39maX4eOciVRtCbivQyDZ3N4GlhnZ2Fe+nXWIw== 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.45 Received: from mail-dl1-f45.google.com (mail-dl1-f45.google.com [74.125.82.45]) (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 E6285606A32D for ; Mon, 30 Nov 2026 06:41:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E6285606A32D 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-f45.google.com with SMTP id a92af1059eb24-1ae58d17cd9so11552363c88.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=oqdyG/uKyVvQ98mpuVLRFhPBXQ693DTXpLuswWSAtxM7i2T+gF8CMTfwqHT5InAbvf ETZdpjErYyGRI1hiD1+DuBLBbOIqrwZjw3SLnaLo685R9KxzkzcmopWwPtDnrRrhvjQF 6BHgB7iFb0zLaheVTb5MNkVyP3ATTaRHSWNPFXSd1ZSFh/uhGhtnJW3PbtbdkJ0Wq7A5 SzeduYBa6wgnd2IKzYRp2vuV48KzrPXee3CsWcSLmhHgd9tGa6xFlR5sLTZtNRuYzYvF HnAC+b3tNFM3dzE9dXRTrXWlz/Kk32NpeBSZzZ5q+9XKisaREkkp9mpjj6oZHR8WVmOr eIZg== X-Forwarded-Encrypted: i=1; AL+hErHWqInLYlfM2IBG7HNSIz0Kt9ygA0z/F085w2e3NWjtVeZPAGzq15Od/CTPC8SjNq6d/EjcThs+ofEdcmXtGBM=@vger.kernel.org X-Gm-Message-State: APuU4Z+7JrG3zbqF5KoTFfCHSvzrCOcbf2ahpK1jVRVOFErHMEmT3/K8 fO8MYLCQSS8FNzN2eZdCPl3Z1l+zUXe8e96XMYt8+MtJQNZ6gvjjPPsuDm9IcC5HaIQ= X-Gm-Gg: AZFdTZc2EGVgA/JSbQp/JqIvE1sCAN8UnpayYX17lNVpK2usY9UknET3FCWKPEF95o2 ScK/sczd5lzbB/IgNYNtvBvpYs+m7AJdOFS9VcvRK4mBiOAoMvqgVARuC3WpT+2hw9ygA6Zk4NM /r5QITQivCs66pKLGxxTV7eZiN3TzddNzR26AlpRFmsnuSJSrVyZwgJK/7CEHY1WjoGAziqx0w/ eoeeHIcLZ194gcuReFRvhiHOyDNwfMx6i96qf9RX7cGt74xLiw5lcTLhr+wr0ymtwKxycnyApGE C/gzIDNBM8ozUxStUyfwQNrHwEjLXwNWXmkafr22n+BQheEiJA7K9xSGamxNiSj5sep8OGCsIuD NFviOA9IKNO01WcEvzq+uIUumH/88ep7E2pTHC24xAVoVHwC1ORSNFEkPrs4yqiLbp7SAf2Jg81 L+EjIQ3eyp8AVFYCFGW/wmMM88aGsL2+z5Yh2V6qPA0jnO2WQb0EW+2cLe7MrGDZEa40zwIkR+G GX8HEN9Ge8jndpfk9kUjbtwGBrD3S9SVifkUnJYpKOrpwctQ2SkkXNPT6MzqUClGVVoVDCHfk9P LSXMMXKka7G9qYXwcN3pi2DsLXWUBYEroyyg9diUDjE36tINRODaBDAHSlrzPLc+6/tYrOYYW6A uQqbxevG6XWVVXPNYmhyVsPHkmT4= 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-kselftest@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