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 011CF455B7 for ; Sun, 7 Jul 2024 16:46:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F01E540668; Sun, 7 Jul 2024 16:45:59 +0200 (CEST) Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) by mails.dpdk.org (Postfix) with ESMTP id 0283540656; Sun, 7 Jul 2024 16:45:58 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 6940811402AA; Sun, 7 Jul 2024 10:45:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 07 Jul 2024 10:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1720363557; x=1720449957; bh=mCVW22GnDpDd8Y6O8lLvdXs0WUODcblTXvefRFGq8A4=; b= XbgLuGfwdXArTf1DkSMAPksQabJoGCCNbFUYINNrqXnlxA8lm9Eo3zzsx326QtBD M8pXfNM+oM5qmu2BQzcmP1Ycilclk9A5EcJzIdlxm6fi0af7/CUH9N/Yc5Qg68EK zh7I5gm1HnyGzkIYQyW628bsKhc2elc+4z8w3s3SjFXhSv85Upom52SSFoqmciIk uU5Yq9oSs8ZUjhKU3rBCU38qpV6wIXZL/Y6yYWEgZQqbDYNHDgZXET08jTR2hnHQ 6nceVkxJyW+BFMaCZMU9fg+gl8IKqfRfW2snFHyJe5gxGzHTYc09j20YSUYcRUcZ 38w3i9h+AONNDGeQMHmLzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1720363557; x= 1720449957; bh=mCVW22GnDpDd8Y6O8lLvdXs0WUODcblTXvefRFGq8A4=; b=X LnnhSD58YVkfQuEiSnGmeOYRFwNor/09xkahDRKIqHoyWdb11WkmrbR1IiF8diEu uY/AXN79bU+6FCSbzmJdM0u7lTwQr/HWF/4zkbAq66o6uC+frBi/N7msEBl2ymiM 8E6kwdboUZHlWWiukNaoo5O0804AdWGMwY8R5P8CJFerXU6lJw4t5UINVp4JkC6R aGt+H+lDOQBp3whqIhp9AjF7cKI5tcV6t0Zs/UxypBMcqBGFFYQbLXh8UjstSyyP vJXgqdavL5mR2SQRrYMzv5sXtYrZgrQIwlci20buBSPmyiRfnpIK9MpqvG7YImKL LbIG0ZkHh2oP5M4KxZQKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdehgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepjeduveehieevuddutdevfffgtdegkeeuveejffejgedtgeegkefg vdeugfefkeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 7 Jul 2024 10:45:55 -0400 (EDT) From: Thomas Monjalon To: "Zeng, ZhichaoX" Cc: "dev@dpdk.org" , stable@dpdk.org, "Jiale, SongX" Subject: Re: [PATCH] telemetry: fix potential connection issue Date: Sun, 07 Jul 2024 15:11:48 +0200 Message-ID: <5680259.hf2xvdu6PP@thomas> In-Reply-To: References: <20240621024037.3412372-1-zhichaox.zeng@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 26/06/2024 04:13, Jiale, SongX: > From: Zhichao Zeng > > > > For calling memcpy when the source and destination addresses are the same, > > there is a small probability that there will be a copy error issue in some > > environments, resulting in a failure to connect. > > > > This patch uses memmove instead of memcpy to avoid this issue. > > > > Fixes: b80fe1805eee ("telemetry: introduce backward compatibility") > > Cc: stable@dpdk.org > > > > Signed-off-by: Zhichao Zeng > > --- > Tested-by: Song Jiale It would be cleaner to do a proper parsing before doing any copy (strlcpy, memcpy/memmove). dirty code dirty fixed for now Applied