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=1795032456; b=SFlCCORxhu1drx7KkoPxzVEBxSR4cqdBr3qYMrC3VnltdgElD62o8YDyKswUlcTyV/Go 2aJzH3r4rO696GJh7lIAFFirReebkiPbDCp8DUIKYzVWBg/XsdejUS9nHAVGIqoD201Yq weZCpbSa1mFYTX0COUwmWn1fO8r9EqE/kVb6N/tHBVEg0buhvRQoy64MgAXeSwgGor49B ZUfgPhU898eYVpmvOwYf2Qw+6Xqwkqo58QnHTnM0zQ/7PVGbFzmb20HqM3HGn2H/6x5Qu MPJNTVHoCdS6y+QZoSzFz9hYNnrW4UT8z/eIlO81yAIX9vLc4N8oPhcWl7eku5emdUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795032456; 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=pcHrWUFuooF/aD+i+aEt9pU8g6bYNRFT/tHW/fnBsNs=; b=5tiH5uKATFUvb68IFWdUIAIXkHfXmyDcMdQsTUMba+bc9ZE/STWd4bozyNA15Y81rdW0 fBlyIYHISDTMO0KYZ20iuk8ppTi3Cifn6TUQRm3fM+7nVWgUfdy1yXS4NuY6t4sQZzSSY Iyjxe4kc3lq/dn93rfwWoVFZUbfpYO/rhdRZmbbdNPGknxnCPSg23tjMj7eHXHMVp/bkF UJ5s1OhL7PMlBRoXMC/tQFQwdkKFs+hzFVTZR5/6Cc8z8zBe663NuHfKxfPOXAg09RQEB Kru4rXTywjtWQuJhktbc4cOBhm1HsOyaFR3PX4Wjtlcj0h+GogETgoIDVbSSfTU3TSw== 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=FHh6fRiY; 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 47E3B6073D83; Wed, 18 Nov 2026 20:07:36 +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=FHh6fRiY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 587FC1F000C4; Wed, 18 Nov 2026 20:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795032455; bh=pcHrWUFuooF/aD+i+aEt9pU8g6bYNRFT/tHW/fnBsNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FHh6fRiYKkBPF7YMw0GWPKjekQToElixwFgXjkxAx+PTdff6ttl6GXiktVZ8TGEFo JERGj4t2m8xjgPD7rnxjgUO/EqrIB3Lj7evbDt3snSSOYfsBpRtyz396KnJsWBGt21 7kjSRG2HthL3SbAAIcv8RKy3m9b1IVclMqB0W2Fs= 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.12 1376/1756] selftests: netfilter: fix return value in zone subtest Date: Wed, 18 Nov 2026 15:58:23 +0100 Message-ID: <20261118150103.985834481@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150007.957976754@linuxfoundation.org> References: <20261118150007.957976754@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.12-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 e95ecb37c2b14..7c3642acf460f 100755 --- a/tools/testing/selftests/net/netfilter/conntrack_vrf.sh +++ b/tools/testing/selftests/net/netfilter/conntrack_vrf.sh @@ -95,7 +95,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 @@ -124,6 +130,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" @@ -148,7 +155,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 @@ -195,7 +208,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