From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020865; b=ozvCog5rdOPS7qOxHodOuWZcnQEZmbslw0dvadUhP8vIXVl+A+UtRn/lx4aK9ZfN8SMS VKEA1byyUFQ12w4d3JsoGgbyYmdkphEUjYCmdOAUovlpM4vd78wwTX4m8v1T1fken1gf0 CTTFoQOtnqELs7XktseZ60ySAUCjv48ki6aCf7U+tlk3UGNhAsuS3cJWDlrMkd87xkSzi YReiKsJK+bfPje4Or03wP7yRNy8V2+PSa9pcSKLjtZQV/JbNVi6tMFmzjgzX3obsxSWcL xK2XB55z85MdugW3FWzoenpGvzxIEqr8H/C1OHZP0pE6cO588ppnRYnwm5duRlkA/5w== 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=se4NCVkMqMAfLrKdCVACt4CU+EKyAGL/Ok9HWICU57zKCLTj6J6ZSsSGEeW8NNTqgob1 l6TfZ8b/vGtlzxhvT757BONreTTpfJz9ybEtItS+10daTDe0gQrH6AIndm2zZxhTVHluU XgamR39JxXl4fggJH0p1sDBkmVwGpCZ3ZpZxglyqbj6YAmyUOJoxGtnJQdm42A5Kv4Pnu zKbrBzfCokuJir38IcwNhk4wly/WG5fCBURbha5d14PE8iJ/bNZBpz1741ow07xqvvxcE fDo72cE4Yw2Fx8+mR1FBRuS35ed7dfA7uxCZPGFBmC/DXnLsy3VZh00B7imgg6i3elA== 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.41 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.41]) (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 7F3D8606A31C for ; Mon, 30 Nov 2026 06:41:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7F3D8606A31C 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=tsvmWmfJ Received: by mail-dl1-f41.google.com with SMTP id a92af1059eb24-1b3ada81853so10101329c88.0 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=jZ6gIDWG1Gfv7+TTMd0VtxNmfmKZT3OqC+JHvY4uC2Aczyl1as48q60P5BhkYZjEYE ZQAKokHODj/FgUzHPEWaxJNllWD8O8pEGJIPrBZ22lNTD2hABhNbVgbr4BII4H3pBhiL 7QFt9apOq0ksYryBbl+9sghGwokEcWdcpdND9yBuBxXa2iT3/5T+MEYrA+tbg/uMaR1A ObWa1xKqOD4gtqjcIlM+7RVf18j1Yuqag9Hb4dmU/iKzDtTm/rOTkb1KoNqPj3oEbYfU UmWt/w8gnWvuIgeVcup9wnUGv1VoattfpAoNP0IU9BbrAokbBajOjaLgmrgl9AT28I5L EnYQ== X-Forwarded-Encrypted: i=1; AL+hErG5cvC0t0knHwxBijsUt09Wo7G0XRXRJtUbceEMbQyZgB2Ubs40zvKqzPNQysLe2VrlnmIhu9pIZv+xGyE=@vger.kernel.org X-Gm-Message-State: APuU4Z/+iximRc1Ylspo2wp22j+B1Q7zufBRoZ6kU5J8HngkN+TVfM99 nlkA2I+8oHtEbAVgzFXBXtshp/FQw0TvvbY8Y5y/RkSl5nn5ORCqt/b8zq4w0RN+NXU= X-Gm-Gg: AZFdTZfDAzfYDuls51HROm/qxUFQT2zXvIKE3PRHKJLtRHhFafn1YdcYcITJ+smLXKu q7jdhMwsSqwd4YfLm4KC32YbUp78ah1hXdoB4YZtpHGtWxp7NDXV/jZ0tamt/uerSzGHxMfnxRk 9PVyZeCgfJZpxePZYNil2RXhs9AAztX6eOI3vx8rj5p4ulGNMbZcyDU5yjq5rGzQDDPKVFlYz3Q hU7SvbFVBxxt9DyDmE3SzHvlI7m8idyFnIMc8Iou5zHClBxPaWQyGqsD9eO8HD6V7ShiYGXB0U/ XcT8y0NYBNO5n7LgUD8kwBjh5X/PHPmbdN0b1DnQcXg9s9PauW/BkRF3b8nnMVSjK0VeyuhqMsu LIcdKgbqy48THwC0Xmn70TRcJNETVcejnGxozS90x7Rh/PSiz1bNyA6p0JOH9HqqXHJfWIXF9u2 0HqoyZneblcp3e7LP1mOT/fysrggRZXR8FFwOy/mbBA0NbuWh5zbPbfIgIObs98xUKLzR/ndZUO uwqElLZpoExRjBxxq7viMumscb543uQYQW68eRE1XIjkzKJRE9PHMChFDl2+DnBM2zlcxxgLWbv 57ih4ontOAj4xGhdTcRDquGVYTuB+AccFQO6vvO8IG5tOsXJ7oOWdSB2ZyHVfGd9pQiE0hd5deb 8RSfoUll/1OyHPW2uvxx12tV8hz4duFCz0plT6PlJj7KV6+0s 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-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: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