ipv6,gre: do not leak info to user-space
authorAmerigo Wang <amwang@redhat.com>
Thu, 9 May 2013 21:56:37 +0000 (21:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 May 2013 00:40:14 +0000 (17:40 -0700)
commit5dbd5068430b8bd1c19387d46d6c1a88b261257f
treeefdc2ea5315d01fa10b2a7404e1562af9ab4dd57
parentd34710e3e30fee26f4b0617b5458aa1c48236bb0
ipv6,gre: do not leak info to user-space

There is a hole in struct ip6_tnl_parm2, so we have to
zero the struct on stack before copying it to user-space.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c