From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:41242 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744AbbLaDxu (ORCPT ); Wed, 30 Dec 2015 22:53:50 -0500 Subject: Patch "ipv6: automatically enable stable privacy mode if stable_secret set" has been added to the 4.3-stable tree To: hannes@stressinduktion.org, bjorn@mork.no, davem@davemloft.net, gregkh@linuxfoundation.org Cc: , From: Date: Wed, 30 Dec 2015 19:53:28 -0800 Message-ID: <1451534008113120@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled ipv6: automatically enable stable privacy mode if stable_secret set to the 4.3-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ipv6-automatically-enable-stable-privacy-mode-if-stable_secret-set.patch and it can be found in the queue-4.3 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From foo@baz Wed Dec 30 19:48:47 PST 2015 From: Hannes Frederic Sowa Date: Tue, 15 Dec 2015 22:59:12 +0100 Subject: ipv6: automatically enable stable privacy mode if stable_secret set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Hannes Frederic Sowa [ Upstream commit 9b29c6962b70f232cde4076b1020191e1be0889d ] Bjørn reported that while we switch all interfaces to privacy stable mode when setting the secret, we don't set this mode for new interfaces. This does not make sense, so change this behaviour. Fixes: 622c81d57b392cc ("ipv6: generation of stable privacy addresses for link-local and autoconf") Reported-by: Bjørn Mork Cc: Bjørn Mork Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/addrconf.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -349,6 +349,12 @@ static struct inet6_dev *ipv6_add_dev(st setup_timer(&ndev->rs_timer, addrconf_rs_timer, (unsigned long)ndev); memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); + + if (ndev->cnf.stable_secret.initialized) + ndev->addr_gen_mode = IN6_ADDR_GEN_MODE_STABLE_PRIVACY; + else + ndev->addr_gen_mode = IN6_ADDR_GEN_MODE_EUI64; + ndev->cnf.mtu6 = dev->mtu; ndev->cnf.sysctl = NULL; ndev->nd_parms = neigh_parms_alloc(dev, &nd_tbl); Patches currently in stable-queue which might be from hannes@stressinduktion.org are queue-4.3/ipv6-automatically-enable-stable-privacy-mode-if-stable_secret-set.patch queue-4.3/af_unix-revert-lock_interruptible-in-stream-receive-code.patch queue-4.3/fou-clean-up-socket-with-kfree_rcu.patch queue-4.3/ipv6-keep-existing-flags-when-setting-ifa_f_optimistic.patch queue-4.3/net-add-validation-for-the-socket-syscall-protocol-argument.patch