]> www.infradead.org Git - users/jedix/linux-maple.git/commit
addrconf: always initialize sysctl table data
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 21 Dec 2015 18:55:45 +0000 (10:55 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:19 +0000 (15:43 -0700)
commitaeb82bfb8d299b7a0881a382eff99b9a93259096
tree079de2123f52c2510960071b03bbc4321585926d
parent16b3506d1269f19de1299c83978fb0209da45571
addrconf: always initialize sysctl table data

Orabug: 23330541

[ Upstream commit 5449a5ca9bc27dd51a462de7ca0b1cd861cd2bd0 ]

When sysctl performs restrict writes, it allows to write from
a middle position of a sysctl file, which requires us to initialize
the table data before calling proc_dostring() for the write case.

Fixes: 3d1bec99320d ("ipv6: introduce secret_stable to ipv6_devconf")
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Tested-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 6866b52c56db189f8471a13f951221c45c0089c7)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/ipv6/addrconf.c