🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14098

Re: [PATCH net v2 1/2] net: openvswitch: do not record user features when the change fails

#14098
From: Minxi Hou
Date: Tue, 10 Nov 2026 17:51
27 lines
12024 bytes
On 2026-11-09 08:23, Sashiko wrote:
> [Low] Is this list of reference holders accurate? Only cls_flower and
> openvswitch call tc_skb_ext_tc_enable() and tc_skb_ext_tc_disable().

Correct, and v3 says it that way: cls_flower and OVS take and drop
references, and the bridge, the flow dissector and the OVS flow path only
read the key and depend on it staying on while they do.

> [High] Can every failed OVS_DP_CMD_NEW leak one tc_skb_ext_tc reference?
> [High] ovs_dp_reset_user_features() has the same gap.
> Would it make sense to add a tc_skb_ext_tc_disable() to the
> ovs_dp_cmd_new() error path and to ovs_dp_reset_user_features()?

Both are real, and v3 fixes them along with the one the series started
with. All the paths that change or clear the bit now go through
ovs_dp_set_user_features(), which takes or drops the reference as it
records the field, so the four places that write it can no longer
disagree with the count. The failing NEW is the datapath that never
reaches __dp_destroy(), and the reset runs ahead of it for the name that
already exists.

The two tests cover the reset path: an outdated client sends NEW for a
datapath that exists, and the test checks that the datapath keeps
answering sets afterwards.

