Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020865; b=vJeQia1eZYdW6VQbOqzvW0NT+sBNnOyRzu34ceKqhM0w+a6oS0WlZMz4+IkBr3hseMjz oglFR2AfVcG7KoNkfWy758POqVZg8YBITHLHnTb/vwBIyjSVXp0C6GSzJ0UKzW4mOgEgh nRtpXl5FpzrZNlP/9+gVulV9Zr6gV1czp0HauKTgAuQZKukNYhJBRo8o03LiEZJsyHQZ6 GU0Nkukii7GxFQDY3CyR9szzIjIuxLWXbiqICQluuN4fRrkBxuubpSWLsBNqe+B3oAyHC sF/Mti8JAR4/n+0MQAxUtHfKKJ91egKngvQ6/oEkU4LKaWPHGOCnggHgUgODDrwSkKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796020865; 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=ln7+I01XDCbIwuTno9y44ZBG0wYcRzyohoMRIqNf3Hg=; b=RQMZCsR1Ugp9SKQh6WgX/q9Yp/WRzsMY5YEnCt5MyVgxDpovYI5oK8XfLZAJZ9ykZxbe Ey3haZwSZ6GO/VhVDS6CWEFPISME5sYOi5KY55bUDL1AB1to7CDxNjH+ctItIFDhcIXQo ouocxiUVR/R0r8OSpwxb4qIMbwRUeeGHi2JEVBqLG5xN4pUlfoOQftbvgG63+GELvMrCo 8KXLVy6U8U6HnHMP4IuOKcFnbw74aBjr3dxeAJcnweSEmKHs/HabGbSddxRYdltvZsCPx MgYkVfScI3OxLABNLd1WGIoevqWkSCls4YukL/tLWcKnAtAHwLKSNrBNX3pd2Rt+EUw== 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=tsvmWmfJ; arc=none smtp.remote-ip=74.125.82.176 Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 7F797606A320 for ; Mon, 30 Nov 2026 06:41:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7F797606A320 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=tsvmWmfJ Received: by mail-dy1-f176.google.com with SMTP id 5a478bee46e88-385d8a00598so17332788eec.1 for ; Sun, 29 Nov 2026 22:41:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blockcast.net; s=google; t=1796020864; x=1796625664; 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=ln7+I01XDCbIwuTno9y44ZBG0wYcRzyohoMRIqNf3Hg=; b=tsvmWmfJiKsu+iQkk9D2/lVoFPYuTzPnfOGQLF1xFfiRtJmfJRjbVOXoKiv2lH8v9J USTIkb5bGE6J+mg49N8j3L3jrksFb4WFRH2JSdtrNoOZAfxxIGA9bxy5/BwaMpBMHx23 tsZe1YjlO9bs3bX9VyiPtua8wOmxP52WezVxboWqusX+56mZ2EN5nh3kh39+Lqxv+O5X hKsniVEBpoUhxoibbsByfh7ur7++sVIM3zvo9jkpeoV9dExloi79uTsmULclDUZ1rcpc LgU3May2ivByEX/AI336wbeqGJkWslQ0JePNJSEE9AI+QUcnp76Y4BcE9lL58nxbTE5e 1Gfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796020864; x=1796625664; 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=ln7+I01XDCbIwuTno9y44ZBG0wYcRzyohoMRIqNf3Hg=; b=MU4zoDFtDsjHJ/MD49gNwYcSrz1LJve5IIpNruLHwqbXKOO/YRVPUWVQIylnlvuZ32 0PrLx+EyRADaNHQqwgG9139FkORhUfqyax09989QemzRZQZ1v0SxrzCic7p24+hjeBqI 5IMurCCVkHRPOVkBLR5fxvowfP7sfK2hp4gsTbO2wdsFIBnGpJj+Pd2IRSe5dZLOHzJS QoRbTH0TaFyDyWNq49jU9IsHGRK7bML0/VHI1uKzkobDwIb61z+vJKY4r0K6KsLrkyBS ATcKoCnoHYDaX0wL0OsIy7vbmNc0uG7sKFHN6XQ8iX/xginzw4fkbAq/CSVcGZ26IcUk w0YA== X-Forwarded-Encrypted: i=1; AL+hErGsMSUIuJVL+fEg+fRIkbwz1kHGXUMf4ZfmRaGZGvktdK9/Kjn/yL+a/qI/KNvROGMo228P0+xRk8754O1EgBs=@vger.kernel.org X-Gm-Message-State: APuU4Z9wnVo9+rsAp9PLij05uWEByFludjPL4+T8M8tDAXu4Uck//tjh xfMrG7zN20hzDAmzEmTbDwcbOMYl/W0liBsVc+lH9VT3y7fB+GZ9hePeSZ/mxYosNEY= X-Gm-Gg: AZFdTZeN3ev6yWdQ2Eb/SeNi1dBToSkKQgpgerq2Pc2wIUP+it0DSpBggqFWqkT1Ybu Up7Wbn0cKUUJN1USsXwVqyQzPxw5UayCzeB6olUBa5qdKQq3wpj+IX6Et4CDpatE44NylaxpkSe NcA/1/ISJsY7VAKUYLLGSvBQc7RUCnKfWaig/pINmr+Z3FwhAOdFW2nBSP5TzsCIF/+FVWxItUh IB3YEJtXZYyPgQSF0yoaBGYG5URmdp4yq2k5qNy8rOKCOKBee0Mlbec55OQMLgDbNkHt7ZB3h1k 0dEb0X/o7lCT9aERx8gMlFINI1MTHpQUNvNlVtoqqGP7zrnYBzkBU+hYkZ7apMSCigdVGzYv7MJ orTsePyKrnk+7Hg+dJPU/OSLMgUyPYITfnp8N8QaAchYb1wsiYhzLSy+bRqrUQxPw1f3bA4yRdR z69kv6NU0mnTIqa7MKwdcCxc4tqJ72lx/ZN38FJj2n5kLEAL6vpvj4+HEWQV1Jx83F78pBirbF7 g7yB5d/V4dV8CeslYZ8cRaa8aoqPB8FFJbhlYsCWSU+Y4ypyufUYjGpeVWi7Claebk44fDr9c9n CeEMJbNXVGdTC62YZ6wjzVPYdBP3I9QnnvXIgWW6dVEc8r7P/gJHSL/T6oKI/oLJDcNGbm+Yhjl /g7D44e7WXSEtJ0X8mJmixgDqABMXXMbMAI5jlXl1GmC7s8jL X-Received: by 2002:a05:7022:28a:b0:18d:5988:8d3 with SMTP id a92af1059eb24-1b5567c1243mr32144773c88.3.1796020864369; Sun, 29 Nov 2026 22:41:04 -0800 (PST) Received: from devbox.ts.blockcast.net ([2602:f74d:1::32]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55681301asm75477207c88.8.2026.11.29.22.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 22:41:03 -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 02/12] amt: send the Relay Advertisement over IPv6 Date: Mon, 30 Nov 2026 06:41:00 +0000 Message-ID: <20261130064101.1857363-1-omar@blockcast.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <179601051051.3146.13369414407667117379@kernel.org> References: <20261129034652.1853485-3-omar@blockcast.net> <179601051051.3146.13369414407667117379@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:30 +0000, netdev-bot+sashiko@kernel.org wrote: > Will a Discovery whose outer IPv6 source is one of the relay's own > addresses still be answered here? Yes, and that is a real gap. IPv6 input drops only a loopback or a multicast source (ip6_rcv_core()), while IPv4 refuses a source that is one of the host's own addresses as a martian when it comes in from the wire, since accept_local is 0. A Discovery from one of the relay's addresses to another of them gets an Advertisement sent to that address over lo, with the sender's nonce and port, so the IPv4 path never answers itself that way. > Would it make sense to drop a Discovery whose outer source is a local > address, for example with ipv6_chk_addr()? At minimum, could a > Discovery with saddr equal to daddr be dropped? v5 drops it, in amt_rcv() of 8/12 rather than in the Discovery handler: a relay drops any packet whose outer source is an address that ipv6_chk_addr() finds on a device of the namespace, before it parses the message. That also covers a Request, whose Membership Query goes to the same kind of source, and an Update. An address on a VRF slave or a tentative one is not found. A packet that arrives over lo is not dropped, because it comes from the host itself and IPv4 accepts it too, so a gateway on the relay's host still reaches its relay. The Discovery handler's own checks are unchanged. 11/12 sends such a Discovery in from the wire, from a namespace that holds the relay's address on its lo only, and fails unless the relay counts it in rx_dropped and nothing answers on lo; the same Discovery over lo is answered. I will send v5. pw-bot: cr -- Omar