[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOxq_8OwxVzV=s2zY4DUNDq8myA4kga7dZaqWbTyy+4j=1mMwg@mail.gmail.com>
Date: Tue, 28 Feb 2017 11:22:45 -0800
From: Ani Sinha <ani@...sta.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
Cc: fruggeri <fruggeri@...sta.com>, Jeff Chan <jchan@...sta.com>,
gilligan <gilligan@...sta.com>
Subject: ipv6 sysctl
Hi guys,
Commit a79ca223e029 ('ipv6: fix bad free of addrconf_init_net')
introduced in linux 3.9 tries to fix an issue involving free-ing
statically allocated memory. Additionally, it subtly changes behavior
of how certain ipv6 sysctl values are inherited from the default net
namespace to the child namespaces. Before a79ca223e029, the default
namespace would directly modify the values in statically allocated
struct ipv6_devconf for example and all child namespaces would inherit
these values upon creation (their own private copy was initialized
using the statically allocated ipv6_devconf). After this change, any
sysctl value changes in default net namespace is not seen by any new
child namespaces that are created afterwards. This is because all
network namespaces, including the default namespace has it's own
private copy of struct ipv6_devconf which is initialized by certain
fixed values. This is in contrast to what we have in ipv4 where child
namespaces continues to inherit values from the default namespace upon
creation.
I see that there was a previous discussion here :
https://patchwork.kernel.org/patch/4639391/
Was the above inconsistency between ipv4 and ipv6 sysctl
initialization intentional or was it an unintended effect of the above
change ? It would be nice to have a symmetric behavior between ipv4
and ipv6. Please share your thoughts on this.
thanks,
ani
Powered by blists - more mailing lists