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 2B63B42F42 for ; Tue, 25 Jul 2023 11:17:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26A0640A7F; Tue, 25 Jul 2023 11:17:21 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id E55B240697 for ; Tue, 25 Jul 2023 11:17:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690276638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KWYUt2LqJMAHxcFh+kR0dCIJvDVMLgS7nwjp4wB5Tss=; b=SijpwoLBFJG0agtbUSQWmnELdY4luYnserZeRZhJTkCt/jprLyRMMZlYJaoxYcpfDLlaFn JvrNSTRe6vQ2DEIlHJEAJ9dfjpHhvZCZ9cL6ncBkSO620Rgehah+IjHeq/wialbbaxdC2B PoO/umqtcm4OlXh7efP15Dj276+ai1k= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-637-6sjAeEgZOpiNYSmGivx7Uw-1; Tue, 25 Jul 2023 05:17:16 -0400 X-MC-Unique: 6sjAeEgZOpiNYSmGivx7Uw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2b701e0bb10so42037911fa.3 for ; Tue, 25 Jul 2023 02:17:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690276635; x=1690881435; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KWYUt2LqJMAHxcFh+kR0dCIJvDVMLgS7nwjp4wB5Tss=; b=YD/3/Hmsb0GgNm1Uhh7syw+tnBZEnIz/zGq+bNfONkldAqEnzs8QGlQibnhU8xKS0b GDxWeddBF0IxvuKTTj6FYpJHXwEVo5sIEyWsfrrqcLGckgjuBTNmv9pnK55sn53Xl5W8 otg6QgzcdiPjr7Dt45E+ujcEJluUmafZyxelj8InuhK+dgGJb/jTvXG26Ay46J02BO6y J3Ku5BNRz72RedomkpSVXtkW0HYi9Vnbb7cmBfFHA18s33UpWIPphck5mWhS4DeNHyYZ hevTtAbBOj2xRiXkoZzLRH8p8KUEzItoC4tS63fg1bh50HKUel5HgP3WlhpIZ8Pl+XqY dsyg== X-Gm-Message-State: ABy/qLarx1FSSyv4YcQ9Qcj27nDKnmacxaFvSUfTIsPjio0/cvhh0uBJ zL2i9yRzLCEmY03/a8Whl/McLoxufbx9QaKLdsMSRrr7wo4o6h4aTyGMn/+4imURGpRrPY5QIdW 1GstMzgM= X-Received: by 2002:a2e:a306:0:b0:2b4:6e21:637e with SMTP id l6-20020a2ea306000000b002b46e21637emr7521871lje.16.1690276635305; Tue, 25 Jul 2023 02:17:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfyP/v95uUboBTbfCFQyzK/NiNcMoPUPxeYT3g6MVy6b3DSeW7F1yO19aiT22zCuhzpi3ncA== X-Received: by 2002:a2e:a306:0:b0:2b4:6e21:637e with SMTP id l6-20020a2ea306000000b002b46e21637emr7521857lje.16.1690276635013; Tue, 25 Jul 2023 02:17:15 -0700 (PDT) Received: from [192.168.0.36] ([78.17.184.75]) by smtp.gmail.com with ESMTPSA id b17-20020a5d40d1000000b00314417f5272sm15618405wrq.64.2023.07.25.02.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jul 2023 02:17:14 -0700 (PDT) Message-ID: <139c1f20-437d-ff0c-1b2a-f6c9cc5dd0b2@redhat.com> Date: Tue, 25 Jul 2023 10:17:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 To: Ruifeng Wang , stable@dpdk.org Cc: nd@arm.com, Jia He , Anatoly Burakov References: <20230725085324.53061-1-ruifeng.wang@arm.com> From: Kevin Traynor Subject: Re: [PATCH 21.11] test/mbuf: fix crash in a forked process In-Reply-To: <20230725085324.53061-1-ruifeng.wang@arm.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 25/07/2023 09:53, Ruifeng Wang wrote: > [ upstream commit b6c419dde10e9f5dec7a02098c48060a7493420c ] > > test/mbuf: fix crash in a forked process > > Access of any memory in the hugepage shared file-backed area will trigger > an unexpected forked child process segment fault. The root cause is DPDK > doesn't support fork model [1] (calling rte_eal_init() before fork()). > Forked child process can't be treated as a secondary process. > > Hence fix it by avoiding fork and doing verification in the main process. > > [1]https://mails.dpdk.org/archives/dev/2018-July/108106.html > > Fixes: af75078fece3 ("first public release") > > Signed-off-by: Jia He > Signed-off-by: Ruifeng Wang > Acked-by: Anatoly Burakov > --- Thanks for the backport. Queued, and will push to 21.11 dpdk.org branch in coming days.