Re: [PATCH net 4/6] ip6_gre: better validate user provided tunnel names

2018-04-08 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: c12b395a4664 gre: Support GRE over IPv6. The bot has also determined it's probably a bug fixing patch. (score: 52.9896) The bot has tested the following trees: v4.16, v4.15.15, v4.

[PATCH net 4/6] ip6_gre: better validate user provided tunnel names

2018-04-05 Thread Eric Dumazet
Use dev_valid_name() to make sure user does not provide illegal device name. syzbot caught the following bug : BUG: KASAN: stack-out-of-bounds in strlcpy include/linux/string.h:300 [inline] BUG: KASAN: stack-out-of-bounds in ip6gre_tunnel_locate+0x334/0x860 net/ipv6/ip6_gre.c:339 Write of size 2