Received: by 10.213.65.68 with SMTP id h4csp1119433imn; Wed, 14 Mar 2018 10:07:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtqTpQXd70QWYWpoo8GVy/5CoyUy7rKtNSASb1Uuqi9MermdlKaAB/sTxILrNt+RQPDyN7b X-Received: by 2002:a17:902:7595:: with SMTP id j21-v6mr4632351pll.17.1521047278244; Wed, 14 Mar 2018 10:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521047278; cv=none; d=google.com; s=arc-20160816; b=pBG5RnWKqe6FRtTtXMYNcl+Ka6FqukOIoBuBjJQIr8VQ3QxL+Wt2oVi2bayEY007er UnQSysywsf2GINo3Gh8anii/OMsHUVkXZFrlDyEtRWK5MprbFCLFJZ/fIz876vy1DqwI VMd2vQd31uwurkGrZLHED0Avp6H58AJ28JsX8ChZiiuutnGeSr106mnml+pydyvH5pG9 ag+x1ddghYAB0HDQZN7zAaf55RYwNnuWdDGFc5QoPlBBZ2Z4rnYCkTc9/qB+oSVU1pOY KyBsLtVjxzhPwrHsuRVILnvYBcAtq7nK+HrJaVrpjjfnaiu4Pg0iEqu7pC6r7FItPDE6 XWLA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:cc:to:references:subject:reply-to :dkim-signature:arc-authentication-results; bh=Gqoh2+8paSNn5MxAmbxxrmznAHqOyQVuqmQH4pzJ3nM=; b=M02Y/RCq+MrbvGWcmH1DKd/EqIpsnXeKRDrrADqqblerygJ1Ju78IJjP4IYgwvBqqa g+pJqdJ2ldmiflWuI6CtrKSdugN4+hEP+JWD67xj306uTeZcuMEDMF0i7QddnCEcKGha 6lHIMezedjyxWl70wYz21qV5Jb36GyPvVomX2p8t5oeMBuWHWBDqHd43ZmSJMAHBYoN4 7RN/c5jCR+Lo1OTplFPmLgzVc1qEf10Kk7F0jRyY9Iyn50NjSJgQsB2XHu3k7acCGhcf PhE8X+prGMY8wLuoQywkI9tNbBMaIY0V/Fvuirt3yPfErtdGYezhM6U+ALBG/JNz6N9/ V5KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind-com.20150623.gappssmtp.com header.s=20150623 header.b=nch/hzVi; 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 g6si2085980pgu.737.2018.03.14.10.07.43; Wed, 14 Mar 2018 10:07:58 -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=@6wind-com.20150623.gappssmtp.com header.s=20150623 header.b=nch/hzVi; 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 S1751835AbeCNRGi (ORCPT + 99 others); Wed, 14 Mar 2018 13:06:38 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:39855 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751892AbeCNRGV (ORCPT ); Wed, 14 Mar 2018 13:06:21 -0400 Received: by mail-wr0-f170.google.com with SMTP id k3so5505717wrg.6 for ; Wed, 14 Mar 2018 10:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=reply-to:subject:references:to:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Gqoh2+8paSNn5MxAmbxxrmznAHqOyQVuqmQH4pzJ3nM=; b=nch/hzVi0FdSKayZ8gen3lT/t0Gh0Eg6ffSpp4Q+Hc/8oPqpjyrJbtxDU4BgMpOH4d ZFIvaKpbpQbOaHt+4M8M1/3aW9NkVF+2oK2hVWaeFm3h2Wr9+5zKTu1/RBg/6lPweers kl8MCLxV1o/CnMn28A3ZUqwrVH4BwSX8af3kL2/0n9MiDT8zAkivSS6zZPK+CFU0x5jr jqVYtcQ4W2tza5Pl79OBaOTBRs/fyifuYkw1bPezjGYZzBqgiYajsCBMuoUUUse3kfVZ Kla7llJCGZzSvZeYn0otHnPbkr+T+X8Fw5sktRumLR5LjFpiN+bDk9ausKxKluHxR5W+ rfZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:references:to:cc:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Gqoh2+8paSNn5MxAmbxxrmznAHqOyQVuqmQH4pzJ3nM=; b=eWWhFfVYT79YxADXVwNKw8PvOsEV8+4nqbhIfZlKIs7/s25473LOgTZoDmWnIidPEf 4sNVvtiHfgGDPMeVo0LywB5t5OO4j+vD5DbEcWCpVrXS5M9wkCBlatHk1KddA8obqsxW SDHKPnunBDFfhlW3nvCtP4kynrY2r147nRSHsHgBC2MZVFvbghCxdwDB//nwodZi1Bjv MSFi4/54GOVkzKvIwstMwUKNFXyXF5SWoXVh2pQx/m+v1S/jXaUVUJEhVpX8p0obvBZ7 vKunAujYuopYkpY7RsX85zhSwVqBv8YhGEhRANe1J7E1BIQqVhO7r+bugxZlw2/CGUiu tz+g== X-Gm-Message-State: AElRT7H45dVyxoCAfz5Lx8OozJNOfeFptr5erdDFi9TjYIsLscT2Bn1U jcbMnHCkPONufjUgtO2JA3zcQ4hc X-Received: by 10.223.160.195 with SMTP id n3mr3810041wrn.92.1521047179882; Wed, 14 Mar 2018 10:06:19 -0700 (PDT) Received: from ?IPv6:2a01:e35:8b63:dc30:3c32:747d:b8b:69a7? ([2a01:e35:8b63:dc30:3c32:747d:b8b:69a7]) by smtp.gmail.com with ESMTPSA id m3sm2726313wri.25.2018.03.14.10.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 10:06:18 -0700 (PDT) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH 4.4 24/36] netlink: ensure to loop over all netns in genlmsg_multicast_allns() References: <20180310001807.213987241@linuxfoundation.org> <20180310001808.681346858@linuxfoundation.org> <1520899459.23626.87.camel@codethink.co.uk> To: Ben Hutchings , "David S. Miller" Cc: stable@vger.kernel.org, Johannes Berg , Greg Kroah-Hartman , LKML From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Wed, 14 Mar 2018 18:06:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520899459.23626.87.camel@codethink.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 13/03/2018 à 01:04, Ben Hutchings a écrit : > On Fri, 2018-03-09 at 16:18 -0800, Greg Kroah-Hartman wrote: >> 4.4-stable review patch.  If anyone has any objections, please let me know. >> >> ------------------ >> >> From: Nicolas Dichtel >> >> >> [ Upstream commit cb9f7a9a5c96a773bbc9c70660dc600cfff82f82 ] > [...]  >> - return nlmsg_multicast(prev->genl_sock, skb, portid, group, flags); >> + err = nlmsg_multicast(prev->genl_sock, skb, portid, group, flags); >> + if (!err) >> + delivered = true; >> + else if (err != -ESRCH) >> + goto error; > > This call to nlmsg_multicast() consumes skb rather than a clone, so we > must not free it again here. Right, good catch. I will send an update. Regards, Nicolas