List comments

GET /api/patches/74567/comments/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

[
    {
        "id": 116513,
        "web_url": "https://patches.dpdk.org/comment/116513/",
        "msgid": "<AM0PR05MB67077E132B0738A68BEA3D2EC2790@AM0PR05MB6707.eurprd05.prod.outlook.com>",
        "date": "2020-07-22T15:30:48",
        "subject": "Re: [dpdk-dev] [PATCH] net/mlx5: fix NVGRE item mask handling",
        "submitter": {
            "id": 513,
            "url": "https://patches.dpdk.org/api/people/513/",
            "name": "Raslan Darawsheh",
            "email": "rasland@mellanox.com"
        },
        "content": "Hi,\n\n> -----Original Message-----\n> From: dev <dev-bounces@dpdk.org> On Behalf Of Michael Baum\n> Sent: Tuesday, July 21, 2020 2:59 PM\n> To: dev@dpdk.org\n> Cc: Matan Azrad <matan@mellanox.com>; Slava Ovsiienko\n> <viacheslavo@mellanox.com>; stable@dpdk.org\n> Subject: [dpdk-dev] [PATCH] net/mlx5: fix NVGRE item mask handling\n> \n> The flow_dv_translate_item_nvgre function add NVGRE item to matcher\n> and\n> to the value.\n> It defines a pointer named nvrge_m that receives the item's mask into\n> it, and then copies some of it to the matcher.\n> \n> Before copying, it checks for mask validation, and in case the mask is\n> NULL the function gives it a pointer to rte_flow_item_nvgre_mask.\n> However, the function calls from the vni mask's field before the check,\n> and if there is no mask, it actually does dereference to the NULL\n> pointer and indeed the program crashes with segfault.\n> \n> Move the call from the vni field to post-validation.\n> \n> Fixes: cd18e1b72f73 (\"net/mlx5: fix build on Arm\")\n> Cc: stable@dpdk.org\n> \n> Signed-off-by: Michael Baum <michaelba@mellanox.com>\n> Acked-by: Matan Azrad <matan@mellanox.com>\n> ---\n>  drivers/net/mlx5/mlx5_flow_dv.c | 6 ++++--\n>  1 file changed, 4 insertions(+), 2 deletions(-)\n> \n> diff --git a/drivers/net/mlx5/mlx5_flow_dv.c\n> b/drivers/net/mlx5/mlx5_flow_dv.c\n> index f0cc7ad..caeafd9 100644\n> --- a/drivers/net/mlx5/mlx5_flow_dv.c\n> +++ b/drivers/net/mlx5/mlx5_flow_dv.c\n> @@ -6469,8 +6469,8 @@ struct field_modify_info modify_tcp[] = {\n>  \tconst struct rte_flow_item_nvgre *nvgre_v = item->spec;\n>  \tvoid *misc_m = MLX5_ADDR_OF(fte_match_param, matcher,\n> misc_parameters);\n>  \tvoid *misc_v = MLX5_ADDR_OF(fte_match_param, key,\n> misc_parameters);\n> -\tconst char *tni_flow_id_m = (const char *)nvgre_m->tni;\n> -\tconst char *tni_flow_id_v = (const char *)nvgre_v->tni;\n> +\tconst char *tni_flow_id_m;\n> +\tconst char *tni_flow_id_v;\n>  \tchar *gre_key_m;\n>  \tchar *gre_key_v;\n>  \tint size;\n> @@ -6495,6 +6495,8 @@ struct field_modify_info modify_tcp[] = {\n>  \t\treturn;\n>  \tif (!nvgre_m)\n>  \t\tnvgre_m = &rte_flow_item_nvgre_mask;\n> +\ttni_flow_id_m = (const char *)nvgre_m->tni;\n> +\ttni_flow_id_v = (const char *)nvgre_v->tni;\n>  \tsize = sizeof(nvgre_m->tni) + sizeof(nvgre_m->flow_id);\n>  \tgre_key_m = MLX5_ADDR_OF(fte_match_set_misc, misc_m,\n> gre_key_h);\n>  \tgre_key_v = MLX5_ADDR_OF(fte_match_set_misc, misc_v,\n> gre_key_h);\n> --\n> 1.8.3.1\n\nPatch applied to next-net-mlx,\n\n\nKindest regards,\nRaslan Darawsheh",
        "headers": {
            "Accept-Language": "en-US",
            "X-Mailman-Version": "2.1.15",
            "x-ms-oob-tlc-oobclassifiers": "OLM:3276;",
            "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM0PR05MB4401",
            "authentication-results": "mellanox.com; dkim=none (message not signed)\n header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com;",
            "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
            "Precedence": "list",
            "List-Post": "<mailto:dev@dpdk.org>",
            "x-ms-exchange-senderadcheck": "1",
            "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
            "Subject": "Re: [dpdk-dev] [PATCH] net/mlx5: fix NVGRE item mask handling",
            "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
            "Sender": "\"dev\" <dev-bounces@dpdk.org>",
            "Delivered-To": "patchwork@inbox.dpdk.org",
            "Received": [
                "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B522BA0526;\n\tWed, 22 Jul 2020 17:31:04 +0200 (CEST)",
                "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F336E1BFFA;\n\tWed, 22 Jul 2020 17:30:52 +0200 (CEST)",
                "from EUR05-AM6-obe.outbound.protection.outlook.com\n (mail-am6eur05on2042.outbound.protection.outlook.com [40.107.22.42])\n by dpdk.org (Postfix) with ESMTP id 579CF2C6E;\n Wed, 22 Jul 2020 17:30:49 +0200 (CEST)",
                "from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17)\n by AM0PR05MB4401.eurprd05.prod.outlook.com (2603:10a6:208:62::20)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Wed, 22 Jul\n 2020 15:30:48 +0000",
                "from AM0PR05MB6707.eurprd05.prod.outlook.com\n ([fe80::ecd3:6008:3784:4012]) by AM0PR05MB6707.eurprd05.prod.outlook.com\n ([fe80::ecd3:6008:3784:4012%5]) with mapi id 15.20.3195.028; Wed, 22 Jul 2020\n 15:30:48 +0000"
            ],
            "x-originating-ip": "[84.242.49.134]",
            "x-microsoft-antispam": "BCL:0;",
            "x-ms-exchange-transport-forked": "True",
            "X-MS-Exchange-CrossTenant-AuthSource": "AM0PR05MB6707.eurprd05.prod.outlook.com",
            "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=W/YLHoCtXr/k1lQfbLqp6F/AqSxAxNeEkgB0LGNfszY=;\n b=j3jAigbNqb9Dsl5LX2H6RlVwQe1e37lAiYaViE6PhU9xU0cjnVwyU5f9WlNwL1jEYs9tkPAqv+X7t6FcCU8PmTTVSjP2dEWfPdyPQkxKuDFpYPhdtY0EkZJPmgYpC9N8aAOqGDZaRdnQ2Yq/wvs/GjBMBtv6bv7s3IhAgNe8hMfkE4R9ZAf1BN0u10lFrmtMPsLQPON009CBYYVAp3xNx6uP4hNtcC1M51XyLyB2/Npcf82M85iAYiuWbUm0pf8Czd4LrBDeuUVZh4eaUUPIW2KckJzHoWiLjmMJwhYvZQTd87IQrsc4UD1WiL20JV/SG4GQy4bgiPsyT1QFr0h38w==",
            "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
            "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
            "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=W/YLHoCtXr/k1lQfbLqp6F/AqSxAxNeEkgB0LGNfszY=;\n b=pS422Y2LrQVeNVYOLLfKhcm0sQFM/xs3TuJ4lrrPpfrdQN/oOz4wCJcGvvyXJ8hZ2IzGS0sDp3x1sJ0SlRruaQIS5QABiD1y4DXU4H1xzVD5b5lh5ORXrO3zxgHBOpt+HMzYRGehWxKP5UlKDyNoGrT5h5qma7A1nlODH6eXlNQ=",
            "Message-ID": "\n <AM0PR05MB67077E132B0738A68BEA3D2EC2790@AM0PR05MB6707.eurprd05.prod.outlook.com>",
            "X-MS-Exchange-CrossTenant-userprincipalname": "\n 9Rc8Dh2FlUNoeKnXiAAzIBGbc96oBZ+pb+Vcx4EVfixiwqZVwIjTa0yAIO+F95oaRyJkHxMlCBFx5qE1hbd2LA==",
            "To": "Michael Baum <michaelba@mellanox.com>, \"dev@dpdk.org\" <dev@dpdk.org>",
            "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
            "From": "Raslan Darawsheh <rasland@mellanox.com>",
            "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
            "x-ms-publictraffictype": "Email",
            "Return-Path": "<dev-bounces@dpdk.org>",
            "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com;\n dkim=pass header.d=mellanox.com; arc=none",
            "X-MS-TNEF-Correlator": "",
            "Thread-Index": "AQHWX1ZdDDuWTjx2D02T+Gvdg5h+H6kTureA",
            "CC": "Matan Azrad <matan@mellanox.com>, Slava Ovsiienko\n <viacheslavo@mellanox.com>, \"stable@dpdk.org\" <stable@dpdk.org>",
            "X-OriginatorOrg": "Mellanox.com",
            "Thread-Topic": "[dpdk-dev] [PATCH] net/mlx5: fix NVGRE item mask handling",
            "X-Original-To": "patchwork@inbox.dpdk.org",
            "x-microsoft-antispam-message-info": "\n 8SG3bCyp8Sk19NgEBJ3sOBBJeTZtt6GBLHDLdPLOLZgsOsP8QjuHCpl2rZqT7v4ZQdPAnGI2t4iJdxg42IIUwDvOCuDSaevlLTGUmSse/Gyp63oKZc1Q2/krVKCsGIxQvXaSPf10U/Aff81wCOYGH+uvePyy2/r1lV9kJNS0mBPuiSrCkFHlN4FBCGsYeRGwo6otHDGPMEcShPalM4dbsJQ6AZmWgX2uaJXxJLaeJa4ZN/O7f8ROarje+zKePKinJnWJmBV0cqbSsYAfFHcBkkyaIfhOQB59OJgy5W/kvgdQ46tkNDU3NuFF5kzYUJ0TxXYGcdo9z8LguQSupRuu9A==",
            "x-ms-office365-filtering-ht": "Tenant",
            "MIME-Version": "1.0",
            "In-Reply-To": "<1595332744-6792-1-git-send-email-michaelba@mellanox.com>",
            "X-BeenThere": "dev@dpdk.org",
            "References": "<1595332744-6792-1-git-send-email-michaelba@mellanox.com>",
            "Content-Type": "text/plain; charset=\"us-ascii\"",
            "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
            "X-MS-Exchange-CrossTenant-id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
            "x-ms-office365-filtering-correlation-id": "3930af8d-6404-4331-6eff-08d82e5435a3",
            "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 3930af8d-6404-4331-6eff-08d82e5435a3",
            "Date": "Wed, 22 Jul 2020 15:30:48 +0000",
            "Content-Transfer-Encoding": "quoted-printable",
            "x-forefront-antispam-report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE;\n SFTY:;\n SFS:(4636009)(396003)(376002)(39860400002)(136003)(366004)(346002)(316002)(8936002)(6506007)(26005)(4326008)(7696005)(53546011)(450100002)(478600001)(8676002)(54906003)(110136005)(186003)(86362001)(2906002)(52536014)(5660300002)(55016002)(83380400001)(33656002)(76116006)(66946007)(66476007)(66556008)(64756008)(66446008)(9686003)(71200400001);\n DIR:OUT; SFP:1101;",
            "X-MS-Has-Attach": "",
            "x-ms-traffictypediagnostic": "AM0PR05MB4401:",
            "x-ms-exchange-antispam-messagedata": "\n ywKM1RNQEATHLo4i3v2MRf1JDh7H0QkYOdYpBZCOZ9HxGTiE0PDNyrPV5yLT3fPwr7H4qNYpS8ECsvG3oobHITPpYE2HsFZPQd4p1EdqVdQgrPgLnRRV3Hi/qtQ7sBXyTrdTdvCdo/bQ7y57Acruup8qMoAceKQbYex4N7S2K3Ydk2k8YDe1bhkQLb0yzvQmmp0vyHKaggruxr6PHgdxtn6SUr83xv+4di8fdfvY0ibK9E4KrXq5S+14VIf45quE1pZ+dEEs2mvW1eQmXabzxExaD9dcyyw5YVGY9WbzGOC1t0hjenPrXDPY9vwZbgf57bDaFW/qequDCZN8bQUWdmSH6gJU9m8FMEgMxwkG4FDsBX6S+oaTqaimYR/a6pIzlJ7c2WetNtmRdZFYVYuj1RSvWmOmJJDYpOrYrbaqcCXW1HaYZUzohWvL7r34bs9JgJ8Paynw07fD9kJJaT6J8kc1MZ/W1pdfq97bemlLkmZtcO13R81597tr1Mak6EMe",
            "X-MS-Exchange-CrossTenant-originalarrivaltime": "22 Jul 2020 15:30:48.4341 (UTC)",
            "Content-Language": "en-US",
            "Errors-To": "dev-bounces@dpdk.org",
            "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=IAxP6UvJ1CjKljH+BEIVvz+qBlnCYAJBH5BCUbQK84vyQr1Ca4HphAcbDL8gC0i5AKzoxLH84Vy1G+CNCVarcyo/Jg7kK2UFrQL1qCOH6p6OtRsM+HwRHSVfR/xd5egxmXlwKiX8lR03NsT8h44157NVCTcqIbLf5u7pFkbDd9lDybqTMR3fJrgvetj2y85RUtVkNlcefmJ2zHfOLetxu6RGgpYW55AnJvhQeJgaIX3DFiEnpQIBBglgyf9UZ8vPs/abPkwiq+nialxy7ExL0B/ACpGHCV+9mBay6tOkJLFdZOOlO0acrUwe0aPpYp2WpVCJ8lasbbwxwrR7rz4OrQ==",
            "x-microsoft-antispam-prvs": "\n <AM0PR05MB4401E25D1D9EA69637A3BC2FC2790@AM0PR05MB4401.eurprd05.prod.outlook.com>"
        }
    }
]