]> Git Repo - linux.git/commit
vxlan: Handle error of rtnl_register_module().
authorKuniyuki Iwashima <[email protected]>
Tue, 8 Oct 2024 18:47:33 +0000 (11:47 -0700)
committerPaolo Abeni <[email protected]>
Thu, 10 Oct 2024 13:39:35 +0000 (15:39 +0200)
commit78b7b991838a4a6baeaad934addc4db2c5917eb8
tree429cce9636b94c8216fd4b1713d246e2f14a4700
parent07cc7b0b942bf55ef1a471470ecda8d2a6a6541f
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: f9c4bb0b245c ("vxlan: vni filtering support on collect metadata device")
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
drivers/net/vxlan/vxlan_core.c
drivers/net/vxlan/vxlan_private.h
drivers/net/vxlan/vxlan_vnifilter.c
This page took 0.05466 seconds and 4 git commands to generate.