Skip to contentSkip to conversation

tipc: rate limit warning for received illegal binding update

PATCH Applied [email protected] 2 participants 2 messages Feb 9, 2022

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH v2 1/1 tipc: rate limit warning for received illegal binding update

From: Jon Maloy <[email protected]>

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")

---
v2: Added 'Fixes' line in commit log

---
 net/tipc/name_distr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/name_distr.c +1 -1
index bda902caa814..8267b751a526 100644
@@ -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;
 }
Signature · 1 line
2.31.1
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Tue, 8 Feb 2022 22:22:37 -0500 you wrote:

From: Jon Maloy <[email protected]>

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.

[...]

Here is the summary with links:
- [net,v2] tipc: rate limit warning for received illegal binding update

    https://git.kernel.org/netdev/net/c/c7223d687758

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html