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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:54:26 +0000 (12:54 +0100)
commit657aea782887f6a55d6e2ad6ce82d8425b2e5bab
tree7336ef7eced7688f96ff3f0c3e2911417837831c
parentef5cdae8bc00c37317b5375811457a6b46f8440b
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>
net/tipc/name_distr.c