linux/drivers/net/vxlan
Kuniyuki Iwashima 78b7b99183 vxlan: Handle error of rtnl_register_module().
Since introduced, vxlan_vnifilter_init() has been ignoring the
returned value of rtnl_register_module(), which could fail silently.

Handling the error allows users to view a module as an all-or-nothing
thing in terms of the rtnetlink functionality.  This prevents syzkaller
from reporting spurious errors from its tests, where OOM often occurs
and module is automatically loaded.

Let's handle the errors by rtnl_register_many().

Fixes: f9c4bb0b24 ("vxlan: vni filtering support on collect metadata device")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-10 15:39:35 +02:00
..
Makefile
vxlan_core.c vxlan: Handle error of rtnl_register_module(). 2024-10-10 15:39:35 +02:00
vxlan_mdb.c
vxlan_multicast.c
vxlan_private.h vxlan: Handle error of rtnl_register_module(). 2024-10-10 15:39:35 +02:00
vxlan_vnifilter.c vxlan: Handle error of rtnl_register_module(). 2024-10-10 15:39:35 +02:00