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 30C1F3E95B9; Thu, 15 Jan 2026 17:50:30 +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=1768499431; cv=none; b=eXRK4FRBdZ4u4s17hfmmWWMLPadV+Zih7ysGFVvDD2c+i0Xy6kvaXHZMWthAxdpBpbAmAwtEYZIjedlc2OVKTQeycRkbzeqEbm/VeZP9OweSmsWoGX9MwksI/qVdAlmjNuFbk0ba5/6m0Ptjai/QmvkZ7lFAh9ICnZ7tsa6yWD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768499431; c=relaxed/simple; bh=9/mi+LKkxdPXzSpcEkZQbsE+kxmvHNSP0buoCyl6LBI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KNuPKOEVi1c8q8xxxbOV5gpUhT6nDAEpOmJmT9ILwAcUV1j97DSZ0Robgn2WMl4pqTnV+cy19tvJeU0wSdts6EMhuYTMlMYb9Uhf8jHn8d3IrcXjHgwSFaTx6PgJloQM7MVRV7BBUyZiwSbYV5KZAlX4SWP3aVa8qVL53GVgptA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g8NiZev0; 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="g8NiZev0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E57DC19423; Thu, 15 Jan 2026 17:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768499430; bh=9/mi+LKkxdPXzSpcEkZQbsE+kxmvHNSP0buoCyl6LBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g8NiZev0mJ2PNgePKhU95NJmrPLborOZKrMONVAUWCXFYb7oEf01Axyam7XeDIJsy 8QY0Am07WVCJDQaxRefMFpyR0GzVHMtAdvNWlkfZr/hfWHESeMV9X9txeLNjpNx4CT aAkNiFbe9nv58BkK6e5/FemD6CMLxWvkWoyAx2dg= 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.10 224/451] ktest.pl: Fix uninitialized var in config-bisect.pl Date: Thu, 15 Jan 2026 17:47:05 +0100 Message-ID: <20260115164239.000522289@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164230.864985076@linuxfoundation.org> References: <20260115164230.864985076@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.10-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"; } }