From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0968C2F745C for ; Wed, 29 Apr 2026 15:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777475887; cv=none; b=p30eGZmiy1E8O046PNcEJ+IBG+hPo7rTU6OBlcbhEneF1RCKsyU3ykIdrDlG765fs+mRWo02g/ua6GXyKycfizx89efoiuBRFnfY8t2VtRMa509cni0OXxeFQWTh5c5ZZmB2MBQEisu4FDFNizHsWq7EiBATRueRSCpZseogBa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777475887; c=relaxed/simple; bh=Spbw5+FwnAD1Te86LZRFTidv12kPXHlIeSpjbXHRsAM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AbVXNQPsmZOb/1oZn0yNZ7luCjB3zSH1Yv6scXJUOx/bYmPrM+9jBi+97u+86REzs1U3hoqz++yg8ZRqwHanfsQ8HvllhzDsLNFu91NtWFa30zvnNxDejK4tFTgMjRX4dpVm/uJtt8KAIZowpXfdiNGYzQPAMpluDIpVsgHE32M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f65.google.com with SMTP id 5b1f17b1804b1-483487335c2so125691615e9.2 for ; Wed, 29 Apr 2026 08:18:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777475883; x=1778080683; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6g3lBM/B1h9yI4BCUe+xp9frAHx+qvXrSW9JLGyPZkQ=; b=oxz8EFNOz0RNeO3WzEqPt7LAdbM0oGGU8KWV4Q5k9oWocWI0gM45c5DAIdHWwrKYka nI5WQCPOX61t3MmhB/lg5OvVzETAszhIizGNkka/GupBEKT0xzbh5Kzw7SC+yabhoM3g rOUmE0hES27Kn71utSe5/lzYFBMpAl8dOxdekps0vQ9MGA3wzyzb7VNx9SoTLMrf64lC aOgUY0KLE88eMoRzuROpEmXpHCjChwtCqGxzDjKd1gPltqMWogROJ2FQeQQfcBb+maj+ vswy4YfPAfaCc1cjQjPY0UsjnVDsdmLeNzWUoxCrIAFIt6zkGjJX9H1WWtTuQe+zXDc5 iPZQ== X-Forwarded-Encrypted: i=1; AFNElJ+Zpg7Bd94i+FK8H7h0e4s8LSlAtN7275iL7OF6VLHp/bZusqNCVKGujgXWHhDVWugdqBiuGfwoZxDRSRg=@vger.kernel.org X-Gm-Message-State: AOJu0YyhiwFe6KcUmbkzjS2YcaTnAMtvsy9ukymA3RnXKIYXP7y6A+A/ hX/z/OxA3MyLqckcrT5j0SnLWM8GBV2Lux/nvW8TunbXTU1LeaLmjFBB X-Gm-Gg: AeBDieummPsX+Ujq/MKTRhPS4pED+VqLHy526yf/7wEtO77s3EO5H3sUkdMoObp6M07 8JIZyKOF75ukHbIFg6v+iTIy4bKAGGxezxSF6lWOFAtxEldME/nQQt4yEfiikHaoAdo90rCGfKs fa7jP6SNAa2PAeuNwMbU7dv1CBp4TTtJR9cqgL5uBtBH/hwe+e47EIbC+VoQxZT0mzQoAw8TDxz k9z1dfD5mdbJ8qRdWGVOPwJeSc/7WoVFEXpZ4oE53iyT3iNYhuL2UONCg2c5iTIJBMXX/GhKfco rgyugKpg4cTJgeaVez2U7sWivDSx9RUSynortJavrbpl/jbDF54qxmg77C6sqlFc2Msblv6p8uv GxTSZaQYDr5L06HAR7s+D+zQTB2s5k4hsq+5FSc1VJ9SDtNt60TKxPjiudpEYn6H4qruEYPk0yQ kzhuQLL9DucbWqQsjumv2NAOpOTLDTEI6LTQbsTMVmKKluuo1q0HJCqkrF49Vy1J2lNb4jIg== X-Received: by 2002:a05:600c:a110:b0:489:1f3e:5f69 with SMTP id 5b1f17b1804b1-48a77b176f5mr97415915e9.18.1777475882817; Wed, 29 Apr 2026 08:18:02 -0700 (PDT) Received: from im-t490s.redhat.com (89-24-32-159.nat.epc.tmcz.cz. [89.24.32.159]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a7c2d3811sm32358165e9.3.2026.04.29.08.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 08:18:02 -0700 (PDT) From: Ilya Maximets To: netdev@vger.kernel.org Cc: Aaron Conole , Eelco Chaudron , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Yuan Tan , Yang Yang , dev@openvswitch.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Ilya Maximets Subject: [PATCH net 0/2] openvswitch: fix self-deadlock on release of tunnel vports Date: Wed, 29 Apr 2026 17:16:35 +0200 Message-ID: <20260429151756.4157670-1-i.maximets@ovn.org> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Two patches - the fix for the actual bug and the selftest that reproduces it. I missed the self-deadlock in the original patch that introduced the issue, because testing required code modification in the ovs-vswitchd to force it to use legacy tunnel ports. I thought I made the change correctly, but apparently something went wrong and the tests were run with the standard LWT infra instead. The selftest added in this patch set will at least prevent this kind of mistakes in the future. I mentioned, however, that these tunnel vports are legacy and not actually used by ovs-vswitchd. RTM_NEWLINK + COLLECT_METADATA is used in conjunction with the standard OVS_VPORT_TYPE_NETDEV instead since 2017. The code to use the legacy tunnels still exists in ovs-vswitchd however, but only as a fallback for older kernels and we're planning to remove it in the next release. I'll be sending an RFC to remove support for these legacy tunnel types from the kernel, as they serve no real purpose today and only increase the uAPI surface for CVEs, but we need to fix the known bugs for stable versions. Ilya Maximets (2): openvswitch: vport: fix self-deadlock on release of tunnel ports selftests: openvswitch: add tests for tunnel vport refcounting net/openvswitch/vport-netdev.c | 6 ++- .../selftests/net/openvswitch/openvswitch.sh | 37 +++++++++++++++++++ .../selftests/net/openvswitch/ovs-dpctl.py | 10 ++--- 3 files changed, 47 insertions(+), 6 deletions(-) -- 2.53.0