Message ID | e40956162cb5d403adbacd72522bc2ae1df0d966.1623234822.git.grive@u256.net |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=u256.net header.i=@u256.net header.a=rsa-sha256 header.s=fm2 header.b=X85oq9ZD; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=JJahtP9Q; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G0SD42NlSz9sWF for <incoming@patchwork.ozlabs.org>; Wed, 9 Jun 2021 23:11:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 387DF41CB3; Wed, 9 Jun 2021 13:11:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VwkBIJhVuaWv; Wed, 9 Jun 2021 13:11:10 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9F2AB419BA; Wed, 9 Jun 2021 13:10:55 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5DA66C000D; Wed, 9 Jun 2021 13:10:55 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 19A56C000B for <ovs-dev@openvswitch.org>; Wed, 9 Jun 2021 13:10:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 06D7060A8E for <ovs-dev@openvswitch.org>; Wed, 9 Jun 2021 13:10:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=u256.net header.b="X85oq9ZD"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="JJahtP9Q" Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id px5p-wl1wR8N for <ovs-dev@openvswitch.org>; Wed, 9 Jun 2021 13:10:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6DFDA60633 for <ovs-dev@openvswitch.org>; Wed, 9 Jun 2021 13:10:11 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A554D1577; Wed, 9 Jun 2021 09:10:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 09 Jun 2021 09:10:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=u256.net; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=tlPCM1TlkgBkV +uca4LOQEuzw0MZeVnQqvEFetCE+G8=; b=X85oq9ZDFUq0auS06PAyCYw2U0mLa /KxZtyjGPFt+9K72E1HMWmTlBnwfmEOd6832MSSml9tEOnfW2wms28rRM+uOsRnp FU7SJRaqlJC4OkV5FziBlR5KT88Tl6BzqhTI6hK6DZG7i62hKEi0s0z6183bHagF wfK+zpCXMZhSFspqhAGIWASPPYrDVdUCGgKL624A/+goxk1rpFmRVzW+YteCd925 Z0cRalE5bKSRo+P3+LqzdPJBzQI0kVglUXCeA5vHCQ9BFRBKF/c33Rw6/a0RNMMS pjiZ1uVmPM6FNVRRVktXJQKWi4XV0GvCKLqyz+G2QlAWt/Q41CsRq+DaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=tlPCM1TlkgBkV+uca4LOQEuzw0MZeVnQqvEFetCE+G8=; b=JJahtP9Q qB+sli1WU/PD4+xJT14z3sICbTt4SpmqhZ0JJbVCRDIFgoNTFzOqtbH8VNI3AT0+ JBTvDI6ZylE/P60NCh4lMMHvT/ndV8KCDiigCs/Dn6KPT5WAXhNbW1e5tGu7+qDB 6+WM+igPF2oLbQ1bh6M7oDRrOFtd4rOK/I0BylWgzGWj5TsPC6KlxoRQNNb6yg8U L/2c635KXI+fnH0860fzPiGcTXzIl0143DQF9qjXj6DfZ36z9IWILQMon+zeUGZG UmI0/h6opLPf0oQB8BrPEw/wxyKrHlTRY/CsUsk6IOTG/wxzk+2UGF+NXNapqCa0 0Vvv2eLFTzXwjQ== X-ME-Sender: <xms:sr3AYH0IUk77lc2q2e4OyCk3HB2IaIu1eE9sIbsXoaIcRYnBTqRgeA> <xme:sr3AYGEHwI3FeatlLVrQlH9uxm_JcBaeOt4nsAczf48S5RJH4w0NSXoS5zGjVTdU7 nb8tJSvbE1AJjVwyNM> X-ME-Received: <xmr:sr3AYH6iMMS76uAVv9U879CBQOsZSxreQ3aOqBPZimp-nbQDdjvjeoETOKHKzdRr3DZ3QPXwqS6QlTAPqv2l3FpChN95Up8hjIrC7v2JdJAdCw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeduuddgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefirggvthgr nhcutfhivhgvthcuoehgrhhivhgvsehuvdehiedrnhgvtheqnecuggftrfgrthhtvghrnh ephefgveffkeetheetfeeifedvheelfeejfeehveduteejhfekuedtkeeiuedvteehnecu vehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomhepghhrihhvvg esuhdvheeirdhnvght X-ME-Proxy: <xmx:sr3AYM3PvY_a3x7kmRBvj9dprpOv7IjMdtdgbpc7bGiiM388hm43MQ> <xmx:sr3AYKFsw09OXCXyXeVimbFpO4C-YicBaug3ht5SBX5Mbc4wspqvTw> <xmx:sr3AYN-CIM0PmfEVnCSBdCRGC67rken5IpLptXY5kUQWt0qBAHwfhg> <xmx:sr3AYMMngOK6AvKQNQjslSoRlW3RmM-iyqZaA_Q5-XX7IlJayBjW1g> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Jun 2021 09:10:09 -0400 (EDT) From: Gaetan Rivet <grive@u256.net> To: ovs-dev@openvswitch.org Date: Wed, 9 Jun 2021 15:09:24 +0200 Message-Id: <e40956162cb5d403adbacd72522bc2ae1df0d966.1623234822.git.grive@u256.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <cover.1623234822.git.grive@u256.net> References: <cover.1623234822.git.grive@u256.net> MIME-Version: 1.0 Cc: Eli Britstein <elibr@nvidia.com>, Maxime Coquelin <maxime.coquelin@redhat.com> Subject: [ovs-dev] [PATCH v4 16/27] dpif-netdev: Postpone flow offload item freeing X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
[ovs-dev,v4,01/27] ovs-thread: Fix barrier use-after-free
|
expand
|
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index e403e461a..75b289904 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2625,14 +2625,19 @@ dp_netdev_alloc_flow_offload(struct dp_netdev_pmd_thread *pmd, return offload; } +static void +dp_netdev_free_flow_offload__(struct dp_offload_thread_item *offload) +{ + free(offload->actions); + free(offload); +} + static void dp_netdev_free_flow_offload(struct dp_offload_thread_item *offload) { dp_netdev_pmd_unref(offload->pmd); dp_netdev_flow_unref(offload->flow); - - free(offload->actions); - free(offload); + ovsrcu_postpone(dp_netdev_free_flow_offload__, offload); } static void