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 21E5CA0553 for ; Wed, 25 May 2022 23:14:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 184FF41133; Wed, 25 May 2022 23:14:34 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2045.outbound.protection.outlook.com [40.107.223.45]) by mails.dpdk.org (Postfix) with ESMTP id 315B940143; Wed, 25 May 2022 23:14:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fCSOzWu/ew97bhEK3SiHBYKHjKaCioWF9KbLIfYO7sk3/wIiEYQKf5F8ujb+COtwkdZ7XNpRvZU3mbhHQTgUmAnN7382iFRVRNx2C9vywMEFigyYcY7UuX9emwjjKuvqGWiMQsjwUgHY7l2hyy+fvOb7nM/wcGKdHcZFJxYuNzBIHjBcs+BFEDW+i3KkYDUvFCKaTDf8lTRLQEoR8pBuKAdSUgdL9QQcONywAOsQlWEj7Kp41tR75nQ6wl7zZSKzJycGWMagbli8yYQsC56npmu0/kJaOhSJYmIhQxUM6JMNbUl4tz8i6roIVdON8nHbPEIFstj9N5P/Apei6joJbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=y/UuP4JSYMfCMnjDDzQ7pzPOjeKe2z6J1PXQMJ5n7HI=; b=MT3chONAP3/JIYgSDapr8ZUUxHNPnyy/xTGJCS/C9STtWjtlTSri9GUHNWZRCdpvDlMjXbpYpYC2UBId0Es80fAYYa/QB7oXYpSLsAQYLKuL/5F5SMZv70uatLgMO6fR3g+hUjF611/pOLtqpqh/pKN3QlqTZm9dyLQZ4iGvIwGcQxI8F3vajWoPTqgTickBj93AcysbR49BtxrvuCgW7Dbnpk9GIKFkR3qpQlGgLGuFQuPs7W3fgKtD6Tty0g95erOWJhHQeWruzP3OA8dtfspaG2Gn44Ue1pCE5YEQ0F9d+wphtOLfYaw8LYWVziMnTHxaqe0Nvkwqgpz8mlltxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 149.199.80.198) smtp.rcpttodomain=arm.com smtp.mailfrom=xilinx.com; dmarc=temperror action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y/UuP4JSYMfCMnjDDzQ7pzPOjeKe2z6J1PXQMJ5n7HI=; b=AB/QoPvqwSPETTyL1Ay+ww8A/YzrvWAfM3jdCPOlQWpErNqZUCUAnB30OfDscq/RsdoC/Ftpx44iWxCway1Y5/AWcsJwo+E/g/GRyFd3lYW5sy7nxZLd4WGmGg/xKDhQ/zT49j10yKJRXr5BN4b12tO/vRuePMXHLoPUgU78tUc= Received: from SN4PR0501CA0081.namprd05.prod.outlook.com (2603:10b6:803:22::19) by BY5PR02MB6866.namprd02.prod.outlook.com (2603:10b6:a03:237::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Wed, 25 May 2022 21:14:28 +0000 Received: from SN1NAM02FT0015.eop-nam02.prod.protection.outlook.com (2603:10b6:803:22:cafe::76) by SN4PR0501CA0081.outlook.office365.com (2603:10b6:803:22::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.5 via Frontend Transport; Wed, 25 May 2022 21:14:28 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=temperror action=none header.from=xilinx.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of xilinx.com: DNS Timeout) Received: from xir-pvapexch01.xlnx.xilinx.com (149.199.80.198) by SN1NAM02FT0015.mail.protection.outlook.com (10.97.5.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5293.13 via Frontend Transport; Wed, 25 May 2022 21:14:27 +0000 Received: from xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 25 May 2022 22:14:25 +0100 Received: from smtp.xilinx.com (172.21.105.197) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 25 May 2022 22:14:25 +0100 Envelope-to: joyce.kong@arm.com, jgrajcia@cisco.com, dev@dpdk.org, nd@arm.com, stable@dpdk.org, ruifeng.wang@arm.com Received: from [10.71.117.149] (port=24614) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1ntyKn-0001xr-H5; Wed, 25 May 2022 22:14:25 +0100 Message-ID: <1b7c4198-01fe-2fa5-e5ee-3e750b4e1bcb@xilinx.com> Date: Wed, 25 May 2022 22:14:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] net/memif: fix overwriting of head segment Content-Language: en-US To: Joyce Kong , Jakub Grajciar CC: , , , Ruifeng Wang References: <20220525055635.308716-1-joyce.kong@arm.com> From: Ferruh Yigit In-Reply-To: <20220525055635.308716-1-joyce.kong@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a4730ef7-ae3c-4e5e-d9af-08da3e938d1e X-MS-TrafficTypeDiagnostic: BY5PR02MB6866:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xP4RjLklphaDI1QOShBncISbOXJhboTOOmuonblnouh1n9X0LjiPX2S4hy7jlF03NJKAwg/VFkXZ5ndj9TsQjrtRy1SVJUxj1tWPR32LtoVSVkqZpCOdWuCcpoBFJ6BEfHjbfPtOyC0BhYVpRHjacv75D/DLrPJmnBUJxHBx2Uw0L3BycjBI0Kpg4QAc9KzHQmIZKXFckIt8DOVphxRu1lTImbq4x8RrkboxVAfasPmY6YnXe1pMh4oh3X/vY4PtuCVxKwxm8D0B+Z1LwKJ532+FWsnu1kf5BWzLsnoDYNnw8k6s5E6eJuwNoT0gTw1SeLHS/xQK5JoF592Meg5/JGGY04pEnxQJ+a08xPRHylIk1BjeTeetrjxVmwyqWDpdl8lwppBc7kmRRb84cw7DxYf2bUX99bejCr2hSzNTCHhtuZyNhP+5+iWfJCs3ZUyHXxuc4/jBcJgBTNNSMlAu+c2u5kLCV7YaFjWEmNwhTLEFVMXopg/zOlKsD1R4fb/OZr8x3Msq6jtTWTP7lC+qexPITDXaYv1O0Ctv5UVinaBn/wgsrRzytSPqqzAZNE+aODNYyW5/4N73b5DSl5iIdTBLkh8owZlGxEkPQNzMMVpV7i7tKdhURj3WbuizwQ9HsYB8tlIeOb3394B9OahaqWOm7VvuktBdWRFJXbPDkArzC4LSm6M6rzw652LBYEiq10cMBzM1htIrXHnM8E8UWq+jCwT8fTc1yzuGPbl1rv4HPrsqi5TQ6rpAUSUmjdW8GuZIXyHVdqzVghiWZ6lgdQ== X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch01.xlnx.xilinx.com; PTR:ErrorRetry; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(31696002)(26005)(356005)(70586007)(81166007)(82310400005)(36756003)(8936002)(36860700001)(40460700003)(53546011)(9786002)(47076005)(70206006)(4326008)(5660300002)(31686004)(2906002)(4744005)(54906003)(63350400001)(2616005)(426003)(186003)(63370400001)(316002)(8676002)(508600001)(110136005)(336012)(44832011)(50156003)(36900700001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2022 21:14:27.2414 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4730ef7-ae3c-4e5e-d9af-08da3e938d1e X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0015.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6866 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 5/25/2022 6:56 AM, Joyce Kong wrote: > The 'dst_off' was reset in multi segment case. > This caused memif buffer segment to write to > beginning of mbuf, overwriting previous data. > Fix it with this patch. > > Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD") > Cc:stable@dpdk.org > > Reported-by: Ferruh Yigit > Signed-off-by: Joyce Kong > Reviewed-by: Ruifeng Wang Applied to dpdk-next-net/main, thanks.