On Wed, 15 Nov 2023 12:16:18 +0100 Morten Brørup <[email protected]> wrote:
> > From: Stephen Hemminger [mailto:[email protected]] > > Sent: Wednesday, 15 November 2023 01.18 > > > > On Tue, 14 Nov 2023 16:24:58 +0800 > > Dengdui Huang <[email protected]> wrote: > > > > > The function strerror() is insecure in a multi-thread environment. > > > This patch uses rte_strerror() to replace it. > > > > > > Cc: [email protected] > > > > > > Signed-off-by: Dengdui Huang <[email protected]> > > > Acked-by: Chengwen Feng <[email protected]> > > > > NAK. > > rte_strerror() is no more thrad safe than strerror() > > It is thread safe: > https://elixir.bootlin.com/dpdk/v23.11-rc3/source/lib/eal/common/eal_common_errno.c#L31 Thread safe, but not signal safe. a per-core buffer is not safe against preemption in an interrupt.

