TO: Erik Kline <[email protected]>
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: a77f9c5dcdf8480a93332792c336fa2bf9d31229
commit: 7fd2561e4ebdd070ebba6d3326c4c5b13942323f [52/188] net: ipv6: Add a
sysctl to make optimistic addresses useful candidates
:::::: branch date: 2 hours ago
:::::: commit date: 2 weeks ago
net/ipv6/addrconf.c:330 ipv6_add_dev() error: __builtin_memcpy()
'dev_net(dev)->ipv6.devconf_dflt' too small (140 vs 144)
git remote add net-next
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git remote update net-next
git checkout 7fd2561e4ebdd070ebba6d3326c4c5b13942323f
vim +330 net/ipv6/addrconf.c
a317a2f1 WANG Cong 2014-07-25 314 int err = -ENOMEM;
^1da177e Linus Torvalds 2005-04-16 315
^1da177e Linus Torvalds 2005-04-16 316 ASSERT_RTNL();
^1da177e Linus Torvalds 2005-04-16 317
^1da177e Linus Torvalds 2005-04-16 318 if (dev->mtu < IPV6_MIN_MTU)
a317a2f1 WANG Cong 2014-07-25 319 return ERR_PTR(-EINVAL);
^1da177e Linus Torvalds 2005-04-16 320
322f74a4 Ingo Oeser 2006-03-20 321 ndev = kzalloc(sizeof(struct
inet6_dev), GFP_KERNEL);
322f74a4 Ingo Oeser 2006-03-20 322 if (ndev == NULL)
a317a2f1 WANG Cong 2014-07-25 323 return ERR_PTR(err);
^1da177e Linus Torvalds 2005-04-16 324
^1da177e Linus Torvalds 2005-04-16 325 rwlock_init(&ndev->lock);
^1da177e Linus Torvalds 2005-04-16 326 ndev->dev = dev;
502a2ffd stephen hemminger 2010-03-17 327
INIT_LIST_HEAD(&ndev->addr_list);
b7b1bfce Hannes Frederic Sowa 2013-06-23 328 setup_timer(&ndev->rs_timer,
addrconf_rs_timer,
b7b1bfce Hannes Frederic Sowa 2013-06-23 329 (unsigned
long)ndev);
c346dca1 YOSHIFUJI Hideaki 2008-03-25 @330 memcpy(&ndev->cnf,
dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf));
^1da177e Linus Torvalds 2005-04-16 331 ndev->cnf.mtu6 = dev->mtu;
^1da177e Linus Torvalds 2005-04-16 332 ndev->cnf.sysctl = NULL;
^1da177e Linus Torvalds 2005-04-16 333 ndev->nd_parms =
neigh_parms_alloc(dev, &nd_tbl);
^1da177e Linus Torvalds 2005-04-16 334 if (ndev->nd_parms == NULL) {
^1da177e Linus Torvalds 2005-04-16 335 kfree(ndev);
a317a2f1 WANG Cong 2014-07-25 336 return ERR_PTR(err);
^1da177e Linus Torvalds 2005-04-16 337 }
0187bdfb Ben Hutchings 2008-06-19 338 if (ndev->cnf.forwarding)
:::::: The code at line 330 was first introduced by commit
:::::: c346dca10840a874240c78efe3f39acf4312a1f2 [NET] NETNS: Omit
net_device->nd_net without CONFIG_NET_NS.
:::::: TO: YOSHIFUJI Hideaki <[email protected]>
:::::: CC: YOSHIFUJI Hideaki <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
_______________________________________________
kbuild mailing list
[email protected]
https://lists.01.org/mailman/listinfo/kbuild