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 D908B43330; Wed, 15 Nov 2023 01:22:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76D704027B; Wed, 15 Nov 2023 01:22:59 +0100 (CET) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id B6EB640261 for ; Wed, 15 Nov 2023 01:22:57 +0100 (CET) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6c10f098a27so5001244b3a.2 for ; Tue, 14 Nov 2023 16:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700007777; x=1700612577; darn=dpdk.org; 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=Or0wUcxrLdWVklmxU+riL4EjVx5cxuxSoWVZ3HFAdqI=; b=CUKvn0CfALMf7FzHt5IzY01CwxV3s6OZIuSaKqH1EFYo3cZTnKp+nCClWXHFNVUQ8m 1SoeJawkGdcQ7L1O5b5ler/gBd74XDYhsYkI+uR5vSQu4z1ispy/tu4N1ArFzLORW09V 8RFWIkh3LvY4a2VNqkI6+7QYz3NiZ/qOh9lDtS1nQtBerS7ZWvoWssQR8q1aUJ8G2rAS 6NW1kKGsZjtzu7y96SffOfzffZKdtiIlGiFoW8kcwuqA8pB7bYHip1U8Y8Nd/OoWXDTe j3rPvPzkW1mqZl6sTm/U/o9enLguP2NRW4pgJ46hbc7PdUZGnMGySSAMkTJGaq7pnhKe hyyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700007777; x=1700612577; 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=Or0wUcxrLdWVklmxU+riL4EjVx5cxuxSoWVZ3HFAdqI=; b=UsNbId5xTxiw51/I1wyyCut4B5KF1rivYg8YYvcz/S5wOF29YU/n7v0IH3aQaG0xV2 UMk0xUJw5Brb4TJLXWhgTPbjdMpEzxqyxqp19n1ZU0Toyz9hJsu2MNhZA41++df1QjYA s6pjYAI332uUnTaUXN8y4DqkxcsnrEEyfoXhGCIAwDvpSOUe8WTxFPyWfs0svCqYYnY3 KDIuvkqPR0zBkijQIcoAZPFZfM1c5Gi7XS/pTnQty6O0PTJJGs4aul9nvVn+/rtkvv+Y 0sa4YjWbyliSrqSwW96guet4MohOQOp2fuWvxOSSSUumbNCyqqfF2RjxPJAbbJbS9jOT EXfw== X-Gm-Message-State: AOJu0Yzn1ncWQmnR1+fgSoJjf7FLWMMYCv72Z0Wmn+L+F93jflx2XstR T7PP+j+bjvMDaWH/a1GSs9EjYg== X-Google-Smtp-Source: AGHT+IFVEH1KN8M2IB4LUKKIXrtO6me2WPWyTHKuExJjqUh9EmASAZqQhsCpOeKclTq8qzEoowIOng== X-Received: by 2002:a05:6a20:7286:b0:187:2e65:9cc9 with SMTP id o6-20020a056a20728600b001872e659cc9mr2928802pzk.56.1700007776787; Tue, 14 Nov 2023 16:22:56 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id z18-20020a170903019200b001bb97e51ab4sm6298486plg.98.2023.11.14.16.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 16:22:56 -0800 (PST) Date: Tue, 14 Nov 2023 16:22:54 -0800 From: Stephen Hemminger To: Dengdui Huang Cc: , , , , Subject: Re: [PATCH 02/43] eal: use rte strerror Message-ID: <20231114162254.7c065d56@hermes.local> In-Reply-To: <20231114082539.1858594-3-huangdengdui@huawei.com> References: <20231114082539.1858594-1-huangdengdui@huawei.com> <20231114082539.1858594-3-huangdengdui@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 Tue, 14 Nov 2023 16:24:58 +0800 Dengdui Huang wrote: > The function strerror() is insecure in a multi-thread environment. > This patch uses rte_strerror() to replace it. > > Cc: stable@dpdk.org > > Signed-off-by: Dengdui Huang > Acked-by: Chengwen Feng > --- Look at implementation of rte_strerror(), it still has issues if used from non-DPDK registered threads.