Re: [PATCH net 3/6] ipv6: sit: 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: 1da177e4c3f4 Linux-2.6.12-rc2. The bot has also determined it's probably a bug fixing patch. (score: 53.2877) The bot has tested the following trees: v4.16, v4.15.15, v4.14.32, v4.

[PATCH net 3/6] ipv6: sit: 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 ipip6_tunnel_locate+0x63b/0xaa0 net/ipv6/sit.c:254 Write of size 33 at