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 AD16A46ED8 for ; Fri, 12 Sep 2025 13:15:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8BC6040615; Fri, 12 Sep 2025 13:15:27 +0200 (CEST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by mails.dpdk.org (Postfix) with ESMTP id 8A51E40615 for ; Fri, 12 Sep 2025 13:15:25 +0200 (CEST) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-55f6bb0a364so2140155e87.1 for ; Fri, 12 Sep 2025 04:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=i2i-systems-com.20230601.gappssmtp.com; s=20230601; t=1757675725; x=1758280525; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7+R6PDofcUXxl5mupmoasTNO6Pt7o00MsMUOw9ehJYE=; b=B/HKaPn5S7r1O1ygky8lrCYChSGZ4OoL1gxObZqxuJwWKuEnVv9iPGFDkZrD9dinYB gXzOhmbap3DH4LCwes2cn/LGMefZ6ySh8BiygvIhCRqsA/yW+DCXAOkd6G2TzbPIngzr NJX8fEmVbSbQS0xNTFejH63J+OG2Z7NZsZAvP4qlHXnP1Tw+ezyHqvgHPvaed1g/NuOn AnflCYdQPRbwqHDDrJ8olFiDdvQn0WWyr6csNoGStVzxlCD0tpGGMm16T/WMZ0QpDIvI lSrf6wB8wMSEyoYcB7jxWHXEmyX94J2U57FFQS3hzFMOuKrZPV6Br43FgFXYwx4gRmBH E6SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757675725; x=1758280525; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7+R6PDofcUXxl5mupmoasTNO6Pt7o00MsMUOw9ehJYE=; b=kPjT6/nCCOaWuNgczH+IXJB1kpCBg9ERzndSe09DZQcdBoFy6sJdaMDWv0L1dBqCRg usilqgWc89GwYmSfo/DhRNp+oZlbqMtFJrkwNxDU7gKZ0XXisMUOF3klahZoaGH7vF4R LSgZJsYy/xCeFqdGSpBZcGNRkEvLwrsuwOx3iml+OrUCLMxcz7nuiJZLTwB5WyiMCeHv f0FoBS72cW0/gPY1HY9vttj/PwnBKR08Ja68FWEWFIngGaP7Ha9zdTE4zhAGCBYmJph1 /zkuF9O6mo0oSKI/9WsPONFwhQDGz2JPMC7Ujm0N+X/oDcYOEqqrBeoHTly+x+qht56V Ff+A== X-Forwarded-Encrypted: i=1; AJvYcCVpG0dEIrnn9uSZkyryqR6m2hYhsk7q7MhpmpOmEyfRIVha/cri8qU3PMLhHVZFWCH7/iOJG8c=@dpdk.org X-Gm-Message-State: AOJu0YyQGmeiQu/BDN8f0itzPej5V/1YIfOR5tqj/2a2Ikf2YKvqrWGo UemCMUA9JP4jQ6qw6dHssN9KIlLD6V3SIAgOnasDoa2m3U/i/kL877w+5m+k1AF22tK66xGg79C 0lw8QW7DlNdGvnv7sVpKitK/41pUTIPhy5gTkGLN01nR4C9O++c9QAcUCHdu5W9Vj5+SPFrgE20 UgGaPZr2qd8rc7Ew== X-Gm-Gg: ASbGncuZKU340WcruzuEuCqRxlfSdGQdzs0lwlcGi/sCCpTOha+2lLrotznPSrazqj+ 5V+LGLiQQXMR1sQw1rYRBW8KZj7SULS0IPQPbQVaV6c96XikH0X/luyvG4L76VG71d5bMJB7nB8 UuObc5zmumgVUessjJex6kXZ2CLyZ7pnTK37BqcXLb0exuqUizjoVZ0qaQ6PlpJ3aQZ+VkzcH9Q NuuNQ83fw== X-Google-Smtp-Source: AGHT+IEj9mUZ3Gf4M+imk2lBdIHyROtn3JxHj+/WfAB6kvSpbRIgKIFt+UEAAl5Ri0HO57BEGM2WH28nNEJBzCdvg0Y= X-Received: by 2002:a2e:a54b:0:b0:351:786c:e52e with SMTP id 38308e7fff4ca-351787c2b85mr6280221fa.6.1757675724803; Fri, 12 Sep 2025 04:15:24 -0700 (PDT) MIME-Version: 1.0 References: <20250912084758.354208-1-kerem.aksu@i2i-systems.com> <3299441.5fSG56mABF@thomas> In-Reply-To: <3299441.5fSG56mABF@thomas> From: Kerem Aksu Date: Fri, 12 Sep 2025 14:14:48 +0300 X-Gm-Features: Ac12FXyT8t2st_VXbPgMCoqUaKdPnJY6Znbo9-l7HqQ60IXofVjA1aOErjuJ4_4 Message-ID: Subject: Re: [PATCH] net/af_packet: fix crash in secondary process To: Thomas Monjalon Cc: linville@tuxdriver.com, dev@dpdk.org, stephen@networkplumber.org, stable@dpdk.org Content-Type: multipart/alternative; boundary="000000000000352691063e98c5f8" 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 --000000000000352691063e98c5f8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Probably no need to go on the next line, you are allowed to go to 100 characters per line. > If a second line is needed, only 2 tabs are required. > > Why zmalloc? Probably no need to zero it. I figured since it was only IFNAMSIZ bytes it wouldn't matter because this will run once at startup. I can use rte_malloc instead. > We can use a string-specialized function, like strlcpy. I used memcpy because it was used before this line for the same exact job. Will post another patch with rte_malloc and strlcpy. --=20 Yasal Uyar=C4=B1:=C2=A0*Bu elektronik posta bu linki kullanarak ula=C5=9Fab= ilece=C4=9Finiz=20 ko=C5=9Fullara tabidir:**=C2=A0**https://i2i-systems.com/email-disclaimer/= =20 * --000000000000352691063e98c5f8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Probably= no need to go on the next line, you are allowed to go to 100 characters pe= r line.
> If a second line is needed, only 2 tabs are required.
&g= t;
> Why zmalloc? Probably no need to zero it.

I figured sinc= e it was only IFNAMSIZ bytes it wouldn't matter because
this will ru= n once at startup. I can use rte_malloc instead.

> We can use a s= tring-specialized function, like strlcpy.

I used memcpy because it w= as used before this line for the same exact job.

Will post another p= atch with rte_malloc and strlcpy.

Yasal Uyar=C4=B1:=C2=A0Bu elektronik posta bu linki kullanarak ula= =C5=9Fabilece=C4=9Finiz ko=C5=9Fullara tabidir:=C2=A0https://i2i-systems.com/email-di= sclaimer/
--000000000000352691063e98c5f8--