From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796381771; b=bRLtVfTYELY72bBfou2E+0hdvt6LgixPBRJsDtx4r8JNXbbQw79Q89nmWzQueKWBB9Dq pojjsL9HHTEKj53GpTAFEl5xPxlKXRp/O4LSQkDGJBBIzCIWr2tuLFTZrMSd7d8j3i0Ow 3BffqndOV42qwpp3Etly5QGsaiYZexfVN3uZ7eHKQoDe7hNV1cLcZEi/28+0p2ZzQx/ad pVwuypuJxddPX4pgXtfLn6elOSqpcTktJGo/menu4fE6JbA/3Og0ygYyFIyAX14GcLF4H bdUjW0iv6r9E2IeReYss08iVu4wPke2frowzaeGJLl2/WRO5g5YBJPnp512epOYSSUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381771; 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=6NKtg37DVMcapMqsdweNcASQSyOK5+zNNoYsEr627ik=; b=aoSCERKawvgnXPIPxE9vH9AH/Arfr6RspYvayiAzBjOXL4cGv2mW7e9y5C9mrf/g6P9Z L0fZn1sZZt2maispZzK4mfDINPf4PkZQ/R2Emw4VbSzJwFZvHJ7JpItfIiWY4NxbbmIxm s756HZfKPKGfDFQthN5gXs3IuiFezyRFabhWF93/lUnHjOY8huTLBEdCLD6ogaXyVpSJW +NDl5pV4Fia+MEEyDIcciqCUsw/K71WQ5lUcCAtyJrx5EOwqvdhzqGj9ySAL2jIGUSHZ0 UvdBTKD6D5nrP93B+4r3MKMR/eDiWmqF9qMAwTLVq8xXGoDcp7bJZOfC8F8+tsQ1D1w== 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=jh8uJgaq; 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 6C924606A332; Fri, 4 Dec 2026 10:56:11 +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=jh8uJgaq Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCC7C1F00897; Fri, 4 Dec 2026 10:56:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381771; bh=6NKtg37DVMcapMqsdweNcASQSyOK5+zNNoYsEr627ik=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jh8uJgaqnyHNpRfndJsQm1z9G+LeJqV4Ptt21n4XxEazhZ85QWTkPCXFp9hpIFs1t ZZtQ2eQ16NlZxeiRlSRVDOjTtP6nEAlCBXDdOSmmHplCHrPWxhlW9VH7Pc2j69roVL /tH4gJtFgkK4RxDqj4ytQUMadDFlFGxoAnRLVhrU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Gordeev , Heiko Carstens , Sasha Levin Subject: [PATCH 6.18 166/703] s390/cert_store: Initialize ism array in query_diag320_subcodes() Date: Fri, 4 Dec 2026 19:01:05 +0900 Message-ID: <20261204100632.301394467@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Carstens [ Upstream commit 2c1f57bce05244165f406e45982bbcd036071d3b ] The Installed Subcode Block returned by DIAG 320 subcode 0 may be smaller than the ism array. Initialize it to avoid copying uninitialized data to the debug area. Fixes: 8cf57d7217c3 ("s390: add support for user-defined certificates") Acked-by: Alexander Gordeev Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev Signed-off-by: Sasha Levin --- arch/s390/kernel/cert_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/cert_store.c b/arch/s390/kernel/cert_store.c index 6acec6d5ba604..d8f1c1cd6b1a2 100644 --- a/arch/s390/kernel/cert_store.c +++ b/arch/s390/kernel/cert_store.c @@ -663,7 +663,7 @@ static int add_certificates_to_keyring(struct vcssb *vcssb, struct key *keyring) */ static int query_diag320_subcodes(void) { - unsigned long ism[ISM_LEN_DWORDS]; + unsigned long ism[ISM_LEN_DWORDS] = {}; int rc; rc = diag320(0, ism); -- 2.53.0