]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 12:48:22 +0000 (12:48 +0000)
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: 082dc377e86b ("[TIPC] Initial merge")
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_distr.c

index bda902caa81475bcd758cfa36cb259986fca9f1c..8267b751a526a4dc30062e5e9b38da92bc97266e 100644 (file)
@@ -313,7 +313,7 @@ static bool tipc_update_nametbl(struct net *net, struct distr_item *i,
                pr_warn_ratelimited("Failed to remove binding %u,%u from %u\n",
                                    ua.sr.type, ua.sr.lower, node);
        } else {
-               pr_warn("Unrecognized name table message received\n");
+               pr_warn_ratelimited("Unknown name table message received\n");
        }
        return false;
 }