Received: by 10.192.165.156 with SMTP id m28csp73735imm; Tue, 10 Apr 2018 16:43:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Smu8TI36eCcWsxDFrjKZm4qMO7Qd1dtbSHaYOTEUgCjI/7vx4Qg1TBlyCHMBkLWnGsFhm X-Received: by 2002:a17:902:7d10:: with SMTP id z16-v6mr165644pll.79.1523403813793; Tue, 10 Apr 2018 16:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403813; cv=none; d=google.com; s=arc-20160816; b=0gog8eQ1zB40Rmn9EO9PvAtGq9tFn+d47qC9P5JRU13HY9gsOC3Sx3iJUPskI1ohK+ y+Ikk9K/foFuP76M9O4Pn4UNfB0asGarwJ5NmDangPUVfLTpe9XUhF0pw+K9gluhslLt yfOyjd7JxJxjPjeL2aUFk2a1Yo643M2gdfY7OVCc2FLyaJhTpMI2tvw1T3mtMzYCqGP4 LbZtj9umbMb+7aw4H5DJZFdLv7415x5ktLqTtZlNA4ZSfbUMrMZyTWX2IuIYtr8WFvP4 75bJ/MVedi8yseBmpuI0OpFVvMrxz/V5cTsAcI0YmP5fP2hKi/K5Zrs+6jFf6zZwJQeV bEoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZA5BoGAxtVNlUOJ+eM4dq2n0CkcQnQ03pq8PlL2x15g=; b=f139N/8sAg3OWPmPaU5/VdA5+u8lvDO5fIOKXIQd3chig9Bg624+DLkynGNsxeVV4Y aAaL3mHiQFK4s5Bzziu5Ul19EQtBwSMuJXksc1Cl7Ygs868rajfyWzKXaAVl6Jh/eVv3 z/hEnezT0TeArQjh0hV73cgnq/Ahgy1BcZWu9aSeTsBl6HmSSvbTb/Yt8KS98NmdHElJ ChvQuwx8tn60WpS2xxxumEYRtviJnb5tJ7oGY64L/8xeCq8D6MhowO1j65gP+kzwK0ZF yPfLXUiRPXq/oSkxpFkT3pOgbyGS9gxYffkCTLUOPOr/7diy2HL9MXOmfMvCuSjGmw6n Hjrw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si2348479pgo.687.2018.04.10.16.42.57; Tue, 10 Apr 2018 16:43:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753424AbeDJW1E (ORCPT + 99 others); Tue, 10 Apr 2018 18:27:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37690 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753241AbeDJW1B (ORCPT ); Tue, 10 Apr 2018 18:27:01 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 07339B13; Tue, 10 Apr 2018 22:27:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.15 029/168] RDMA/cma: Mark end of CMA ID messages Date: Wed, 11 Apr 2018 00:22:51 +0200 Message-Id: <20180410212801.439772952@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/core/cma.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -4449,6 +4449,7 @@ static int cma_get_id_stats(struct sk_bu id_stats->qp_type = id->qp_type; i_id++; + nlmsg_end(skb, nlh); } cb->args[1] = 0;