From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796020865; b=TgMftDp4bh6ChxlEZZm4B1BLxRHioGSQS1XT7ZkhreSCouOQowzsyHS78Qlon5daRz1Z cWkgOfnuEAsGrqotWWFhGytQrJhOMGC1P2yrS2dqfzhfkYcQdNwmdO6sO9m8lxFNT8y3h B+P4IWbAhrxGNof1W5sJ/cjUSY3eLmhJy1yK2n7u0zfh9572JkCQXm+F3suvH8JPGoV5s w+0qZmbRFRFeEmH9Y3/FpPhPE5DYhsho9HerPmge6jBSWQE0gAEandP6RRb0yXbn2g33S FjgdV0OsdsDn6QzbEpqaKOlT1HA1uK2m1LbrMQ7LdnUMNNkCp547PRIxPf/qXy2h4Ww== 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=5p15kfNNKdg/0Zl7QAWr6/mrg6hpYLNMjY4jPm2iPIEgmdfLE56KoX0WEoNFBL5qN/iS 4i9OQRGF7J2q2XEn6ql1B2f5Yw96YDZbYC2hbZb2Rrc7mRh1Q3bJhB6toJSKXXmrjnhd0 ztOljoGeVYgvttKJ6LAPn9Sr9awBV9D8La7i0f4fjFMAqxAlnhyhgmSikJbgab2pPAbPm RUA46Xw0c0uhRYFMF1QTGCQCGwPEvdfVR+RiiptpPHt9aPmg0deU/OrK4grc9tqL00oFT JQJGzXW6LI71SgMnv/A+l3v/YlLpqSFCa9HH7IK8cS/WJGtvvQdXL0OHiPxVu8/UWpQ== 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.53 Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53]) (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 8A0FD606A325 for ; Mon, 30 Nov 2026 06:41:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A0FD606A325 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-f53.google.com with SMTP id a92af1059eb24-1b3ada81853so10101325c88.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=MMYS83qqvW5cCSl1Th/55FjjNJ8JgTDaUEoRpaQCAxz00HSYTpqUeWPQvsEk1dexPS MWYuzZOVPdJ2lMs/qAj/lmhm9K/kGq6QucwlwPmcHdzYgW6pn25fFp/b2zFUGw+wHWWy TSo2vt2e2s/tddZdFp7OtGn/BgpflERBe4FhlKcGIkzWb8LYZMyc8L25/3pmk32gtTIe 4rv9DE91Unbs8KkfiElRyWD0TMUCHNzmf1y+0orN9b1YzrrTNlxNe0YbJQ1v170YCELF xBjq3saUID5I0oQC+KwPcg/oj2uzOuagnpTqfGRRc6hEPHpF5sb2R6nq30Tae1k/b33H cLTw== X-Forwarded-Encrypted: i=1; AL+hErHvryI6sAmeasS//ez4e9hwrtQirt2GL3HxGtiGuznItM+IldzXto1lKeEWjuvt5oAAwHpYuDc=@vger.kernel.org X-Gm-Message-State: APuU4Z+NYf2FsONrXBDv0vC44GxbysI5Xe+OuqAqYlzB3usUI2jQ9FYe GDOCIYJ6YSMu5+CCr/zprAtAO4mI6IYMWYF0yDxupk9OYYi1HXGQM81/zPoDbNxJGjU= X-Gm-Gg: AZFdTZeed1k6tYywxPufWRzFTLU/TGaYN08zTuL7btCl+vuc8d/u3MwcVhF2c+K2/T0 2nShZ8bMKnagKEn5IDbJoYWU2Isc7n+jeJDUZRYl/dYlfLDxdyb0qL9pK4Tta/BnqsTtMIjafob fjTzpg8IqC3lO4HV4NHy2QlKMFiG9eSMizHsQg9W9ynZe70SreOMPAHSIE6NcCdBTZNJxcsb8X1 SBdayWqyhgZR+ZmRqn5J567L6cRl9Q/wEiu+kOSyVqf0FH9Qx/6zgpc8w1JjGH4Ey0tGrOJ5rht W7GHMUM3oc0SVLobWsV6VrPvJ3KCJEGIom/CpM3qXJOW0hKN+gxfI5tIttza2YEt3/6CW5xV7oe 6TF2wJgbMKntKD8GPsgvVMxHfPXLeF0AViIV+lEj/jWcl50RwXMIBYPnzXzXDYzMxKn9OPUVmfE Fpupo//3tOsLcCTLnUFzbjfFf1Qjrd/8fwGxGQXjlTKXznKtnzxvDqaDu7WfT9A3nqOlF83xKuP QMvSCEgi4vFvRtwsb1eLQUpKhKNjwUr8SaTNLZsbdHGSDAVAgKwiUQ1OlSlWuhLVMvmSsAf37iD EpVBih6nF3NqaOPGfwhTqZMZM+NaDTL9Z7eNcbe46KzqgVzGgT1hdLSMnTtlX7HurTbe/vWHKlj oFjDzoCW14kWkQlFOxf5u5r94+G+KsSp+3KEC5RFjJIaMZJiu 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: 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: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