summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Maloy <jmaloy@redhat.com>2022-02-08 22:22:37 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-16 12:51:46 +0100
commit7b4ba5427c4ea716f73af01b0324209909822485 (patch)
treed16aacdea1c1b02b3db3f5b6a154597771fde331
parent8f0ea3777590c16222d4251a49e31dd376ff5ac1 (diff)
downloadlinux-stable-7b4ba5427c4ea716f73af01b0324209909822485.tar.gz
linux-stable-7b4ba5427c4ea716f73af01b0324209909822485.tar.bz2
linux-stable-7b4ba5427c4ea716f73af01b0324209909822485.zip
tipc: rate limit warning for received illegal binding update
[ 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>
-rw-r--r--net/tipc/name_distr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/name_distr.c b/net/tipc/name_distr.c
index 836e629e8f4a..661bc2551a0a 100644
--- a/net/tipc/name_distr.c
+++ b/net/tipc/name_distr.c
@@ -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;
}