Article View: linux.kernel.netdev
Article #23488Re: [PATCH net-next v2 00/13] ipv6: validate cached dsts against the netns route generation
From: Ralf Lici
Date: Fri, 27 Nov 2026 10:47
Date: Fri, 27 Nov 2026 10:47
28 lines
9936 bytes
9936 bytes
I ran my reproducers on this series (on net-next eb6d6c80d354, VM with lockdep and PROVE_RCU). The races are widened with debug-only delays after the lookup, between route selection and the pcpu dst lookup, and before xfrm bundle creation: - an xfrm policy inserted while a TCP or UDP lookup is in flight: no plaintext once the policy is in place - a blackhole added while a lookup is in flight, with and without nexthop objects, and a pcpu dst rebuilt by another socket in that window: nothing sent past the blackhole - a block policy inserted between policy selection and bundle creation: nothing sent - a PMTU exception across a route change in its subtree and elsewhere: the learned MTU is kept - a corked UDP datagram across a pcpu dst replacement: sent The issues I reported on the RFC no longer reproduce. fib_tests ipv6_nh_pcpu_stale and pmtu_ipv6_cached_del pass, no warnings in dmesg. The reproducers don't cover one lifetime issue in 06/13, which I'll describe there. Tested-by: Ralf Lici <ralf@mandelbit.com> -- Ralf Lici Mandelbit Srl
Technical Details
Message-ID:
<20261127104742.333777-1-ralf@mandelbit.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372665-linux-kernel-netdev=dewy.ruReferences:
<cover.1795642432.git.dahern@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372665-linux-kernel-netdev=dewy.ru From: ralf@mandelbit.com (Ralf Lici) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 00/13] ipv6: validate cached dsts against the netns route generation Date: Fri, 27 Nov 2026 11:47:41 +0100 Organization: Usenet Network Message-ID: <20261127104742.333777-1-ralf@mandelbit.com> References: <cover.1795642432.git.dahern@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="711940"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:p2HKvgipo7w/5PPCg8pWtCslfc4= sha256:yj9OanVBHPOmpbjGE7IiuaCrsiUlhfTRFQk1ZgKi6KE= sha1:i7sqOohizwTwTkKzzF7xBm4SMU8= sha256:thD/Bw8aJt5AlHO1yzuBAa868RELHxxK9L9un5yIYLs= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 57774125F4E; Fri, 27 Nov 2026 13:48:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=mandelbit.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GlvDywbu8v8k; Fri, 27 Nov 2026 13:48:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372665-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A4CC1125F51; Fri, 27 Nov 2026 13:48:20 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id D6FD62842E; Fri, 27 Nov 2026 10:48:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795776496; b=nW9rRlecVqWlWTujEhPnB8Gs9+NG4qDrAZSmeaxhXti0fDFr+Mz/iVm3sJlGBxCUwCYk qVZZIyC+RO05lloKQDkEQJSd6MaX2FNal7B+pCAB4JDVPB6oSsbic8Fb1E/qYWPAOARQ7 vUFqjtI0opfT4tLmEkfOs3tbYFT07Gl2kjtomJLgVsnIuRbiAoSpiKa+1Ezxl1Mq0X7ot LRUCFq84Uq2DYk60GDiBapEcIojjoB/g9yzFagdMGG9X1cqLELdKG3lO2gh8gjwU7LkES BksrH5WC/z3w99M3mciCghUjgbIGvdvmqyfQh36fqOKUKOBaJLe8vJX/x86CxDEcXqQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795776496; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=di14oPf+t9fgMMX7YnmMPb+CKUkBDd6s/qyQreZeneQ=; b=h763GXhUjoj8+kccoW0TFp/QwmYufMVBasIytzyXlp0szjPwy2Jyp+zYdsRFjsPBsGYn cSQwZ9wmJeBphcnen9KcDJwVAq77DNeQbljzaWrr7cCyAERCb2ozd9YwR0HiIulASn/YB 1dFGIYbsPJRquLaC06UldaDvtRPv8QGNCI1VamYdtq5Ar4UJbL/Wvp7KXfzsGCLV773qG PjeI/232kWIebGRUAILpBV744H5uRyhxBlmQFNIPu6b/cbtOG2uJJ8pNfess9xs9DiC94 Gx3LwQ/Vpzzsy+JZ9Y1fghQyLkoWLgY9LUg2FY2lUdimvy3dhEQx8MrM/LZH38EzUsw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=G5doIFTT; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75D55606A330; Fri, 27 Nov 2026 10:48:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=G5doIFTT X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.55 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795776495; b=gThYA+vfdCsFmdO1nedVjsXjPCl20a0kxpnOEIbkUZnhbJPUEwdbPoLXPAVrxvs8qEiw VkWNLNs5gIFutxntFOTVGzUjJvcB5z5P/b0NVi3mzn/4M7atH0TBg9U6ev0kGYlR3NuKp OMFtPJyrNRd+70/Jj0ht/e+f/1JvzzUoglJOYMKbPB2QdoLEq+zG3J+U4Xkas174Zy0hk UD1Fe2idxLYFOJIQ36+eHGrvb0TQfBXmTTlWeHz2lFaVS3Y4elGIj4DSKudmCOFz2Kr2j yGRDYf5K/UmczS5JYcScuvO667f/KGTchYlNHe4fkbsRQzBHLYrARewk+MjDCI2lX4g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795776495; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=di14oPf+t9fgMMX7YnmMPb+CKUkBDd6s/qyQreZeneQ=; b=PlzwM9ps9eK8qPfIgYEhCoDFNf3YqGFhgHSA1LD/hqnlJAaX+WAnidjZ/bWYlyacS2pG 8Agal0BdFS+YC/jTyctw/MQBaK8NvB/S+Hfressk4EF56+yvw8tpJ7HCg40OHurNniAnC P/zAIR+S7djKlXXLAe78yw2kF+lvepGQiOh8d2m2wjKriaf5D5aGqonX2Lw4S7d2yoxU0 1LQHm31NrvVj1VfH0CTo+q6HJQkAHRYTNEIxt5qLC8dnUlXCbNYSb7Tn+amg5uOtULv3Y ZtCgpun22gc/6EGcN8soauv1cVypS2fP8z9JgCb9abYVefwPNGe46aBXJyOjkbR84bA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=G5doIFTT; arc=none smtp.remote-ip=195.10.208.55 X-Received: from mout-b-110.mailbox.org (mout-b-110.mailbox.org [195.10.208.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3A3C606A31C for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 10:48:13 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3A3C606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com X-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-110.mailbox.org (Postfix) with ESMTPS id 4jbVW12W8gzNm6Y; Fri, 27 Nov 2026 11:47:57 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1795776484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=di14oPf+t9fgMMX7YnmMPb+CKUkBDd6s/qyQreZeneQ=; b=G5doIFTTOt0Av8CXQCX2mdTmebk6lVMJKmhiSv7phmzTKGOS/tvyoC+07DOmyXwWPAs8H2 YcMHLoQAFm6zaR9WMxXXQfXc9XAP9Co9FHhY5oYKSKS+TZ+po+H7A6YrENimD3ugc34ZvF fqqqLB3pyQmpwBTjlxeaXsiIX6gGGqgL9lumXG2weSJxBrw9SBOxqZiqFhkjyznfJUAQaQ WOnSY9/zujgX4ngqE/vh3Itz8yHI393hcNhYZcDUfJhNgUkp45MImvW060VsvZHpcpCXrh m9s31yFzcpw5d5mWV4fnN5SY2gfjMbFtXOn7JNKMEc3S3gvn75LQ2jxYVI40jA== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of ralf@mandelbit.com designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=ralf@mandelbit.com X-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 <dahern@nvidia.com> X-Mailer: git-send-email 2.56.0 X-In-Reply-To: <cover.1795642432.git.dahern@nvidia.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Rspamd-Queue-Id: 4jbVW12W8gzNm6Y