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=1795020909; b=NYSmcwIydJSgONhl8f3oD2+kD6C4Yy9pxZl0R4iAAH1clLzfd8W2uhqbkGjgaK1+6i23 4fAF/hffMETaUMVKOWpa0DnDaIW9eutR62ROrXRoLSilbZsNFJ/1FIJRCDs1+hnYuAFo/ lNZoyu67YfsKAl6BgquShalEPLYzOpu7iP4As+s2EJUFYMrs+EXMBWbNzGOJN0mPW9rVH KqAi2QB7G5KBY4fzsVweWTdt5ydu38giM5qcAJi0uMu9T8U7hBTBBNfnyJTzVnfAF0WMT zOAaQ+L7YFyCXq120Hb4rFy6KZpvnFkm3XLAzO7erroA+YWPGRi8UjdFl05NPkpc7gQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795020909; 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=ss8G/YMBPzsW1nc4JWtLvqOhnS0DZvXxX0JpiRvaC4A=; b=oji2yrvAiIN5+BrItp8Gq8CA0ka3BmICqHVhaTtExRTo6PSeYhKjOW6VSitzJlQjajiG ugtnu11Sio0h2ZBC1GzcsgNSAh2fpTMtxhbmKefG9mTVWRuJufJB8U2LtQjW9zG7ZfTuS fmMQitDSmfNDqfTo72kvI0uTFcDaqB3RiusYK1luvWNE3uzd2knPtQo0cNp0/UmC3KCci oT94lTdXGG2qfJ29U5pWEf5BANRR+fQVKpGZo6sQj3O++nJTH7HnHdabhnKDxGj9iwPkg GXi3HPpNEBLC3QTMyPhznXhTGgzKQudzOYtyqlVrEjuASwZcLrUK9DnafkuToYsG12g== 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=D7gETcPr; 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 E4676606A335; Wed, 18 Nov 2026 16:55:08 +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=D7gETcPr Received: by smtp.kernel.org (Postfix) with ESMTPSA id 424201F000C4; Wed, 18 Nov 2026 16:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795020908; bh=ss8G/YMBPzsW1nc4JWtLvqOhnS0DZvXxX0JpiRvaC4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=D7gETcPrCjHvLRtA9ftFpO3BxK55VU0gn/QxYCMMxzO1J92ssovaeoyPHeBgL2g7r ggnt1FaSKnvkY1XPEl6CJ9N95NVFu+8s1eW2TvRUjoceH6Wqr01ldOj3RVz1/9vEIE PGATClr6DtkrqfvhnSS4BCjQpp1ow0Gy6XaFn4ZE= 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 7.3 2119/2651] selftests: netfilter: fix return value in zone subtest Date: Wed, 18 Nov 2026 15:55:59 +0100 Message-ID: <20261118150402.213827962@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150247.972732815@linuxfoundation.org> References: <20261118150247.972732815@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 7.3-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