From 019125d86d5e16d43379082257856d940b37d400 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 15 Apr 2026 17:02:40 -0700 Subject: [PATCH] Don't swallow invalid message error A malformed message encountered here increases the counter, but doesn't tear down the connection because of the nested for loops. The comments indicate that that is the expected behavior - a misbehaving client should not be tolerated. Signed-off-by: Auke Kok --- kmod/src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/net.c b/kmod/src/net.c index f2bec750..b028d7c8 100644 --- a/kmod/src/net.c +++ b/kmod/src/net.c @@ -804,7 +804,7 @@ static void scoutfs_net_recv_worker(struct work_struct *work) if (invalid_message(conn, nh)) { scoutfs_inc_counter(sb, net_recv_invalid_message); ret = -EBADMSG; - break; + goto out; } data_len = le16_to_cpu(nh->data_len);