Received: by 10.223.176.46 with SMTP id f43csp2243410wra; Sun, 21 Jan 2018 15:07:01 -0800 (PST) X-Google-Smtp-Source: AH8x224v72gVAeBVLDWVhNzhGI8DlW1Y6yA8RSE8cQ9nkzEWKD85d76Wer07da8EO5K+XC4VoReX X-Received: by 10.98.190.11 with SMTP id l11mr6510426pff.32.1516576021798; Sun, 21 Jan 2018 15:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516576021; cv=none; d=google.com; s=arc-20160816; b=Ours82/pB1G+DdRuUgQ7D53z8eYMDKOHq9xlh2TB4FdidT8ag0Kl0P8FpkI5a9cZYf ht3tP4iVJYwz+1I2Dqdbzt+n4I/XbobYXg2aHdzxEwLGaFdtHWzgOe+AHVd+K/GpsS4P HjDLGR4+lDADx2on826BTBdcQ86EEqOo59J/L5d25bvDrDwY3X3BTNhAe+l39oa+IdOZ bRpzHEdHHKQJgGHe80PhNUGtBbq5jXk+0UQ7KvfWEdBexiOOrAQjSY9R5clk1ECiPZiW tGNXEnb/05GUY5h5tUcRrkb1zWdgqAiP027+g2MPfPmzPAU0UDfcRNQVWkAPwTuuKqPM bJCg== 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=JuqCNsY2/cPp2YsQ2cjhKm6WUbWBAFuYM4gkIi18hmA=; b=nEAwxWfi0rcEWFFs9LemIBqVXMjvgjK4QXUQEjUHSbQB6AYQjvHJp0lese3Nv6Aq0Z MJUjt/1bCMU6zDWItdmH2lluuqS7BQKWW5f8oUeR5TphNpVEymLlh5+AQRwlknvDTc4Z MaNYR2tPUYH8lAXaCpEXh1NWmTRQND9pLA4P2Iqo5hf7n8byPAaA8dKHoDLYm8Vk2xyb jDHWGXwkXaBA6fp7nhfN0EsHYQ4lWZJTxLp4VJKLtkjA+xDUG92wWm8L9Tc+zCjjSvDd tUdVG5ck+uNNZWYJ/Ieg+wfe1TSfZ15Sqv76sX4C1Hu4klxAscxeJ4+uFvp4ytRcfZ0d E94Q== 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 f3si14142674pfd.65.2018.01.21.15.06.48; Sun, 21 Jan 2018 15:07:01 -0800 (PST) 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 S1751132AbeAUXGE (ORCPT + 99 others); Sun, 21 Jan 2018 18:06:04 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:41999 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbeAUXGD (ORCPT ); Sun, 21 Jan 2018 18:06:03 -0500 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 1edOgc-0004V4-5K; Sun, 21 Jan 2018 23:06:02 +0000 Message-ID: <1516575958.3417.22.camel@codethink.co.uk> Subject: Re: [PATCH 4.4 39/63] net: reevalulate autoflowlabel setting after sysctl setting From: Ben Hutchings To: Shaohua Li Cc: stable@vger.kernel.org, Martin KaFai Lau , Eric Dumazet , Tom Herbert , "David S. Miller" , Greg Kroah-Hartman , LKML Date: Sun, 21 Jan 2018 23:05:58 +0000 In-Reply-To: <20180101140049.154545057@linuxfoundation.org> References: <20180101140042.456380281@linuxfoundation.org> <20180101140049.154545057@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 Mon, 2018-01-01 at 15:24 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > ------------------ > > From: Shaohua Li > > > [ Upstream commit 513674b5a2c9c7a67501506419da5c3c77ac6f08 ] [...] > Note, this changes behavior a little bit. Before commit 42240901f7c4 > (ipv6: Implement different admin modes for automatic flow labels), the > autoflowlabel behavior of a sock isn't sticky, eg, if sysctl changes, > existing connection will change autoflowlabel behavior. After that > commit, autoflowlabel behavior is sticky in the whole life of the sock. > With this patch, the behavior isn't sticky again. [...] I think the getsockopt() handling for IPV6_AUTOFLOWLABEL also needs to be updated, as it will now return 0 unless the option has been explicitly set. Ben. -- Ben Hutchings Software Developer, Codethink Ltd.