From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3795E42D60; Tue, 4 Jul 2023 05:02:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B92FD40F18; Tue, 4 Jul 2023 05:02:22 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 2366940E03 for ; Tue, 4 Jul 2023 05:02:22 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1b8a462e0b0so2191795ad.3 for ; Mon, 03 Jul 2023 20:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688439741; x=1691031741; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=QMUQO9+v1oQi/SSagf3bEe0YyajJyZYY1VEQeI45mxU=; b=UQtH12Dgy2lLqhThwGMw0g98XSHF/zA1mKYTT4+t8pnmU9J46+CnVeFwGfNNnu9Nsv K0ytzIZlUBXWaCQ9YpfjtKQjrY53BRn9zy32RuvBpLuFCQzRFzcxq4IeCvgzajxkLWt+ EvQeCi/sdsyo0AbEC59OxtYwXkAkERwYirT+9a01ySohWcjy8ea+9N+czcrGCFoM/OEM Jinn60PmTiEagPHM0NcOpTDRo4Kl9kF03mgFZYNwv1ZjBN24pBT9966EM8DwT78iT/Cr FkWglMdpvdD4hK+COOwCYF0oe5ffoMx3gXbAyzL5sv1O9QnuuJFzK3bS4TG9VflQaG+l hFfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688439741; x=1691031741; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QMUQO9+v1oQi/SSagf3bEe0YyajJyZYY1VEQeI45mxU=; b=PPwAXpo7KQ3KPLVj5wKPqmNAHZdw9OiX5PeVgFWnDbb3v35KuZB7gs2kVPuJ9ydI0v BmmyK7SiY6ZhxHZrvG0QOcuzxCGzLeVLptKo5CjU8AfpIj3XNzQ4yScrx/25FaMrMlyh kx0T2VJI8PpQojrdSZOe34pZGt9N7/gSQOgxqU2Sf0I7hm65pDX/vilAZ8ctbL6TlaPs aTJCuFZ1Li2Wih+WBsd90e2qgFTBXRwFdwd7nm5saaA1PtdiXdf36Fblk/74jvmGJ/u1 pSVwgBm9Yea3kccQFx8X1RwoTzTkFo0El7Z1350a9jmR2X5fQhhEgMbBje5ZUgR+zaWT qmXw== X-Gm-Message-State: ABy/qLbi9kwOg2n4mIWmUe/dk8eC2SJCiLYoE93JaktOdQHgZmvLvg4x +KJbgFv4/4Cv0Z37cG3QWDPNwA== X-Google-Smtp-Source: APBJJlF6PkjxROX/cn4PXite6KJF1JeFw/HTkAy28zqCXsDsy/bYs6uJSfJiDvLXgyMbGYQu7uee8g== X-Received: by 2002:a17:902:db03:b0:1b8:a39a:282d with SMTP id m3-20020a170902db0300b001b8a39a282dmr1165871plx.52.1688439741288; Mon, 03 Jul 2023 20:02:21 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id je4-20020a170903264400b001ab12ccc2a7sm16009506plb.98.2023.07.03.20.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 20:02:21 -0700 (PDT) Date: Mon, 3 Jul 2023 20:02:19 -0700 From: Stephen Hemminger To: Chengwen Feng Cc: , , Long Li , Stephen Hemminger , Subject: Re: [PATCH v2 24/44] net/netvsc: fix segment fault when parse devargs Message-ID: <20230703200219.03e975bb@hermes.local> In-Reply-To: <20230320092110.37295-25-fengchengwen@huawei.com> References: <20230314124813.39521-1-fengchengwen@huawei.com> <20230320092110.37295-1-fengchengwen@huawei.com> <20230320092110.37295-25-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 20 Mar 2023 09:20:50 +0000 Chengwen Feng wrote: > The rte_kvargs_process() was used to parse KV pairs, it also supports > to parse 'only keys' (e.g. socket_id) type. And the callback function > parameter 'value' is NULL when parsed 'only keys'. > > This patch fixes segment fault when parse input args with 'only keys'. > > Fixes: a25d39a3eb69 ("net/netvsc: allow tuning latency with devargs") > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng Acked-by: Stephen Hemminger