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 CE7EDA0C41; Wed, 12 May 2021 18:14:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B46EF4003F; Wed, 12 May 2021 18:14:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 50AD34003E for ; Wed, 12 May 2021 18:14:01 +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 14CGAX5M017328; Wed, 12 May 2021 09:14:00 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by mx0a-0016f401.pphosted.com with ESMTP id 38fw8ycm17-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 May 2021 09:14:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CK5sPuk+MOZMigNl7QFW2Wp6VNMJGasXpzEXF3Ygx0MJ+SqM+VyW8f98XUu50e2Z9e2Pw5NKWDEF/svr5iacA4NXzbkKkVlPrMZDtSUgfCU+ISRxA4KZqeOReGfHa0/47gvGLf1vf5H/8X1xrJhl7HoG0Z2pZhHPyivHhCJQnHssc2BACeKxFD/t3Bn3+BX9kL2d+x9NqkdKIJb+nTZQAKY7rR7bG7sV6+JsYQtftydZ2Sh3P01bBtWz2zYU1+1PEn4nSsIDxUTfaNvlFZpmN9bjvwZC4fV+oT/oZFpHmYc0+laH5xERkqYKewCp8zBfMA/4fxZXEiTeYHJiKPrenA== 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=kCrRzRha4kvU2OY6Wu207ePQTzFKmPMgFrjPnfYZ7IU=; b=g1A78yiBelSS52nF8Iyx0BlkKbq3xVdDav10Fp91NsacTRxTFJFtylBRJDYOCehjbs8vMT+o271bmBgmGJjWIfgNzHGj/nSPBkQBpsY85eOJvCVK3hk85pZNpMa6+wdNn2cZJZ+XRDpfxvNsWJM7/fxHDXx0n/ST8PN/GxwMs4PgxVqapV7lNJL864NCI3W5OgB416bEXIdDhlkWqBi+n9J/0eFOUR7OIoZ/Nd2rJaGhb43ZiMdlVhsGFyRXVhGU+Vdh4Xodoyi5OwfV1pR8oWBewIFLyZoZlfiSS6R7Iqd45aCMnuR/bHMUQLSzMEEJvvLmNkPcjEspgMYN3S1SCA== 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=kCrRzRha4kvU2OY6Wu207ePQTzFKmPMgFrjPnfYZ7IU=; b=takA5uVzTeDHeaN5w2aIafEOSINXFmOPHuHNDmiUuDjUdAtUt24DGM4j+XP+iNIstXvkNuc6+l6kIMilTvMauZLqzxg4Xl2MdNhN/pVEowJaMeQG3+GsLNYL+eh/oNRwN1i/VfcJHwoNdk869jcUT1dggI3njzP/Y0A1yslRG1Q= Received: from MW2PR18MB2284.namprd18.prod.outlook.com (2603:10b6:907:10::16) by CO6PR18MB3969.namprd18.prod.outlook.com (2603:10b6:5:348::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Wed, 12 May 2021 16:13:58 +0000 Received: from MW2PR18MB2284.namprd18.prod.outlook.com ([fe80::3168:cb00:6607:743f]) by MW2PR18MB2284.namprd18.prod.outlook.com ([fe80::3168:cb00:6607:743f%7]) with mapi id 15.20.4129.025; Wed, 12 May 2021 16:13:58 +0000 From: Akhil Goyal To: "Min Hu (Connor)" , "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , "thomas@monjalon.net" Thread-Topic: [EXT] [PATCH v3] app/crypto-perf: fix dereference of null return Thread-Index: AQHXQj8EgPm+KETAu0a7KV0Rt0d2MargDwCw Date: Wed, 12 May 2021 16:13:58 +0000 Message-ID: References: <1619163678-37202-1-git-send-email-humin29@huawei.com> <1620281639-54472-1-git-send-email-humin29@huawei.com> In-Reply-To: <1620281639-54472-1-git-send-email-humin29@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [171.48.51.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 42962b86-3950-449b-f9af-08d91560f2e6 x-ms-traffictypediagnostic: CO6PR18MB3969: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:608; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: g7NJZSt71hSdlo2Z/TRb88hnLZaGIBTlvKrcRSKnDrUKvLoCwod4qLOgOKOP03HKAP8WwlJpFgxsPxnqG8AFLDYjDm+0nX0yshN7EmO7x6yO9YGdIzZbhtIk0iUsfRVJAg8TIy61fQAqS1+/JHAM3yu3ba6dpw18It8KXoZkc5blIDFp6M3eDuY4a1RL9Csb7aRmpISi3putAtLkt7kvlSqZW2jo4PBu2RWSNeIbz4KfoxgU68HLqZzZcSEgGPtpAzFVpBa4RNZgcaTQkyAFKfaRD/BaC1i5W0xPL5XljDaa5210lAdVrVMYrka9LLYISIZWP6xi+IgY80qN32bERiWp7epUNrVBsXXK+lHSu6Y/9aK9wI8oMC1X/jRVx5N020j/IGOSXs4EHbCIWorGzIivkdGFQELgVbVj8G80UrBEcVu+bWvn+cKrO2sVXTDija6FoFcfK14qZHN1zFlxrKDiu/RBNj7SEPVy/JXYiETIEIutSaPtKBIg2fOpVkn1Cf9E0PVSK+3N0BrX/z7wsRR1fasR8Ylzbm98q2UQFT0KLvtmlAzSJYeCvPr67P1fpVjnNatzKL1MT4YA3zKd7Ayq9ORrVUde9qRa8u7Eiks= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR18MB2284.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(366004)(396003)(346002)(136003)(376002)(316002)(6506007)(83380400001)(110136005)(52536014)(54906003)(71200400001)(55016002)(66446008)(86362001)(33656002)(4326008)(478600001)(122000001)(5660300002)(2906002)(186003)(26005)(38100700002)(8676002)(7696005)(8936002)(76116006)(64756008)(66556008)(66946007)(66476007)(4744005)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?hiMQIjD2vOATI98OfEODajeho7pSlMbQsjSDa/y34Ivj8rZEfUoS5QMW+M8m?= =?us-ascii?Q?cwC/NIVmoc7ExxdzCJoaLVL8CBpuEIBi0hI0Zcc0Xgy5H4mHQNCRav/47zkH?= =?us-ascii?Q?yIv0qq+Kcn1p14/hy9GTyVEdTlOxuliZr+26jv0NCmzhhlmmQz5fqFqCzZmO?= =?us-ascii?Q?0WRP/g+b6Fd5p8+vAbeOYiuY/QsXiOkYZfNxF8z5IIEtgYdYJaJ5ZoN05rHp?= =?us-ascii?Q?y4tjRrMzz+YlbrLiiKK85Ida3MaMvM+m1RVC+lB1AHC3dxJYzrDCo9nuhBAU?= =?us-ascii?Q?WGdfwhAn2SQMOC6vPrIRktMbyD6S4qsAMeJgmlzDIAk/F8KLxnACsaFSoblr?= =?us-ascii?Q?jr4EZ2j1cMe9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-ascii?Q?1XU3oUIlwyYI6XJsSlTbU2dzu11+O332f/PNxBlL8rNfXHn/vdF8dQ0NfKC+?= =?us-ascii?Q?zcE=3D?= 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: MW2PR18MB2284.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42962b86-3950-449b-f9af-08d91560f2e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 16:13:58.5063 (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: ufm/UibOSqF/qlBXJ7IFetytXtQpOXXLP8uwZ/BfhRUgk9W5cDNq0g2flW/SsEywp59Oh32Faw8i7+VOgoaBmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB3969 X-Proofpoint-GUID: ljWLa8G6mpCqObvqWdwVL__S6uVjoAg2 X-Proofpoint-ORIG-GUID: ljWLa8G6mpCqObvqWdwVL__S6uVjoAg2 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-05-12_09:2021-05-12, 2021-05-12 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v3] app/crypto-perf: fix dereference of null return 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" > Return value of a function 'rte_zmalloc' is dereferenced without > checking, and it may call segmentation fault. >=20 > This patch fixed it. >=20 > Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test > application") > Cc: stable@dpdk.org >=20 > Signed-off-by: Min Hu (Connor) > --- > v3: > * fix compiling warning. Applied to dpdk-next-crypto Thanks.