pw-bot: cr
Technical Details
Message-ID: <20261110175111.977451-1-houminxi@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360486-linux-kernel-netdev=dewy.ru
References: <179423057882.994134.14676780013911062883@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360486-linux-kernel-netdev=dewy.ru
From: houminxi@gmail.com (Minxi Hou)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 1/2] net: openvswitch: do not record user features when the change fails
Date: Tue, 10 Nov 2026 12:51:11 -0500
Organization: Usenet Network
Message-ID: <20261110175111.977451-1-houminxi@gmail.com>
References: <179423057882.994134.14676780013911062883@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="669496"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:U12rg53+I1Gk57sCllKpw9fZXzk= sha256:bePv9b65av1qYuXH+8+17W3GPAJnijxxYuCf9EOuawk=
	sha1:RJwz+b0MVt+Zom/eq7RDsa0cyZQ= sha256:QrMmmqPg5uvjyDrqSGOW0EuXU7wEQhtUkU/Nu7ZdTfc=
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 23092113CAE; Tue, 10 Nov 2026 21:16:17 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, 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=gmail.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 TcWXjnvIo9Vd;
	Tue, 10 Nov 2026 21:16:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-360486-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 55283113CA3; Tue, 10 Nov 2026 21:15:59 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 276841A0BA8; Tue, 10 Nov 2026 17:51:30 +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=1794333089;
	b=Wodc367gYliCZ5pcCDxFKF3St/e+5jPxjYe/XbDBkSLarpOwKGNk9WGH2dFJ1IRanEKq
	 nWV1in0iBmuwX6wP8hPijRc28L2a06fCgV6bUFIci3gYb/17GHLWWeumVRNeb25tTgDx0
	 BzYsjVvNInapXjgGlSJZZH4ze/uXzGpmb8u8l//Lv1m4rDi/dCNtt2xbBAFqmy0hPMF+S
	 YoTdNa2GaALqXjfNE8v2VeBkiICA+34rpsvd7cx7tSk9tMx62fe+WT9pWRYj+cPQVYjvR
	 tf68t4q2Ro07YGssX9GOhpho93GSCF/5eC7IxZ2Y8hyj8jrfVh968/h5WuRfjaVCnog==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794333089;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received: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;
	bh=CPvvNXqIc6NQ9tcR5dDa5483AHCobeaIvRqiuxHAwj0=;
	b=Fo+oNCkAGah6RLyE7TI0nQ2glFg/88ruWDwFwwce5fWaqL5cywYG/xooKaFtXkaH189t
	 vTDi2roJPqriXkLq4YrZWjBrlqMGkKUUoNAyIrjz1xeYKWq2/+MPItlU6+grBtb0zCxyw
	 U6M23T0QFbUJEOI7EgLq+cSVDJL4zqdkIE5zjNJ/+7PnSRDMS7ROrOV4WSbox06SzY1M7
	 2qSzqbYtnsNNiwm7G73I2/Mrajd31U7qRZdH+sqgBFBBXaJwbAa+FW27O17yUQDPf2lW0
	 fZ585XH5tmYLOAMm9bGQ2dl5906s5IYCyAJONyPs38Tl1fKx+f9YGwHoYYF5QYOW05A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GVp6fDuy;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.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 70876606A325;
	Tue, 10 Nov 2026 17:51:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GVp6fDuy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.161.47
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794333088;
	b=yx1LukAwvlFk5MR05RIROotY9NLeENFv3K33BnvE+P748xq+DEIk5a1zmm6K99SjI/fe
	 foE9zQByZgIhp2xKKDnsMaADY+kIyHPNR8ovvvjJOvBGtjT0nscya0qRRR2wtudq0YaSv
	 o2LF6W916hdPEx+nT7Y7H1Bs/EI4qrEjQHAzPvx8KxZ5waYKHfH9V0naxxQwx/rVDkH4Q
	 0aAI5ii2L4UQYgF7m68KhdbDByUA0EtUvNuBuL9TIk/1Hf6mp8m+t2HOYpPI7/h6iqwvX
	 rfEoO25r6sw5z3CJQjUsFMAykKpntoWo6xWlXqpzL3/S45SjBcP8EuUvqityzDliMoA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794333088;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 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=CPvvNXqIc6NQ9tcR5dDa5483AHCobeaIvRqiuxHAwj0=;
	b=IS44KN86wkn9T2kONmAU9yVRcxl8zRqcut5nCNKffxYJvjTy1HdtYbf9tQPFmS1x4byr
	 +Nn7qB8g1Hg4xx3SS4wd9vpLuYZ+Y+U2qUc36P7M0fGIhs353ddGZzpjsDGkhzZnrbopY
	 SGQ+uy0K2JRSSRgXIZc+gKiiWXYNHpAmk9IeriXeacJuEE7uz5YshL0vLGhDbXJROiBGg
	 98eXaGreqBeajZknXs0+YylGXFXEeV3fCoyhx86eYNeKWNv7zkNDpOflhE0E6wvADM2BB
	 O7wYsf12g2VeXt88YgM98N/7ysgqMtTrztTjIbCbbK3pWU4ExQcCFTuyn9uN6CCFHhA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GVp6fDuy;
	arc=none smtp.remote-ip=209.85.161.47
