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 ECEAE355024; Tue, 6 Jan 2026 17:23:23 +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=1767720204; cv=none; b=mHvwXbleDSsze3WhpSo5WlhpoPWoVicpCEub7MAKsJiHjq/OWrWQfraq/fcXQdzFPhiT6UOXlh6TaQqJMF0KM0Bbe3O2eLZN3pazfZo9iIH934YlCO0YbMSmudr8bSxqMMQn7AKkMfTGsF1Iiv09Fm3DJ1KR/J+fUnWLvHdQ8R0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767720204; c=relaxed/simple; bh=Pi9hcJv0k1or5uPPcVzbrs8ZKigoQTLIrFlQsKVREK0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aS71Jz6iGhDaLvZi59F6RtaxdqCZhxRzYx3OyiHVS7Enj8lgX9iomV3SoYUipmnnUo7xU1tDQyBExhvZdgRFHLi/9ih8r7rXnqWnINRz4ODRzw+7CbcTP/sb+0ocOWtR/wakGP0DIxvsALPeoPGMUE1AszsMsuSAHQHQGvkcBJ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CmNY0AZj; 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="CmNY0AZj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5215CC116C6; Tue, 6 Jan 2026 17:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767720203; bh=Pi9hcJv0k1or5uPPcVzbrs8ZKigoQTLIrFlQsKVREK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CmNY0AZjRjeCokprYcNs8IV9Cagg08afnZwiZgD6GG7jYQ4tqzRTswPOUySrdJ3zR NGXxNcV2tbYVpUIKIDWSygysYDoT9wJ5okquJHj6QodogBu3EDWiNZBgIjI7Fr51SI 41/ycKpIJ5WJJ0y8U9pNFcVF4N6c78oV7zWKu2s8= 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 6.12 165/567] ktest.pl: Fix uninitialized var in config-bisect.pl Date: Tue, 6 Jan 2026 17:59:07 +0100 Message-ID: <20260106170457.430043945@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260106170451.332875001@linuxfoundation.org> References: <20260106170451.332875001@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 6.12-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"; } }