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 9FBC4A0C47; Sun, 18 Jul 2021 11:39:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A5BC4069D; Sun, 18 Jul 2021 11:39:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id AEE7F40683; Sun, 18 Jul 2021 11:39:28 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16I9XQ7t009845; Sun, 18 Jul 2021 02:39:27 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2106.outbound.protection.outlook.com [104.47.55.106]) by mx0a-0016f401.pphosted.com with ESMTP id 39uvjsamkg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 18 Jul 2021 02:39:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVdClVABcVHMJsbpdd6YKkYVkW6HOxXiOBd2Szcu2lM0wArGiU7Gim9hTRCkh8b/cWrmHdx5xQsHmy6Dn0llnvmGmLuBx0X6P/dNsohSaCJwIZMaQR/aU9qgLfZyUGet05DHJtQ05bQnc7BeHJg/JVzfXXoV0jBWQVh6E5CMZAsUp1QBW9Gdlcw27zY13sEcb5ckLsYlizhwnwopiLHypaKoTgTV61B/Tn+K5drIzfSPOZynoG7qWUP4Rf1piE75OjikXGJ6VVY5G0LKtd9fcos84QHA/lWkcwkmY3oixHt/sXrhaU5w/BoyvpEa8Vt5gQHJxJRi5DFErqDDpITLdw== 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-SenderADCheck; bh=ZUhptRIo2+rXqRSDfe6xDGKvfCIy4rdoENA6jfu1lFg=; b=BijJdPdh1uQocF+5fMMw8VNCqlT7aKOSlRvyrQ6gxgzjK59ltb2+eehww1DNkbLtI53W13xhcVHdBqAimD2w+UQJmaxN10FTpISuJ1i4mOIkhAt85daA9QCLkl5cQqs1LCIjEhBdLsM1wuKgse3RIA7poZwQKWee5CUhRLkz0cn6k7mwATIXGkYJTjXC5w49jgLFVuxZ7uGUWIItuFivBIykpw9RZdJlkoyvUtggVBx5+Cx8wnu2aOO+aelX7c96+JuyVvJX0SMvPWFsSm79V5KN2xiuFcu5XofJpKvNQeRd1bvRYo1NEmDn1B3gykc63+klU6QJ9r8saD/mkJvz1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZUhptRIo2+rXqRSDfe6xDGKvfCIy4rdoENA6jfu1lFg=; b=uNMDexCxpgJNNef6CfDrpCA7sAbWE2SM0VprglMzJgO2E6c74NdnPsZSln8c9IMurRckUj7/zupst4Zi4V+y69y0mIRA5vHLZSgaZdSJCl+tl/hZQZevtBL4DXP3oVSrZ/pkaMa0XQHrLiSlvBvKtoe/oNklg+w4yqRgzXmauGo= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4570.namprd18.prod.outlook.com (2603:10b6:303:fd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Sun, 18 Jul 2021 09:39:23 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%6]) with mapi id 15.20.4331.031; Sun, 18 Jul 2021 09:39:23 +0000 From: Akhil Goyal To: Michael Baum , "dev@dpdk.org" CC: Matan Azrad , "stable@dpdk.org" Thread-Topic: [EXT] [dpdk-dev] [PATCH v2] compress/mlx5: fix memory region unregistration Thread-Index: AQHXdu5Z/eFLRnaOWkSDjKs7iI0OjqtIg5ug Date: Sun, 18 Jul 2021 09:39:23 +0000 Message-ID: References: <20210701071807.2018505-1-michaelba@nvidia.com> <20210712071934.2892062-1-michaelba@nvidia.com> In-Reply-To: <20210712071934.2892062-1-michaelba@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 42b8e220-9952-4f58-cada-08d949cfed2c x-ms-traffictypediagnostic: CO1PR18MB4570: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oV7Bxj509M64fTVBcIJn2fhF7Hp4DGefzDWIyXQpMYfGr906yijjwRNBsMx4imNRS6Z2Xp9V2JcsCedDCYFtVDYRYHxyWPuhe7c2MRk0F7Vaw/nqP5zizw3zUakzL8g3jY/DWedJCiX1xF4Dt4Uld2YtBJrtpZlM+c44RB9NInCHAZNQDnQy0zdHYo3e7yxmxIiKLEUlrugWJ7PJezeJBal4GO0rinTlv3++KY1CbjNgOZs+K8LwQSy+OMPHIaFuhqz0OtHGe67CJ/f6o5bdCX8Kh/NzULrVfg/6WSL77B6BDkIfb5Ej9tZrnNcEQrTrnNj5OFR359mys+FDbB1KalE+EMBW/IKVhGLw+CLAh0G9M2XFBtvQh2vmWMeuawyLDdLRBw73jRhkkSqMOsKt1Q+KB2hJlpi+Ed+wlkUsfBlx4/0gnvtbdC51/yXvDDOdpzwu2cLyGIDRkZeW583oc9oj36BgxwNAfCqaL6MgUcjpLdOSk5rCYiTIp92ECa5oiX0Sw1QGjpVKHKexmMWhk4PTus3RwH+p/HdWstq0l+eDQgjztByl7dkJC4iT7CIdU5Wz4gVkzd8TWP9EceQNsQ78kh+nqYjuP3hf8HDjr1pX8yaUZ/2LkIk0L7UZZYDUSnW8Wk8RWw0ZmpfrCQa6PzanAklo7WJ+2kYxo+ulr1cTRBD/DVnEiD5oURdkXcbkTBar0FYzuqt2By81iXlF5w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(376002)(136003)(396003)(39850400004)(316002)(110136005)(52536014)(83380400001)(4744005)(8676002)(33656002)(38100700002)(7696005)(6506007)(86362001)(26005)(55236004)(54906003)(122000001)(71200400001)(66476007)(2906002)(4326008)(66556008)(64756008)(66446008)(8936002)(66946007)(55016002)(9686003)(76116006)(186003)(5660300002)(478600001)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DR+gi0RMQmN9W4pPFnq35AVU28Rilbdyqn01ELbGNpFZgCATMJV9fNkooMyG?= =?us-ascii?Q?VEyePLBujSl4OOcz5gV7aqDH2bjG+TwCdoYx1UGnFbT8C/I7bUc7Gd+HKv0F?= =?us-ascii?Q?G8VXjWJ2BFq9a+N3q0xW9aDKHp1xtVODl+ACEwIBtI/Amn5aH4aORVj8AP+q?= =?us-ascii?Q?J1w+X02VChDgH39duZAH+nwRYbM+XGldOVvKCe97ulauQYOh69Bw3wH28SLf?= =?us-ascii?Q?LBDexl7KbXOyD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nkHmLqmJ8nS?= =?us-ascii?Q?5l+ynvDZiHLAmYovwEJRpfA6gxgBJbZg6yakz5ats39fzY9alMLLPhE6HILp?= =?us-ascii?Q?rb2kHjIp79j5oUAJFHHuEj8HWPOyhsuBKfWAT4SlmF0IuDOAeVAGFiCwbHis?= =?us-ascii?Q?2zMD+3jdpHwRJQaorTbDM+3gPq8YCHVlLXfi8RPpkag0VIIRiLZLDHMHP+mX?= =?us-ascii?Q?+4OXH2kCzWCdEqiUw++T+sgG?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42b8e220-9952-4f58-cada-08d949cfed2c X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2021 09:39:23.4455 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Gu3XuhTz9kXiUxuCSs8CCI0KMziHLVUQszEFikVFDZ0gduxEZWVWiN218AfmjgkePCmYCcdaJfp2JZI64JxD/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4570 X-Proofpoint-ORIG-GUID: W5hPQsa9SegKnTXzR1zYhWxu1imSW8ud X-Proofpoint-GUID: W5hPQsa9SegKnTXzR1zYhWxu1imSW8ud X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-18_04:2021-07-16, 2021-07-18 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v2] compress/mlx5: fix memory region unregistration 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 Sender: "dev" > The issue can cause illegal physical address access while a huge-page A > is released and huge-page B is allocated on the same virtual address. > The old MR can be matched using the virtual address of huge-page B but > the HW will access the physical address of huge-page A which is no more > part of the DPDK process. >=20 > Register a driver callback for memory event in order to free out all the > MRs of memory that is going to be freed from the dpdk process. >=20 > Fixes: f8c97babc9f4 ("compress/mlx5: add data-path functions") > Cc: stable@dpdk.org >=20 > Signed-off-by: Michael Baum > Acked-by: Matan Azrad > --- > v2: Applied to dpdk-next-crypto Thanks.