From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB8151EA80; Tue, 11 Mar 2025 15:22:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741706528; cv=none; b=ejZfYwgE1YffEM2h1msorpNW0ix2Kv1iWiaEVMf03lKIKnInpMrDKeXhAgiCkamuD62nHK0Y/FAw91+ngBco1xRw633KRb2pX7uoum+Xm4gLWFmWdfSg54zVwMLF99hxSkVXPGIirMigO/+EsIq4OZpaqP4bLG+fCCsHa3QRjTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741706528; c=relaxed/simple; bh=K3jw3MNoNb2lLZwCTQvzH7VceHYgLIqa8GUQ1ErbyAQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DSHAMXoXiDWFN0iEfZ1+eY4/AYAASzZrIbXh4HuHl405EnPscrVP4cNAhHxLwgu3MlXBjQ/aZvArQJYl0uHoyar5B9epw1SifElffU6/qmryObTDXcSp8mXJktcJfTdDUGLk1VIn3jDg4u/fnJh+d2E6FLrX6k2bOvaFPAHJufY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uZmuJ43e; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uZmuJ43e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5365DC4CEE9; Tue, 11 Mar 2025 15:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741706528; bh=K3jw3MNoNb2lLZwCTQvzH7VceHYgLIqa8GUQ1ErbyAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uZmuJ43ecAg/54v5MdSJ7fGiFK7Fss5QQtSHixPy9nniXDlgLnhlh3HFbU98e+l5A fhIEI5a+x4yOBXUFzSm6Wx6n7hmK/QXa/QK6W2XEgh4ItFtlbDoAtL2iLwEUwzA+/S htS3jMZnE+6rr5I5tmeHs1gIcoU0gdo/jx2d62gE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marco Leogrande , Stanislav Fomichev , Alexei Starovoitov , Sasha Levin Subject: [PATCH 5.10 049/462] tools/testing/selftests/bpf/test_tc_tunnel.sh: Fix wait for server bind Date: Tue, 11 Mar 2025 15:55:15 +0100 Message-ID: <20250311145800.293134229@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250311145758.343076290@linuxfoundation.org> References: <20250311145758.343076290@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marco Leogrande [ Upstream commit e2f0791124a1b6ca8d570110cbd487969d9d41ef ] Commit f803bcf9208a ("selftests/bpf: Prevent client connect before server bind in test_tc_tunnel.sh") added code that waits for the netcat server to start before the netcat client attempts to connect to it. However, not all calls to 'server_listen' were guarded. This patch adds the existing 'wait_for_port' guard after the remaining call to 'server_listen'. Fixes: f803bcf9208a ("selftests/bpf: Prevent client connect before server bind in test_tc_tunnel.sh") Signed-off-by: Marco Leogrande Acked-by: Stanislav Fomichev Link: https://lore.kernel.org/r/20241202204530.1143448-1-leogrande@google.com Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/test_tc_tunnel.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/test_tc_tunnel.sh b/tools/testing/selftests/bpf/test_tc_tunnel.sh index 21bde60c95230..e42d8959cbf1c 100755 --- a/tools/testing/selftests/bpf/test_tc_tunnel.sh +++ b/tools/testing/selftests/bpf/test_tc_tunnel.sh @@ -286,6 +286,7 @@ else client_connect verify_data server_listen + wait_for_port ${port} ${netcat_opt} fi # bpf_skb_net_shrink does not take tunnel flags yet, cannot update L3. -- 2.39.5