From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25577A04C1; Thu, 21 Nov 2019 15:12:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C2DB2BA8; Thu, 21 Nov 2019 15:12:01 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140088.outbound.protection.outlook.com [40.107.14.88]) by dpdk.org (Postfix) with ESMTP id 8109391; Thu, 21 Nov 2019 15:12:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CEkGmeuTuoFVoveUNgRQ9AVYPpDdbz7cG0q8zJH8aAhMIKwiX5Aekdx8MBuquDqcOrZP8y8XCMTBqknUc0244Sf83JnziE3eo+wRpoAAyNh261gRCelO0F7RuOZ0otSAj4FfjHmas+cWj9TYW6yn/4LEPYmF9G7AG3DSy4iSWbUs/5BPBlh8ZNmHXm6VD+2PtaW4OwfyvyredygBwhx7ph+V5GNFamxUSe0XXwQnrdbp6rSkPzdF6cvNo0/NPzVvk5g4NSgrTInKQWaIFOFAIwcdeT+KL/rYkcKFYxf8rDvlmtFPdkzV8P96pWhjqFhYxckHSzWmxzv2l/fsuaupZA== 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=qOrjBVgrykT5PSzA//Lu2oLtuad7n7ldIvNq0VLoN8s=; b=Sf8L4b9rg+yR8arAgCNaw4lV00cEEm7NaDDhskqqHq2NiDqeowi6MEwQBeh3guQUIj8h4g9p3z9nrltZSgQNS/pQt3s7DbQPmoHRGbaoH5KAEjEuwuC5Cx7YqV5BQdK5bEbQm6UKbqc5ajzKUuMRXc4pTxNo6PXFqybVKRtWXkkcQ8j1hOdCyX1xRUxbYHlvQZz3yr0PoRqQ9Y8r8voHOHBAX5ImYzcAsGpWLiLGMO7RP0W4rPZUGIyNTr9q6RJYlCkUmPjgcJ9z/gva2qGkRgovoeEJXbVnTD2epJ1Ro3rdMoxV7IXtmhOH11j6lN/SCCMHVhTa4XzHzTqLiCGJuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qOrjBVgrykT5PSzA//Lu2oLtuad7n7ldIvNq0VLoN8s=; b=STDLQZWVBzZA7v3pxN2oDGQHkwf6EAoM4l/bzq2KFeBNyY7guZXSgLvt/q0+hH/+JWwwkBw7voAJ8sNAYj/asqwEoQrmqlBWwHUER2HF4CVL9/kCfwTIvbg72IWtmd+mCGszC4A8UDRbk8HnSSYkbOLR0zW9/xbW0/5d7OJExVI= Received: from DB6PR05MB3190.eurprd05.prod.outlook.com (10.175.233.17) by DB6PR05MB4520.eurprd05.prod.outlook.com (10.168.24.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Thu, 21 Nov 2019 14:11:59 +0000 Received: from DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::ec63:86f0:7935:bff9]) by DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::ec63:86f0:7935:bff9%6]) with mapi id 15.20.2451.032; Thu, 21 Nov 2019 14:11:59 +0000 From: "Xueming(Steven) Li" To: "Burakov, Anatoly" , David Marchand CC: Asaf Penso , dev , dpdk stable Thread-Topic: [dpdk-dev] [dpdk-stable] [PATCH 2/2] malloc: fix realloc padded element size Thread-Index: AQHVnxqQPSQn9NqVyk+cxEWVdarjAKeTUFlAgAC9ToCAAYMIAIAABMqwgAAHtYCAAAChAIAADryQ Date: Thu, 21 Nov 2019 14:11:59 +0000 Message-ID: References: <1573570228-15676-1-git-send-email-xuemingl@mellanox.com> <1573570228-15676-2-git-send-email-xuemingl@mellanox.com> <9766477f-8efc-9143-6aaa-2dfb595aa622@intel.com> <8e45a13a-1a00-bbc3-f688-dbc8c69878a8@intel.com> <9c848371-b8ee-f36c-b7cd-1aabcfb230c6@intel.com> In-Reply-To: <9c848371-b8ee-f36c-b7cd-1aabcfb230c6@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [180.162.54.152] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 17524b4c-bf8c-4187-aed8-08d76e8cc5fc x-ms-traffictypediagnostic: DB6PR05MB4520:|DB6PR05MB4520: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0228DDDDD7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(39850400004)(396003)(376002)(346002)(13464003)(199004)(189003)(186003)(110136005)(8936002)(256004)(316002)(99286004)(26005)(14444005)(81166006)(8676002)(71190400001)(53546011)(71200400001)(6506007)(76116006)(52536014)(66556008)(66446008)(64756008)(102836004)(66946007)(81156014)(66476007)(11346002)(446003)(54906003)(14454004)(478600001)(7696005)(6116002)(25786009)(305945005)(7736002)(5660300002)(55016002)(2906002)(9686003)(76176011)(6246003)(4326008)(3846002)(6436002)(86362001)(229853002)(33656002)(66066001)(74316002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB4520; H:DB6PR05MB3190.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RCKs7l7CdWhiuCGzaIZ3mLlK1FgRD+Q9b4zBxeif3ez1DdWEb+PV2xW/D8t1vJrU9jaxk4fyOIkJTcNlmox5dqL1RFDPQJtR9dGeH+OYxvF1ZDlERCBRhh2cvoFfyo4l3b2oszEV/YwIQZas30q9OYmoMiJXVhfL1no4d7HOGBLgzhbgyP4GnkSdEmpUc5D/WBAkqIo2OJuP4rdFdKcAtIGK0LcpUajeih3zmgtSLV/mL4gsKQq+4mQjJvRVe9EMTulRja0eJAkbLarr+nZDvN17tYWsezO/Eu9cIM9F1IWPmsAso5/aBFaggCpyXqnokwVXX63aZnzGI7iy5K2AmjlAHzoy3z6593FUR4lRjD0/nUxl2L9etiGedSBZ9rseQoGoN/eHHlPmRBoS030VCFIWr1OC4ylnapBaqOv3l10Sy1NHalaeiBDasU/ncVnS Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17524b4c-bf8c-4187-aed8-08d76e8cc5fc X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2019 14:11:59.1253 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9aSGc3qx0hMKL3tN1m31BTO10ZKNvOpMUfxBDUvhiMME3HianWTO0ExpPkZhxE7bHL1BLOLKalTGWrzgZv8S3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB4520 Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH 2/2] malloc: fix realloc padded element size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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