Re: [PATCH net 2/6] ip_tunnel: 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: c54419321455 GRE: Refactor GRE tunneling code.. The bot has also determined it's probably a bug fixing patch. (score: 46.6256) The bot has tested the following trees: v4.16, v4.15.

[PATCH net 2/6] ip_tunnel: 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 __ip_tunnel_create+0xca/0x6b0 net/ipv4/ip_tunnel.c:257 Write of size 20