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 51ACA427E0; Mon, 20 Mar 2023 10:33:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4223642D1D; Mon, 20 Mar 2023 10:33:58 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B833E40A7F for ; Mon, 20 Mar 2023 10:33:08 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32K8UYeu001744; Mon, 20 Mar 2023 02:33:06 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3pdctp48m2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Mar 2023 02:33:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bQwF43VBo82cht2/h3tGL5lsCtJxsqT5ChnAfOSMC4Kp5yQQx1/IrzPtnLaPBz2YUzpv1+x+oxGepC4v4eIA5+WLP3dwhrOFhk1Buguw3fBpZPjQG3kRI3x2LIBgO9wsMv49+5Ui0EshWyMOoMe2xbGWfO2FNe6V7Hr1W3sIgV054ilfMs4egLGAzuAZD9vDwYJ4a8aw7dnCvJB3VFoFOa6zKV5f/pyE/yEZnywxYP6K/dJibLRanRah+Fu+7XuspTu7FnLx44nSAnJD3lfgpdeJYeCijC4S0uJThiKMU0AIKyCxRyTbJHdudMYGlFrzwIOsTqTk4baR47FFvcdwqA== 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=yGsb0+iLjwI7YfsVsJg0jw/dhWC5/otzwKLxDX/Dlhk=; b=FdBnqcUokLVK4y1L6KDraCzWhLq1/M7rrYYfaii1gh11Nwm5NTN9fxs8TY2w5nc81PP3l7nH4xMwJKSPn6F3SH0CkFc2dESaKWdYRcqkUczOVlp+e9NuEWh62ryvJ18jkx4VOnFXgYdw9HeaHwnqUJ4cGqXMDAgve1ezWbtHLrA1urCxHbL3Csx2o6Fed8d0rlajN9Jekti/hMkKGYsV/P//D4IkFY1ZmCe4kBCEeEljo7YJ/7OjKg6BmhjCNnvZzIF4kXtvpCP03Q0TlSe+VW65ej31Nal/S4jvMCztoKI0Anuj/dek1AfiOOBhCwU3k3XZ+DjhvXsOP9htDUnmsw== 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=yGsb0+iLjwI7YfsVsJg0jw/dhWC5/otzwKLxDX/Dlhk=; b=KZGXWOLCewE3P0eSLwWRM/a78E4Fwqk0pKbiK2cs3ZLO1B3rEJ8HYMRFXXZgaQ+3U8K5T6zU/h2jKSflBfOtBDDS1Zqfj1No78GB3ZsRuoXZQGW3bKkYU936TqunIiesPgxpMYku+eXyb2FS0SkxUfH4b64qUbRh+Pra0hDUk2A= Received: from PH0PR18MB4473.namprd18.prod.outlook.com (2603:10b6:510:d4::18) by CH3PR18MB5438.namprd18.prod.outlook.com (2603:10b6:610:15a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 09:32:59 +0000 Received: from PH0PR18MB4473.namprd18.prod.outlook.com ([fe80::ce3f:9e97:ad8a:7340]) by PH0PR18MB4473.namprd18.prod.outlook.com ([fe80::ce3f:9e97:ad8a:7340%5]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 09:33:03 +0000 From: Liron Himi To: Chengwen Feng , "thomas@monjalon.net" , "ferruh.yigit@amd.com" , Michael Shamis , Pablo de Lara , Tomasz Duszynski CC: "dev@dpdk.org" , Liron Himi Subject: RE: [EXT] [PATCH v2 34/44] crypto/mvsam: fix segment fault when parse devargs Thread-Topic: [EXT] [PATCH v2 34/44] crypto/mvsam: fix segment fault when parse devargs Thread-Index: AQHZWw5QjS5DStYzp06OqxgtrSAm2q8DZ56A Date: Mon, 20 Mar 2023 09:33:03 +0000 Message-ID: References: <20230314124813.39521-1-fengchengwen@huawei.com> <20230320092110.37295-1-fengchengwen@huawei.com> <20230320092110.37295-35-fengchengwen@huawei.com> In-Reply-To: <20230320092110.37295-35-fengchengwen@huawei.com> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcbGlyb25oXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEy?= =?us-ascii?Q?OWUzNWJcbXNnc1xtc2ctMzMyNTRhYzYtYzcwMi0xMWVkLTg0ZmYtYTg2ZGFh?= =?us-ascii?Q?ODUxMWI4XGFtZS10ZXN0XDMzMjU0YWM4LWM3MDItMTFlZC04NGZmLWE4NmRh?= =?us-ascii?Q?YTg1MTFiOGJvZHkudHh0IiBzej0iMTk5MyIgdD0iMTMzMjM3NzgzNzk2MDAx?= =?us-ascii?Q?MjMyIiB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BQUFBQUFBQUNBQUFBQUFD?= =?us-ascii?Q?ZUFBQUFiUUJoQUhJQWRnQmxBR3dBYkFCZkFIQUFjZ0J2QUdvQVpRQmpBSFFB?= =?us-ascii?Q?WHdCakFHOEFaQUJsQUhNQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQkFBQUFBQUFBQUFJQUFBQUFBSjRBQUFCdEFHRUFjZ0Iy?= =?us-ascii?Q?QUdVQWJBQnNBRjhBZEFCbEFISUFiUUJwQUc0QWRRQnpBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUVB?= =?us-ascii?Q?QUFBQUFBQUFBZ0FBQUFBQSIvPjwvbWV0YT4=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4473:EE_|CH3PR18MB5438:EE_ x-ms-office365-filtering-correlation-id: 897dbf39-f7ad-4b1a-5849-08db29261a6e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /COIHRsSSHewmcgXW2wlmnN3nFfDvw8Sfes+DDJOo3CVmwXd9GMFGe5+FrCzD7Jgc89qevcFmburQficnnfBALas8CEc+8qcMoSWgU4nvxGlHwPvUO33cohLTvjrBVqf8+CXcDX0XeI77DMeFpANdZBAiUtqN6hVqgDrfoIwPB0quyutKe1ikeRq/76gVSe4tGal/b62xW+8M5vP5yd4mzFvb9FppL98DQfq5+3SBbNd7E2bj7o2NXA1edyEJHLLLh3ZlNVXwdsSXqs/7qTWd9CgyCn5aCCbLzO7XOsag9JPRUQHX+4ZGxAhaEUKVLfPG0t1p50pN7Oi84BgcF76/GEO3ro/5ErUJsaAgbDz27QwLzExYgjKVP8oTswC+VCd8p0neBLM06BxuJfIvMuExJiTf4O9qWFDm6SyK+WthDxU5RlNL9kqMQSudGhpENW+q+AmUv0EpXrbbuu6oV/3R43md0O8HvY+VFGP9kZTs5j3ue0VfeZQ3dUSsYVJ47zjkAHIj5BDCEYtFc1j3nJ0OxkXsZdfnMTkZdjmdGdqJIMqesGNc/OsYmolDRvJWIenRcSUdPfF5UibNODR1fK7N1wLOtEpksZUw/Kl4YERhk5cZU9C90/A1YJdVquZyubvGWxvNUbwWJpg1SkbAUXOjrfp//AkKc3i7U1SizE7hCUQXTtmQUh1TwdlrSAcUovMn38r/y4/ffWLfN3sy85gvg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4473.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(376002)(39860400002)(346002)(366004)(136003)(396003)(451199018)(52536014)(5660300002)(8936002)(41300700001)(122000001)(4326008)(55016003)(33656002)(86362001)(38070700005)(38100700002)(2906002)(26005)(6506007)(53546011)(83380400001)(107886003)(9686003)(478600001)(186003)(7696005)(71200400001)(66446008)(66476007)(66556008)(76116006)(66946007)(64756008)(54906003)(6636002)(316002)(110136005)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kYzYsfzvpGm/kS7To/IJDW3+nUlJpK7NmTihmBcDoF///wchxwLJ4qgt22EG?= =?us-ascii?Q?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yVgvmLQ/7ayCeR0OcogLOPe?= =?us-ascii?Q?FU9B3I4KRK03/AGHCGCyPQGITyBEIalIezpmwpXNktw61paxnZlWjUnwcoyA?= =?us-ascii?Q?mj9Gt8r3+q6UeWd14NvBlaiXoZtYVS/OF8Q+joKoUmihnEGTseYXvzSHKqYN?= =?us-ascii?Q?g6SDt30DD6tX9zOd8fv92vQoPnAPvI8HwlnXx5++DVXFRFSjQ6tVBLirKaay?= =?us-ascii?Q?MHIbkW9AxBbJw0ks7/t7zVxbYOPssbk4YhZVDgFFxLKpLh4Timi4zZpuh730?= =?us-ascii?Q?FY8kmyLXkb6mOA3GSM7YR9ZvQLvKPvIjuqc2S5JZNBiWC+IJDk5lQh2yCKC9?= =?us-ascii?Q?PXb8dIrleNo6Ca0YcJELe6V8OW054Hy/JpasDoqgTkYKCiTzrasSbwlnQhzc?= =?us-ascii?Q?WaThzcvcTiT0bD2wjfNQAlRBHrkyyXpYV9KU1qmxR7Y4Sfhm9q4M2hVCqdx3?= =?us-ascii?Q?U9oqT4zQH6c9e0wJP5qm5YfC/Z/93Cix4ebPNd8ZWUThuO/dpUbuUpqFHrFU?= =?us-ascii?Q?iv0aAbrCiLI9QVuLdZCKJEjUJpk5M6mAyNZBu7Wh+r8xkI0YsdHAWvth71u0?= =?us-ascii?Q?hHzHqG5TEr9LB5ToTdwv+XKgB7Q7vcScXPR4LrLPvgaOPTI3x/a/MZFhoqKa?= =?us-ascii?Q?iBABj6KojvOm8sdqXJCl/eaVENnPTMRoVbqPuc7b?= 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: PH0PR18MB4473.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 897dbf39-f7ad-4b1a-5849-08db29261a6e X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2023 09:33:03.1523 (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: q6CfMm/n1CZX7il/m0/ZuUmXuaShsuEE5OT2QYIVg8SnOtGsmfMpuKrlLQRMbkCwz119CxW5NGP4MV10OcN0tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR18MB5438 X-Proofpoint-ORIG-GUID: cH-3yiXy-5sQg6FwpAVga6LPb_M4S584 X-Proofpoint-GUID: cH-3yiXy-5sQg6FwpAVga6LPb_M4S584 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-20_06,2023-03-16_02,2023-02-09_01 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 Acked-by: Liron Himi -----Original Message----- From: Chengwen Feng =20 Sent: Monday, 20 March 2023 11:21 To: thomas@monjalon.net; ferruh.yigit@amd.com; Michael Shamis ; Liron Himi ; Pablo de Lara ; Tomasz Duszynski Cc: dev@dpdk.org Subject: [EXT] [PATCH v2 34/44] crypto/mvsam: fix segment fault when parse = devargs External Email ---------------------------------------------------------------------- The rte_kvargs_process() was used to parse KV pairs, it also supports to pa= rse 'only keys' (e.g. socket_id) type. And the callback function parameter = 'value' is NULL when parsed 'only keys'. This patch fixes segment fault when parse input args with 'only keys'. Fixes: 25b05a1c806b ("crypto/mvsam: parse max number of sessions") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng --- drivers/crypto/mvsam/rte_mrvl_pmd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte= _mrvl_pmd.c index 1641da9ca6..8f99197beb 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -1126,6 +1126,9 @@ parse_integer_arg(const char *key __rte_unused, { int *i =3D (int *) extra_args; =20 + if (value =3D=3D NULL) + return -EINVAL; + *i =3D atoi(value); if (*i < 0) { MRVL_LOG(ERR, "Argument has to be positive!"); @@ -1142,6 +1145,9 @@ par= se_name_arg(const char *key __rte_unused, { struct rte_cryptodev_pmd_init_params *params =3D extra_args; =20 + if (value =3D=3D NULL) + return -EINVAL; + if (strlen(value) >=3D RTE_CRYPTODEV_NAME_MAX_LEN - 1) { MRVL_LOG(ERR, "Invalid name %s, should be less than %u bytes!", value, RTE_CRYPTODEV_NAME_MAX_LEN - 1); -- 2.17.1