Skip to content
Commit 5e587a6e authored by Petr Machata's avatar Petr Machata Committed by Paul Gortmaker
Browse files

net: ip_gre: Accept IFLA_INFO_DATA-less configuration



commit 32ca98fe upstream.

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: e1f8f78f ("net: ip_gre: Separate ERSPAN newlink / changelink callbacks")
Reported-by: default avatar <syzbot+1b4ebf4dae4e510dd219@syzkaller.appspotmail.com>
Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent d0deee43
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment