]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
tipc: rate limit warning for received illegal binding update
authorJon Maloy <jmaloy@redhat.com>
Wed, 9 Feb 2022 03:22:37 +0000 (22:22 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 14 Apr 2022 09:32:06 +0000 (11:32 +0200)
BugLink: https://bugs.launchpad.net/bugs/1966118
[ Upstream commit c7223d687758462826a20e9735305d55bb874c70 ]

It would be easy to craft a message containing an illegal binding table
update operation. This is handled correctly by the code, but the
corresponding warning printout is not rate limited as is should be.
We fix this now.

Fixes: b97bf3fd8f6a ("[TIPC] Initial merge")
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/tipc/name_distr.c

index 836e629e8f4ab8e1932c04c2f5056595a507313a..661bc2551a0a2480908cb5be62ed3667c4b6f5ba 100644 (file)
@@ -290,7 +290,7 @@ static bool tipc_update_nametbl(struct net *net, struct distr_item *i,
                pr_warn_ratelimited("Failed to remove binding %u,%u from %x\n",
                                    type, lower, node);
        } else {
-               pr_warn("Unrecognized name table message received\n");
+               pr_warn_ratelimited("Unknown name table message received\n");
        }
        return false;
 }