X-Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47])
	(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 3C958606A31C
	for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 17:51:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3C958606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-7190d9bdb2cso448983eaf.0
        for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 09:51:27 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794333087; x=1794937887; 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=CPvvNXqIc6NQ9tcR5dDa5483AHCobeaIvRqiuxHAwj0=;
        b=GVp6fDuyjzyTBe4gqu8/YTJc+c4sASOl8xSrw4IySu13ZcrDDjEEmp4DRBUGxNUuq/
         UTNz30ASl8tNE8acIwD8aE6qeOJQ3Qb6BNsvbu1HQ/vAW3WI+A3dwFgz6k1PLpyXdAMw
         kiFBiuUUB12yfFPNbbI1oyvVbeKUYigCvs2Kd1kpOq737kVX269yZtr/KNC8iFBzJXdo
         WfE2gmxbRUAiNANnr9Vh2YzVSQeneB64bsGR1DZkyALEI1i2d1BbHXnolIv73dOrdUSx
         IQY+aS+8BsdPVedmdsIWj/1WifSPeso7fXSMKEEp0jCnG8vLFKpRQ5ZHTfjfN43Nol+0
         LdTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794333087; x=1794937887;
        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=CPvvNXqIc6NQ9tcR5dDa5483AHCobeaIvRqiuxHAwj0=;
        b=Z8dc63C5LmhMH8wWiF1ikJelSDTQFDAM6BjBmBCw6vrVGhUSptLyBf9hfF+xjd51yM
         VbdREAdCd1RhrtY8rBkbBEQaSUzUnpzYKSf2pobISlog9nHfnBMPgGqBkDHc4tj5sHLc
         poy/EkgvmlYWUdE81+TW65Vxay1nlksUcK5erUS/sgXy8i/ea6aKhq1S0IcJ2WTXeWDc
         elmZ1xK+mzIZdU/LknRwfuU3TN3j/7D+XDIT+r1fc43gMLf0RqILQNBIpYjthmQ0/sKw
         6rF2RCEVfJpUTTxjhUPFIufMBDd7tEptoaQM9WL9zMZUeM3Pr//VI3+Fj1I8rL5WDr+c
         lgWQ==
X-Gm-Message-State: APuU4Z/gZnAv7DRdyvyS8EtrUQE1l7GJbJMJ5CBGhr+32Ta9DEW43oMN
	eP+RbTdjIocPrqyQuo+4yt3++jH2IgbILPauUpOIrMdhYDg5DGuVldGgLDdxWt5f
X-Gm-Gg: AYBFou2M49Fm23zs2frzZ+wY03EsdVn9FG9ICg1I8L5JYiiTbbZef3LKohAlWyY7gpM
	xZjR24aqii3z8USkhJvOXOIQ2WGn3Xw5TTBcRmd1L//O68KMIAid4lA6P8y2TQALEhxtcFQ5Yga
	zk+r1gN/yMLEa1omm6/5BTSpMm9Zh7/2EMaKJKk6+FF09HZf1xA5GGKqhBbqUokenN1jyXDGYCC
	H3xGWZt/kNJ69aVa9UUmwiu/Dh4FFsUJdPGdaArvnto6ETgkbR2o7ZlRYZ2x2rq/WYLRfXrFVb6
	Vh+5kCBjdqnZX2RoKI7DtThhQhOE/tHWuBMoPzOkBHGl8Arnu3rjgbVpmGE2IReK2HQt2UTrpJz
	1NJLdz8zoTEjEXdAR637TAbaYj6MefM5URAMfLdSksLf24amaP2GB/2PGt74AhxWK9NWoJJrBZ6
	7ZUty185GWKVHx7M7opVrq/5IWIZsxMdDCFUIby61+ootcIR6vWCrg45yh4lrtF4qwIXcKeJnwm
	qrWT/SJ/ZFAwbz2GWJZbPrcD+WtmATdMoNi+2N+iN5zoICcLMR7Cd44fBuFZ/dNX6QdQ+znrsup
	FJOz+38lB0b2pKvPvlYqftsT
X-Received: by 2002:a05:6820:c5cf:10b0:6f7:75ab:f969 with SMTP id 006d021491bc7-718a6e32db4mr1160034eaf.66.1794333087028;
        Tue, 10 Nov 2026 09:51:27 -0800 (PST)
X-Received: from houminxi ([61.170.225.237])
        by smtp.gmail.com with ESMTPSA id 006d021491bc7-718aa132e65sm1873741eaf.14.2026.11.10.09.51.22
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 10 Nov 2026 09:51:25 -0800 (PST)
X-Cc: Aaron Conole <aconole@redhat.com>,
	Eelco Chaudron <echaudro@redhat.com>,
	Ilya Maximets <i.maximets@ovn.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Paul Blakey <paulb@nvidia.com>,
	Jamal Hadi Salim <jhs@mojatatu.com>,
	dev@openvswitch.org
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <179423057882.994134.14676780013911062883@kernel.org>
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