Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795027330; b=HZDnau3u9ohEQMKBx4CPNsvPY42JXGZrumA1fRG65p2MyWHL7cXPVHeLSyDF+EnJc33/ NER5F40BJteDp1Bm7N5L1OqwDx6JOoUgzfLb8lPF/mO9F99aQ2ZtdVzVTouod0UR78f9W ohAZ0GpzV8X29UTVPLIRvhabPtu4YY/4q/M6BL3gBY/k5ewKTQWQ+4cnV9xrpFyqzmZLE Bufyj4c8vPe8EJklMRXkde7q19N+F5VcFGpJpa4OPloYuQgCByxXq47Vnwtt6ijrQ0cOU Jpxjch0xpdlmxu91eBslXF03RbbT9SkUHWNdwY9fOwK6CyNDjm+VxW63aRxYvKZVqvg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795027330; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=8Lkes+B5hch/jWH5/f7OOIq/Qgb3yY5e1wR+9U0seAU=; b=vTxRC9vqjDiEwXsAi/czzMS9Tt/+c1mgkXaBA8O8rtKIegwKes+JdoPyxGocwBIQ/fHF 1T2iCEvq7qnXFxZFQKeb06Qo3YR2VYL7oPbz86cjjEweYCzpZ8bXf8khajGZlBgHZKC1O fIIXs/yvyX9+xUlP4PPwu9DizDtuvqT3psFN6gTJ8xy8Pn6arGg3KNiRqSXdCNNVcE1Qc VQBdYn4WYqmlWIL1NJGn84PeykzJaurPxIZeFO+xRvGGgWjG0IeEqXwR4AUPcOtKKQbMe Hf6b3pWdbYTbHVRbU+SarSWObO43RM6ujP5/sIjuOCPn1ycPoh7TcP7kp7Ny7I54fgQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=b0a89NhX; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73E56606A330; Wed, 18 Nov 2026 18:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=b0a89NhX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D9C21F000C4; Wed, 18 Nov 2026 18:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795027330; bh=8Lkes+B5hch/jWH5/f7OOIq/Qgb3yY5e1wR+9U0seAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=b0a89NhXmSJj/CTaYi5JJRp/FHcMVmYVRPHWwa0/NiA2skvo/qRKjqZAve4QRWckq 3oU15veEyU6sCsLvmDHzgsuFr8ENuvw8v0RVqzNsblwR1zsBiobrvUk8A/fneWHYGl tq2qMo/f/EvSIQocKiE5EeMZMh+kMDVF7Z8CQzk0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Florian Westphal , Fernando Fernandez Mancera , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 6.18 1734/2151] selftests: netfilter: fix return value in zone subtest Date: Wed, 18 Nov 2026 15:57:49 +0100 Message-ID: <20261118150225.031039591@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150121.603863898@linuxfoundation.org> References: <20261118150121.603863898@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Westphal [ Upstream commit a20a01ae89813ef493dc416d69f2b2ad17afb54c ] zone subtest prints FAIL, but did not set 'ret=1', so kselftest framework reports success. While at it, also fail when "nft -f" returns an error. Noticed thanks to a (broken) local patch that should have caused this selftest (resp. the kselftest framework) to report a failure. Fixes: 33b8aad21ac1 ("selftests: netfilter: add a vrf+conntrack testcase") Signed-off-by: Florian Westphal Reviewed-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- .../selftests/net/netfilter/conntrack_vrf.sh | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/net/netfilter/conntrack_vrf.sh b/tools/testing/selftests/net/netfilter/conntrack_vrf.sh index 207b79932d91a..2dbfabaadf4bd 100755 --- a/tools/testing/selftests/net/netfilter/conntrack_vrf.sh +++ b/tools/testing/selftests/net/netfilter/conntrack_vrf.sh @@ -84,7 +84,7 @@ busywait $BUSYWAIT_TIMEOUT listener_ready "$ns1" # as decided by the first iteration of the ruleset. test_ct_zone_in() { -ip netns exec "$ns0" nft -f - < /dev/null # should be in zone 1, not zone 2 @@ -113,6 +119,7 @@ EOF echo "PASS: entry found in conntrack zone 1" else echo "FAIL: entry not found in conntrack zone 1" + ret=1 count=$(ip netns exec "$ns0" conntrack -L -s $IP1 -d $IP0 -p icmp --zone 2 2> /dev/null | wc -l) if [ "$count" -eq 1 ]; then echo "FAIL: entry found in zone 2 instead" @@ -137,7 +144,7 @@ test_masquerade_vrf() ip netns exec "$ns0" conntrack -F 2>/dev/null -ip netns exec "$ns0" nft -f - < /dev/null;then echo "FAIL: connect failure with masquerade + sport rewrite on vrf device" ret=1 @@ -184,7 +197,7 @@ EOF test_masquerade_veth() { ip netns exec "$ns0" conntrack -F 2>/dev/null -ip netns exec "$ns0" nft -f - < /dev/null;then echo "FAIL: connect failure with masquerade + sport rewrite on veth device" ret=1 -- 2.53.0