]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: rtnetlink: address is mandatory for rtnl_fdb_get
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sun, 30 Dec 2018 12:33:20 +0000 (14:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Dec 2018 19:35:36 +0000 (11:35 -0800)
commitf989d03ef25df3fc26d3ea0fe7c19c9830577166
tree949313d43808a2f758ea52cf82c072e6988f2769
parentf7d18ef6a95f399544d7b767291980cecddc32eb
net: rtnetlink: address is mandatory for rtnl_fdb_get

We must have an address to lookup otherwise we'll derefence a null
pointer in the ndo_fdb_get callbacks.

CC: Roopa Prabhu <roopa@cumulusnetworks.com>
CC: David Ahern <dsa@cumulusnetworks.com>
Reported-by: syzbot+017b1f61c82a1c3e7efd@syzkaller.appspotmail.com
Fixes: 5b2f94b27622 ("net: rtnetlink: support for fdb get")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c