Centos-kernel-stream-9/net/mpls
Guillaume Nault 7f437657a6 mpls: Handle error of rtnl_register_module().
JIRA: https://issues.redhat.com/browse/RHEL-85646
Upstream Status: linux.git
Conflicts: Missing upstream commit e0f89d2864b0 ("mpls: no longer hold
           RTNL in mpls_netconf_dump_devconf()"):
           mpls_netconf_dump_devconf() still depend on rtnl lock in
           Centos Stream 9. Therefore we can't use the
           RTNL_FLAG_DUMP_UNLOCKED flag.

commit 5be2062e3080e3ff6707816caa445ec0c6eaacf7
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date:   Tue Oct 8 11:47:36 2024 -0700

    mpls: Handle error of rtnl_register_module().

    Since introduced, mpls_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: 03c0566542 ("mpls: Netlink commands to add, remove, and dump routes")
    Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Signed-off-by: Guillaume Nault <gnault@redhat.com>
2025-04-01 14:56:36 +02:00
..
Kconfig
Makefile
af_mpls.c mpls: Handle error of rtnl_register_module(). 2025-04-01 14:56:36 +02:00
internal.h
mpls_gso.c net: move gso declarations and functions to their own files 2023-10-11 13:35:27 +02:00
mpls_iptunnel.c mpls: Reduce skb re-allocations due to skb_cow() 2024-09-02 11:43:14 +02:00