Received: by 10.213.65.68 with SMTP id h4csp47055imn; Mon, 12 Mar 2018 17:05:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjpDYAtGoep+HKdPaQr3YUCLi2bplq8AH+tjPHI7x8MzarStwYEETMUTpwb4b9XIzWutyM X-Received: by 2002:a17:902:bd05:: with SMTP id p5-v6mr9868257pls.137.1520899558706; Mon, 12 Mar 2018 17:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520899558; cv=none; d=google.com; s=arc-20160816; b=mNIjeTeASnGfWmWcxONeTR1hrvO+31iYS4BcnY9glQhzS9wVa6rZvws1M/daZzO0Ep dx1cNNuxNd7O+1vYIAUS4vyDkwD35v2qOgk2x2EOswyawl2yIlN8cjKCNuW3G8tZJtru vNDdHYma/F1o9w/qzOHZusnZf5AqE+h6djG/UF/HvAVjOTDQctlBKJ8cRpli6ck468SD jTRhIOqx32JvS+DWskpdSTTsbAaIKUf98mmriaK6rTpMhjcYt15bMqbIK1SAyve1Hx8+ tLffvyiQsjbwV0uIbixdVj3RnEAjpLhAm1pLm2dC98MXEcK5ofS7gtGTzULJRmhbnkiG 47Mw== 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 :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=fy+TYzYULN12AVWgunW0/D1dfGfVklnZM28osw1jl4c=; b=qhdNw1oQ8Fn9nqHNThEijenNOhirzvmu4tTDmwmL5sxdtwYkBLTKmi/N/3q4tpoBE3 O9BrvTxCDaD4OsMh50ivfbQBP1ZjiRmecYcLIaFyIL4qDDlEOcgjjbHky3JVWyZplz58 QBxOTkQyNE4Hkdtq01JDf3/8hNQ2huH5VkKUq/8fPCvLNO+GoJQYHYfrujytTPWU61zF KOHdFVz7QkSqVhw263w3jkkrcPc1iFpKGycjIlQrWgw6vsepVCCUY66b4mbUByXC6OXJ M18UizCgXYKfRHhalhm4mI40fyf/4jBBqc+Zpb3pKmHoGeeFVn6Ss9KHPcjWn0WB/T12 n8/A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 34-v6si6802693plc.368.2018.03.12.17.05.44; Mon, 12 Mar 2018 17:05: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932317AbeCMAE0 (ORCPT + 99 others); Mon, 12 Mar 2018 20:04:26 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:56736 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbeCMAEZ (ORCPT ); Mon, 12 Mar 2018 20:04:25 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126] helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1evXQW-0001fF-E1; Tue, 13 Mar 2018 00:04:24 +0000 Message-ID: <1520899459.23626.87.camel@codethink.co.uk> Subject: Re: [PATCH 4.4 24/36] netlink: ensure to loop over all netns in genlmsg_multicast_allns() From: Ben Hutchings To: Nicolas Dichtel , "David S. Miller" Cc: stable@vger.kernel.org, Johannes Berg , Greg Kroah-Hartman , LKML Date: Tue, 13 Mar 2018 00:04:19 +0000 In-Reply-To: <20180310001808.681346858@linuxfoundation.org> References: <20180310001807.213987241@linuxfoundation.org> <20180310001808.681346858@linuxfoundation.org> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Ben. > + return delivered ? 0 : -ESRCH; >   error: >   kfree_skb(skb); >   return err; > > > -- Ben Hutchings Software Developer, Codethink Ltd.