From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796146977; b=Z0V3MdSYWB9wsepNkEBwOkY4GvX2fP03slvY2905qE9RNOwdbFPNdlSUnD827QJcSuFq CvvVXb88DsMvaph00I5J1zc+CI7yKqE0T1HSz0RlNJOhGvC1sxYZXk+xkkzRBI45Mcqs/ TAujwr+OuNJSNbbJ0odamYjTH+ja+m+0QpKg5udyRYtGoF5QGbXTM8tejL54TAxLEzdOV JYRH0CDdAKvvG/TTt4JvS3S3M/jRqiyFXCoZBzXO8WX399NfNaJW4D53YCBxeSFAL/NX2 FziI9SM45DlAqNrz7QwyyneosSXaIX1XCdDAQM86lZUQ6zCfaKTFDRXHClAeYP4hucQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796146977; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=rUie/qalmix6JmQcXF8HQE1B/XkYUYHEwkYmtC3HmU0=; b=j9yv6VmUgfMNgtSu1h0sjGuxvTGXjGyrCb486DIEMB8/OxI0C8qL1pjLvd3zj10uRIZj 0yJG5ld95sWxf8xHk60ex9payWOKpHYLXz0wCgngYs4D8VU3J79JTNUk4Cvd1XXagXXcm Q3TDe2IDqzYixPmeAjONoxPKDrhmmBO9HMuxnzfWX2VwrmK3Bh4IJ+6WXYTPOSN6CEBNN 6xCSZmtDXPtPc0Obv+7RF13e+OaRRVUbRS/OPouN4dZPH+T7gYMFjPKbt5FDa9J1fXM7g RWh7S6LSY3Jp38T2Sd0GJm+Elf2fcWM0mzVU+L43cYEAEaF0ywA+ZAc/3u5DywG1tAg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Pf6vSXvq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15E20606A6A6 for ; Tue, 1 Dec 2026 17:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Pf6vSXvq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F3071F01831; Tue, 1 Dec 2026 17:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796146976; bh=rUie/qalmix6JmQcXF8HQE1B/XkYUYHEwkYmtC3HmU0=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Pf6vSXvqrxKsIQGhpKY52mbvOxGYggz4RqH10g96LvfUfMrCidofnQSzjkSLv6aKC Hn7SRAseeU9lB0MwFFJ4DPNpKE7nHcDTkbkS75Xcu5PUMNWRkqc8spD1Ohkd80bR80 Gpddv5bP36E3QZjEHKMXNINvR5GWa7iX97/hn64+3zPjI78KuCpWNv8zU96BUfoHRN ZbReeGv0yz+nJKW6aJ8E1bdklfE267X4h42YJtAnFXBaM5mp8HlwNPX6WewJ0liZlD q7w2icXFtQpGbetCP4udppXmATVOrA9tiWCUleFA9MVEAbsJTR5XCdYOv/9KGysOGW nWUgcYMqo4Fsg== Message-ID: Date: Tue, 1 Dec 2026 10:42:55 -0700 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 06/13] ipv6: validate dsts against the netns route generation Content-Language: en-US To: Ralf Lici Cc: netdev@vger.kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, ja@ssi.bg, David Ahern References: <52846eb18319fc2841ffa6dbb32abcc898eca8df.1795642432.git.dahern@nvidia.com> <20261127110319.354669-1-ralf@mandelbit.com> <88b0bd75-fb61-4469-a98f-6e30b3a63824@kernel.org> <20261201083252.37868-1-ralf@mandelbit.com> From: David Ahern In-Reply-To: <20261201083252.37868-1-ralf@mandelbit.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/1/26 1:32 AM, Ralf Lici wrote: > > Ok but the objection is not about the eviction itself. The issue is how > the slot's reference is dropped: lookups with RT6_LOOKUP_F_DST_NOREF > rely on RCU to keep the pcpu dst alive, and dropping the slot's > reference right away breaks that when the only other reference is an > xfrm bundle's child, since dst_destroy releases the child with > dst_release_immediate. Dropping the slot's reference after a grace > period, from a call_rcu callback, would fix it for both kinds of > nexthops, and in fib6_nh_release_dsts as well. > ok, I missed that point. v3 has a deferred release for dst in patch 6.