From: David Miller Subject: Re: [PATCH net] netlink: ensure to loop over all netns in genlmsg_multicast_allns() Date: Thu, 08 Feb 2018 14:06:28 -0500 (EST) Message-ID: <20180208.140628.1811297965761970476.davem@redhat.com> References: <20180206134832.21136-1-nicolas.dichtel@6wind.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, johannes.berg@intel.com To: nicolas.dichtel@6wind.com Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40060 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751988AbeBHTG3 (ORCPT ); Thu, 8 Feb 2018 14:06:29 -0500 In-Reply-To: <20180206134832.21136-1-nicolas.dichtel@6wind.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Nicolas Dichtel Date: Tue, 6 Feb 2018 14:48:32 +0100 > Nowadays, nlmsg_multicast() returns only 0 or -ESRCH but this was not the > case when commit 134e63756d5f was pushed. > However, there was no reason to stop the loop if a netns does not have > listeners. > Returns -ESRCH only if there was no listeners in all netns. > > To avoid having the same problem in the future, I didn't take the > assumption that nlmsg_multicast() returns only 0 or -ESRCH. > > Fixes: 134e63756d5f ("genetlink: make netns aware") > CC: Johannes Berg > Signed-off-by: Nicolas Dichtel Ok, that indeed preserves the original behavior. Given this has been this way since 2.6.32 I wonder if fixing this might break something. Regardless, applied and queued up for -stable, thanks.