]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: better validate user provided tunnel names
authorEric Dumazet <edumazet@google.com>
Thu, 5 Apr 2018 13:39:30 +0000 (06:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Apr 2018 19:16:15 +0000 (15:16 -0400)
commita38b47d9f0f8d7e94a068dbd9ce43d797d291730
tree08760c2cc85ab1d65a4a8ac1c1c22d490d27325a
parent40099b723cbaf7216ad5da9dde22e73782ea15a3
ip6_tunnel: better validate user provided tunnel names

Use valid_name() to make sure user does not provide illegal
device name.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c