Received: by 10.213.65.68 with SMTP id h4csp1863849imn; Mon, 19 Mar 2018 15:37:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELsS92C+Grc1QrNbDJr8yRxYPs5Nl1xEZvEnedSyqC1nMHAKIpmBgdgNRXSf3ejZlcGRU7D/ X-Received: by 10.101.101.204 with SMTP id y12mr10431602pgv.142.1521499046620; Mon, 19 Mar 2018 15:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521499046; cv=none; d=google.com; s=arc-20160816; b=WIJvBrtcLGmQZ6ckz8NULRgyfeBJpR9Go4S6szaw4DjGEATH6PwW0rWc3ByHRn/3Cu IstJgEy3o9BfD3Dw0LnB7X59NsNRAiWJDJWVoF90cu6itYTayOeOm+j4jmPqA5bAkvn2 DexDYEaFGNQkkbHcdhjG5jaFckBWtrZ9of62vH6mIo+BgkNIDY/DnG1P5QgmSx0/LZY9 Rkhi0XYHJJTowNKRo7e1HmUD9dJAiRraNVWH5Tygia++x6h39y+HDSkDY/R+DxlS0e0J 400PfvT9qSAh1U425C2LhENNjTqGPBsTveAvmO2ttsceZv1oDkNosJVE3kiNWSH0Jn67 80nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=9OxTure3RU6qcavdy3MH6JVkU9TjDHKiRj6zIDTsh8Y=; b=QVNSEpQRMrekmqf2zBvsHc9qPCdNb8/3cex8+PXab5LfHR7jxqZ28yw+upKFM9Ov92 RLy7CQm4KQ8zAvdTDeaxBi7XYW76Bw4OACmlA2nHKA1GI6d7crqF82qlz+Xpr/11WsMS gmZGd0KguHo9n1osuV5+9n0POT8tbx71u6ssoBLSeY6o9Ihbm8+BkC8vg9yQdIk8nbg1 KZY76/aDMnsp2IUwx540V4ColiBlVc917ND3WuDB6HmkGvXc3vsR0Tu4v4J1lpfLkqcw SRzxtE0xh+vwJQBEcstfay4JRqkLhdiBsWfG4keECKtCBUzz48yG4LTt8sCaPYCU6Z/h C+Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=guir5MjJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si162466pgs.482.2018.03.19.15.37.12; Mon, 19 Mar 2018 15:37:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=guir5MjJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936665AbeCSWdO (ORCPT + 99 others); Mon, 19 Mar 2018 18:33:14 -0400 Received: from mail-by2nam01on0119.outbound.protection.outlook.com ([104.47.34.119]:13392 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933710AbeCSPsD (ORCPT ); Mon, 19 Mar 2018 11:48:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9OxTure3RU6qcavdy3MH6JVkU9TjDHKiRj6zIDTsh8Y=; b=guir5MjJ/k77zLFupmAB8cnCKer9sf6xcZhmHcrrUIEpnkIAskj7+09vdcN6cYWV6iVKE/Pu3x3BGvk0uCglEa68lCsMSIjVOAqNY8C/kuRcMvx3kDLJZn5kErdKcJ5Hw1LZQO5hDu7q892eXUwpIqwGya4VMCAW8l7uqp/VXsw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1030.namprd21.prod.outlook.com (52.132.128.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.1; Mon, 19 Mar 2018 15:48:01 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:48:01 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 031/124] RDMA/cma: Mark end of CMA ID messages Thread-Topic: [PATCH AUTOSEL for 4.15 031/124] RDMA/cma: Mark end of CMA ID messages Thread-Index: AQHTv5mWT1Bx/CuM7UWXcGlu5zoV1A== Date: Mon, 19 Mar 2018 15:47:30 +0000 Message-ID: <20180319154645.11350-31-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1030;7:ZtPlF4hl2X4BMTyB1utiKguBL7ZQC5HhgSeOE/4w9iDXYfTuaHT80rf77i2Xzv8eM8jSAGlXIYyx594IhuvCpGX+00AqqMj1F44h8lGjZNYl4IBRuIj6ZBoJyY81j1CzugKPQPG7Tf2M6TEsogAPIjO8pkOqGyFFmf3dGKcI3v0oW9hXrTmgcxNt+lRucOi2NSIqKwenZlDhA/0ceIZ0jvl75UFgMDzTc3ZJTSW0Kz19FfpXAwkaFFSRGmDiap3p;20:PuBJ5R93HjKUwGCDCsHCMMhPyxIs1ETglCwprD9ottDMIh09h8zN/ZVSFAtml1rph8nr/e08aXgnfnF464gSBX9MKUGrinolONBELU7j8EKh2g3ZPLgeEI7jnDIdVfWiEcutb0FDb14cLI5pgvxz4u1PBxva8VOSF7YTeRuy6D0= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7b502628-7455-4495-4cb2-08d58db0cbed x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1030; x-ms-traffictypediagnostic: DM5PR2101MB1030: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231221)(944501300)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1030;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1030; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(39380400002)(366004)(346002)(376002)(199004)(189003)(2501003)(6486002)(5250100002)(478600001)(86612001)(102836004)(1076002)(97736004)(575784001)(99286004)(72206003)(6436002)(2906002)(107886003)(66066001)(10090500001)(81166006)(6116002)(81156014)(305945005)(8676002)(86362001)(7736002)(68736007)(54906003)(110136005)(26005)(3846002)(105586002)(3280700002)(316002)(53936002)(8936002)(186003)(76176011)(2900100001)(6506007)(36756003)(10290500003)(2950100002)(22452003)(25786009)(5660300001)(106356001)(3660700001)(15650500001)(4326008)(14454004)(6512007)(6666003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1030;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: q+jphdOMYZWFNkdDqGB47ufnngJfJgpvl3poXVr4XKKMiZnx+Y8ZTZyIlzgJAZEftbN0zVw+O81YQo9UKJcFa8oIP/IxavD3QbRcWP/B95CMGlZTslFDwnAPEfoDbcvko+tPC6tNP39eEwcoas0pd/dYVUeTXsSfAEx/jHeAeAUvQrsOR8eFZfiMlrkzKkqppcnXIcK3ZrTxNhyShr13rKf34cAJ6pZ8tMTzWIpAAuUnYqcclA1E5VzM6T9M96wYBnPGy0m2iJi5SwxCmscr30HQM7VD1VA2G4fXCa+Jpcr4mCu76uD5fTycR839Z8AA14LirmCF22k/yi70+8MzDg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b502628-7455-4495-4cb2-08d58db0cbed X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:47:30.9544 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1030 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky [ Upstream commit e48e5e198fb6ec77c91047a694022f0fefa45292 ] The commit 1a1c116f3dcf ("RDMA/netlink: Simplify the put_msg and put_attr") removes nlmsg_len calculation in ibnl_put_attr causing netlink messages and caused to miss source and destination addresses. Fixes: 1a1c116f3dcf ("RDMA/netlink: Simplify the put_msg and put_attr") Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/core/cma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 6294a7001d33..9db13a00c3d9 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -4444,6 +4444,7 @@ static int cma_get_id_stats(struct sk_buff *skb, stru= ct netlink_callback *cb) id_stats->qp_type =3D id->qp_type; =20 i_id++; + nlmsg_end(skb, nlh); } =20 cb->args[1] =3D 0; --=20 2.14.1