Skip to content

Commit c7223d6

Browse files
lmcjomadavem330
authored andcommitted
tipc: rate limit warning for received illegal binding update
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: b97bf3f ("[TIPC] Initial merge") Signed-off-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bc1c3c3 commit c7223d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/tipc/name_distr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static bool tipc_update_nametbl(struct net *net, struct distr_item *i,
313313
pr_warn_ratelimited("Failed to remove binding %u,%u from %u\n",
314314
ua.sr.type, ua.sr.lower, node);
315315
} else {
316-
pr_warn("Unrecognized name table message received\n");
316+
pr_warn_ratelimited("Unknown name table message received\n");
317317
}
318318
return false;
319319
}

0 commit comments

Comments
 (0)