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 A26BD42A34; Mon, 1 May 2023 21:06:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D8DE40EE3; Mon, 1 May 2023 21:06:52 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2085.outbound.protection.outlook.com [40.107.14.85]) by mails.dpdk.org (Postfix) with ESMTP id 396814021E; Mon, 1 May 2023 21:06:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fg4Tb53UmDEdYncfqhA8UHUaRE6emQ9L6A26BlAACsM=; b=xy48kZJuvnWIuvTefwLOUH54D0AaWbyc5yJDGxMAjEbHgcpa9+Mk2uXb1OEs61tyx+nUIK3k0s9rF/UQgtnmpk18kG0aiTdA1OoP5Dc36Gndso7RM4c9mhUmKV2jO7i+XDfKTEkBuNcwuws4IAidsoioZbkpQVFsATTrEjQuemQ= Received: from DB6PR0501CA0009.eurprd05.prod.outlook.com (2603:10a6:4:8f::19) by GV2PR08MB8416.eurprd08.prod.outlook.com (2603:10a6:150:b4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.30; Mon, 1 May 2023 19:06:47 +0000 Received: from DBAEUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::6c) by DB6PR0501CA0009.outlook.office365.com (2603:10a6:4:8f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.30 via Frontend Transport; Mon, 1 May 2023 19:06:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT046.mail.protection.outlook.com (100.127.142.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.20 via Frontend Transport; Mon, 1 May 2023 19:06:47 +0000 Received: ("Tessian outbound 3570909035da:v136"); Mon, 01 May 2023 19:06:47 +0000 X-CR-MTA-TID: 64aa7808 Received: from bd8715d3d8c9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DA93C28D-D818-41D7-9E34-A5268E4525BE.1; Mon, 01 May 2023 19:06:41 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bd8715d3d8c9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 01 May 2023 19:06:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Seu00UAa1ZV60klZ13Aw+4R5mPqPrhjZSmi+CXJRXVgjy5cZ7zaUrbzvAYKvDPZks2OVdYmKXG0Ba8ucCfzK4BgpHpsYm4BB6U/lt9rixIsNJaKyLsBxDJ2yR3zislfbJp+eOEb9bZDZRr1nBKoNs9+0F1+JzHTQNDFfmq+nx3VEOr/fEmghzGkw/f8fed29EmuH02LQF4BzrQCnEJbzpEr9QINx6gogUECv30jsnm4iRSBfM2TKNHndJ4+XoOO7XRs5dVJnybQ8pvHCER52xX1qRv2ob98KP7YnpAsqnGsWsHU4LKKUtA8uyPac1aLWh7uAL5V3dDMNm12EEqxmMg== 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=Fg4Tb53UmDEdYncfqhA8UHUaRE6emQ9L6A26BlAACsM=; b=lDHnRdtteDOXuK2EJC0r5zw3Sh2jkz0JnwZBl+PYFppT+wDk7DfFXlOd7hJpE+1WmFTaik8CzpROzYa8eFpQ7ZOYpjRmTazbTWDJZnxLQSKSdHIuYtrloksgRFsDu6oHcRa7OesQKHscxf/vTyoh8C8KlqQ2UHOBoZ2nO3BsZZavo7fLBbmri7yPXTzVVwjhQW6YNdtvMVA8UIy8YTdspbmKC8tqsKiPkehUmk082Xg6WkUt8vV4Kkpo/MtMTsVZsWOjhCTd8E3/QlXYArbAZCmGgnT4P1ChMNMZbj46SWwBUJGGUf+msgQx3Va+KOMz3k8d7u46jH6NNeegr6VriQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fg4Tb53UmDEdYncfqhA8UHUaRE6emQ9L6A26BlAACsM=; b=xy48kZJuvnWIuvTefwLOUH54D0AaWbyc5yJDGxMAjEbHgcpa9+Mk2uXb1OEs61tyx+nUIK3k0s9rF/UQgtnmpk18kG0aiTdA1OoP5Dc36Gndso7RM4c9mhUmKV2jO7i+XDfKTEkBuNcwuws4IAidsoioZbkpQVFsATTrEjQuemQ= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by AM9PR08MB5875.eurprd08.prod.outlook.com (2603:10a6:20b:2dc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Mon, 1 May 2023 19:06:39 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::621c:838a:cb11:19b7]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::621c:838a:cb11:19b7%7]) with mapi id 15.20.6340.031; Mon, 1 May 2023 19:06:39 +0000 From: Honnappa Nagarahalli To: Konstantin Ananyev , "wangyunjian@huawei.com" CC: "dev@dpdk.org" , "luyicai@huawei.com" , "stable@dpdk.org" , nd , nd Subject: RE: [dpdk-dev] [PATCH v2] ring: fix use after free in ring release Thread-Topic: [dpdk-dev] [PATCH v2] ring: fix use after free in ring release Thread-Index: AQHZfCj9RL7eOo8QCkK2B+7jhfTaTK9FxyuQ Date: Mon, 1 May 2023 19:06:39 +0000 Message-ID: References: <1e024be7-14a7-1997-43a2-2d2571fc984d@yandex.ru> In-Reply-To: <1e024be7-14a7-1997-43a2-2d2571fc984d@yandex.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 9F020CE525A1294A88D7A533F566EF64.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: DBAPR08MB5814:EE_|AM9PR08MB5875:EE_|DBAEUR03FT046:EE_|GV2PR08MB8416:EE_ X-MS-Office365-Filtering-Correlation-Id: 08eeab67-a55e-4ea6-b038-08db4a773621 x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 0raSDlTh0H2z9vwPPBrl6uODOwSXN9mEkXelDLU+XjY//IrfdJyvHJxnzrHQqV4VXaPqtm9eyF2W0W0YKHY5ZHxyC1uAAJK+9KCpClgFnzXZQFEItFGScIWWYvU/RcT/R0UxzhJnH7LrmN6xbcALS0x5o3/nCzNvApC4eq3o2FvF+PrUbFD3bPcY0YbEla1q1h4L4ThLXvdWh8vKt9dmzvIWEPmnR1cXa8P9uOLtV4dkF3tfujXBRalQ8XNz+0bYir/1RwvNNpWuG4Np5swXu/jJZB5mcT6szycjrckxAxn9QatPK3xpIYGpNkFVSA7zBE1jLYxPcs1HFjU3oS4o8isZbDmCwFeLokozjIjo2D8Cx3N7ZIQMws82Kyh5qspwaHlmqZCruSzkNn7k1qCmTbcFtgtWkFbp8PledF3YTQpLbAdPnnVxKyQsGk16EPex1mx3FiIZpWRZ94WP941miXEmmCqXP/PSLgAgmywU6jCxntEvwRQ7btx5cBxhMial5Qj48bCYnYJ6wtN/Bi9Xo1CyOyYqmARfCSrOL4wS6346Cuz0Uyho3MgEnm7QF5VJiZWwWETcb/qvHqhfxx1Ii1tfcSu0+5iMEZxkXH0BgYr+6r/XvG5c0GbeqEQR3WmWS5mIYaJzyI+yxWF92tnBEA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(136003)(396003)(366004)(346002)(376002)(451199021)(110136005)(54906003)(316002)(41300700001)(122000001)(38100700002)(8936002)(8676002)(5660300002)(52536014)(83380400001)(7696005)(2906002)(38070700005)(478600001)(71200400001)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(4326008)(86362001)(53546011)(33656002)(6506007)(9686003)(186003)(55016003)(23180200003); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5875 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ca96f278-1e15-4e72-7b3b-08db4a773173 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gZlqBbV/L0DI/HlD4H7DEPk74OMKfc2LuKrmzFFMrtSVrji/n5rA7IHAv5w5N39CswRB5DQJSPtDf+9T+MGTBkpm0tG4+YrS4Hd+/yAnVwLq5CH402fpWiGoozMZI9K+zNkbvlT+buGw7fI0avseqNBKhfTpQ0NsyoBA7VWyZFiWbVRIE/uB7vglbxk2UanH9s2/DwGkJCyEg/Is28zvgfqr1JSieRW/gDWi2yhWoDeSr4N8UoIhbgfh9p0gCQKgRiY3aQZ2c3DtdPAMue6yjOg3Lk4pVW7Dbqoyk+fReIA5Pcn6z2+kBRP0Ql4fXKvlFdR9lga101PTOK4Uv15gvvEHXKpgasbvDwVGgUBUhoZdJ6kkWTBD14pGhrSZS/GQiD+UAhAUDEYky3EK1TACed1YywVPdh9usOJYIZOGrXey23l/LGz/TRpCZon5IZU+lTnWozZUfrZLkDvhvRxLdqVngoyuhpPQlXMf3WmmjIvaJuhGLp4faeFzUed8nU5wOplN3eOFFLD0e9qANKHWZTQdRVEVGHHuxUq1WYB+Gzbe0UB3+bIgYGrcw/zN8jyhkk0PYXE9JZpYOFEXjtze025tTyYntT2faQ1QE/FCWUXhEWcyuC/b71czveA4sBpD6p4Jc7/uTFH8mQLbWuUEcXfBbDuOQ16Pg7qdvxpEd2+TsEqIANcAEFGrR1GU8Mw7/UI6d9NaArtc4LWVTrFJoh7Hp14Kw8Uk4N03DgeGiWK9SgoBFVcw+YdXThXubADlUoUHfL+5Yps7LJGVG2plmg== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(396003)(39860400002)(376002)(136003)(346002)(451199021)(40470700004)(46966006)(36840700001)(450100002)(40480700001)(55016003)(53546011)(9686003)(40460700003)(316002)(6506007)(82310400005)(26005)(336012)(110136005)(41300700001)(47076005)(83380400001)(186003)(478600001)(70206006)(36860700001)(54906003)(70586007)(4326008)(7696005)(356005)(82740400003)(81166007)(2906002)(33656002)(5660300002)(34020700004)(86362001)(8936002)(52536014)(8676002)(23180200003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2023 19:06:47.2642 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08eeab67-a55e-4ea6-b038-08db4a773621 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8416 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 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogS29uc3RhbnRpbiBBbmFu eWV2IDxrb25zdGFudGluLnYuYW5hbnlldkB5YW5kZXgucnU+DQo+IFNlbnQ6IE1vbmRheSwgTWF5 IDEsIDIwMjMgNzozMiBBTQ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