]> git.baikalelectronics.ru Git - kernel.git/commit
net: ip_gre: Accept IFLA_INFO_DATA-less configuration
authorPetr Machata <petrm@mellanox.com>
Mon, 16 Mar 2020 17:53:00 +0000 (19:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2020 00:19:56 +0000 (17:19 -0700)
commit2ae2001036f75481b744e37960ce2b8e64ee893e
tree248d64fff9e080d57e52b46436af66155a5f0a6f
parent196ad27bdf83c66bef110edbb8188f3c5a4e4e7e
net: ip_gre: Accept IFLA_INFO_DATA-less configuration

The fix referenced below causes a crash when an ERSPAN tunnel is created
without passing IFLA_INFO_DATA. Fix by validating passed-in data in the
same way as ipgre does.

Fixes: 60f0595fdbc4 ("net: ip_gre: Separate ERSPAN newlink / changelink callbacks")
Reported-by: syzbot+1b4ebf4dae4e510dd219@syzkaller.appspotmail.com
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c