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 486CB3BFE3C; Thu, 15 Jan 2026 17:28:27 +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=1768498107; cv=none; b=FzhiAWoz1Ypi3HXs03gCvNrZjOvkC6VHXPuIQLUxZbPF1X/EdlwfDo60JhtNk8lnYzObEnEk+EfflT41uTDw2aHo+lLMTYFtqwHb+fmnsU82stxCr1LlJ+LlVGKEkAJPxLExuYWWXcFbm8y2sLoi8RGVYv/pNkVAgEh1O/ZtHYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768498107; c=relaxed/simple; bh=FS985oOkl/X8pPcasQ7IRXVFJ+GePShIWqoBeWCyZo4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a39JIflPWLrJ163jQDVhX3bb/le2Oag8gvONwi7DJiBy/sZEmhgW2uUDzhfaB6FVOVNWou1nkatpwkOw8boSHJ6q0kM4wMd6GWSOGMgs0QH8jmJatfwEvD+XUTM40v7JbB1YJqlCFQAVdp1MofziuNJspWueXgfWSBu9tlNSFTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UR5ChWhg; 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="UR5ChWhg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA760C116D0; Thu, 15 Jan 2026 17:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768498107; bh=FS985oOkl/X8pPcasQ7IRXVFJ+GePShIWqoBeWCyZo4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UR5ChWhgpxuClcW86qbjP787onkAbJlxPu3fcOY/k4TnLArh2QQqP5zMJ5N7YL9Iy dZx3eKVU0oXW97hV61VgfN8WIVrGozgWlYZLQu3VGmDPpBi//ZvdVuJN4KNBHvk5cF wTs4YVEeDKLOLncKGaScdKHdk6f2ePJD30QKRDTo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, John Warthog9 Hawley , "John W. Krahn" , Steven Rostedt Subject: [PATCH 5.15 282/554] ktest.pl: Fix uninitialized var in config-bisect.pl Date: Thu, 15 Jan 2026 17:45:48 +0100 Message-ID: <20260115164256.436434748@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164246.225995385@linuxfoundation.org> References: <20260115164246.225995385@linuxfoundation.org> User-Agent: quilt/0.69 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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steven Rostedt commit d3042cbe84a060b4df764eb6c5300bbe20d125ca upstream. The error path of copying the old config used the wrong variable in the error message: $ mkdir /tmp/build $ ./tools/testing/ktest/config-bisect.pl -b /tmp/build config-good /tmp/config-bad $ chmod 0 /tmp/build $ ./tools/testing/ktest/config-bisect.pl -b /tmp/build config-good /tmp/config-bad good cp /tmp/build//.config config-good.tmp ... [0 seconds] FAILED! Use of uninitialized value $config in concatenation (.) or string at ./tools/testing/ktest/config-bisect.pl line 744. failed to copy to config-good.tmp When it should have shown: failed to copy /tmp/build//.config to config-good.tmp Cc: stable@vger.kernel.org Cc: John 'Warthog9' Hawley Fixes: 0f0db065999cf ("ktest: Add standalone config-bisect.pl program") Link: https://patch.msgid.link/20251203180924.6862bd26@gandalf.local.home Reported-by: "John W. Krahn" Signed-off-by: Steven Rostedt Signed-off-by: Greg Kroah-Hartman --- tools/testing/ktest/config-bisect.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/testing/ktest/config-bisect.pl +++ b/tools/testing/ktest/config-bisect.pl @@ -741,9 +741,9 @@ if ($start) { die "Can not find file $bad\n"; } if ($val eq "good") { - run_command "cp $output_config $good" or die "failed to copy $config to $good\n"; + run_command "cp $output_config $good" or die "failed to copy $output_config to $good\n"; } elsif ($val eq "bad") { - run_command "cp $output_config $bad" or die "failed to copy $config to $bad\n"; + run_command "cp $output_config $bad" or die "failed to copy $output_config to $bad\n"; } }