)]}'
{
  "commit": "731abb9cb27aef6013ce60808a04e04a545f3f4e",
  "tree": "fc848c456d3db3bc92c085dc0dea7dbcc22f6b61",
  "parents": [
    "898bdf2cb43eb0a962c397eb4dd1aec2c7211be2"
  ],
  "author": {
    "name": "Josh Boyer",
    "email": "jwboyer@redhat.com",
    "time": "Thu Nov 10 15:10:23 2011 +0000"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Mon Nov 14 00:24:06 2011 -0500"
  },
  "message": "ip6_tunnel: copy parms.name after register_netdevice\n\nCommit 1c5cae815d removed an explicit call to dev_alloc_name in ip6_tnl_create\nbecause register_netdevice will now create a valid name.  This works for the\nnet_device itself.\n\nHowever the tunnel keeps a copy of the name in the parms structure for the\nip6_tnl associated with the tunnel.  parms.name is set by copying the net_device\nname in ip6_tnl_dev_init_gen.  That function is called from ip6_tnl_dev_init in\nip6_tnl_create, but it is done before register_netdevice is called so the name\nis set to a bogus value in the parms.name structure.\n\nThis shows up if you do a simple tunnel add, followed by a tunnel show:\n\n[root@localhost ~]# ip -6 tunnel add remote fec0::100 local fec0::200\n[root@localhost ~]# ip -6 tunnel show\nip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\nip6tnl%d: ipv6/ipv6 remote fec0::100 local fec0::200 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)\n[root@localhost ~]#\n\nFix this by moving the strcpy out of ip6_tnl_dev_init_gen, and calling it after\nregister_netdevice has successfully returned.\n\nCc: stable@vger.kernel.org\nSigned-off-by: Josh Boyer \u003cjwboyer@redhat.com\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bdc15c9003d781fbdb3d0288cf8b88aa84f71742",
      "old_mode": 33188,
      "old_path": "net/ipv6/ip6_tunnel.c",
      "new_id": "4e2e9ff67ef29701d4add34b20a63559aa950b4f",
      "new_mode": 33188,
      "new_path": "net/ipv6/ip6_tunnel.c"
    }
  ]
}
