Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1192380ybj; Fri, 20 Sep 2019 06:38:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE6EAagQA1HZTXq1CFEy8Wm6GB0gBGdxIfNvotCm142AwVDUVgilDWxgn8LvwpTe2q5sFY X-Received: by 2002:a17:907:2118:: with SMTP id qn24mr8631574ejb.81.1568986708789; Fri, 20 Sep 2019 06:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568986708; cv=none; d=google.com; s=arc-20160816; b=U3QIAwNTKIJZNaahjIam0bPRDc1FJkAsgK7qslqg5oy/qLLhxG0eh+hlcuxr0t/MvW oEatkAYl88naoi5Yq01NucUyXf7KVp+iuzM62ku+jyTo3lWaFVMkPglN10T+WIYeXUqr fPL9eRo7LgO9WdrzqjUWLrEwJUtWIGxnzCwr0hXgv3sE7mLDQQWpyFRp5C68FH4sEohW GpLDMrXUTLbnwk96Wfv2DqpJqdOPl2D9OkfpUURNQbDpnxnffNwrzkFfE7KY59IQkH9M rHQj2TP7TND4NuboW2obYTAxwRKUbZ6upNt1txhrzZTwkBc+dImPA+VNyOnZ4twy+CJa dlwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/PrQbwEmb5fmPZH8xqx26LzJZHxBm2AqsT+fSXfNAM4=; b=IlLGChCroYM2lVs3X+afCjKPGKvM6CGb1zWsnNZ9q0TEvvlw6E7YUMtJLKuCKOhlST fVLGPzWsvrqrE4MSshgShpvMmTjYpeELfP6bJniBwMcC5encyXmr4SVBQIuvpXgW8OlO 79jfmQGbVTVzJX9HKb/vgphYohT49ArB60sfPo50+vLmzaAe9fe4y52kUjBjsfnlxncS ysbIkuHKbl6sijpuDJWKd1SG6LBFDyesAll9v1E1u0B4ytBgJMuRYEwh2AeRknqwoj2L 4oPM9yTvH2FVRGy5YvriXNIANdQz+w0lhMLq62mGqI9VCjduBtld9RIIqgMKqADKrrcN yMjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u5+I+V1f; 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 y2si1343396eds.98.2019.09.20.06.38.02; Fri, 20 Sep 2019 06:38:28 -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=@kernel.org header.s=default header.b=u5+I+V1f; 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 S2393912AbfISWSW (ORCPT + 99 others); Thu, 19 Sep 2019 18:18:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:59828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393896AbfISWST (ORCPT ); Thu, 19 Sep 2019 18:18:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1ED4621A49; Thu, 19 Sep 2019 22:18:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931498; bh=NpS38fqmCPv6g63UB+lWC+Nik3XXnYhEE8c+zY5MRRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u5+I+V1fudW2DSUxYur03gI7Tw7Wy2x4GaLD169aMmCDPiHE+2PTSVNjHKA9iiuye PevdQeufbyVbrMtrrZVs0T69swLSGi68Qs9yIbr9VSua325TbNWHO8pVL9lr/n5wCb qjVH1RygtxwRqbJnjwVJr4V+6T1fzNSQett4eAV8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolay Aleksandrov , Nicolas Dichtel , "David S. Miller" Subject: [PATCH 4.9 01/74] bridge/mdb: remove wrong use of NLM_F_MULTI Date: Fri, 20 Sep 2019 00:03:14 +0200 Message-Id: <20190919214800.864480929@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919214800.519074117@linuxfoundation.org> References: <20190919214800.519074117@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Dichtel [ Upstream commit 94a72b3f024fc7e9ab640897a1e38583a470659d ] NLM_F_MULTI must be used only when a NLMSG_DONE message is sent at the end. In fact, NLMSG_DONE is sent only at the end of a dump. Libraries like libnl will wait forever for NLMSG_DONE. Fixes: 949f1e39a617 ("bridge: mdb: notify on router port add and del") CC: Nikolay Aleksandrov Signed-off-by: Nicolas Dichtel Acked-by: Nikolay Aleksandrov Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/bridge/br_mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/bridge/br_mdb.c +++ b/net/bridge/br_mdb.c @@ -372,7 +372,7 @@ static int nlmsg_populate_rtr_fill(struc struct nlmsghdr *nlh; struct nlattr *nest; - nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), NLM_F_MULTI); + nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0); if (!nlh) return -EMSGSIZE;