]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf03647a90e7a4689c44c4d4c639af0855206b9d
treeefdc2ea5315d01fa10b2a7404e1562af9ab4dd57
parente26cedd7850baefca9d60a429fa5a68bbd57bf58
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