Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3333733yba; Mon, 6 May 2019 22:40:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1uPI9sBa1YrjSCCf7JXBhEwOAC3xklV2ezolGJoj8GgairbPZHiYqO6Y863CQAg16e2pw X-Received: by 2002:a62:6dc6:: with SMTP id i189mr31972321pfc.155.1557207606652; Mon, 06 May 2019 22:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557207606; cv=none; d=google.com; s=arc-20160816; b=Msga/NCqo6QmwectlgJ2hwhqZnBEa2LE3LtEdaDbngn4aJNK4cEeX5lF9+ptzC8rBW ITayv/mLolzngtQm7vPNXhfeCOVzcNmUcVJW5GOTQnc7W8ws379KH+rr64wlal1brky1 xait3WRRlOCivhEaDqjJRYsXXIU21fV3jUvOqc+Ulrz7xE5QBP3p5M16yvMH6T58a63C R/T/BL8RaR18CgeTWwxpS9D7Xgu9iXXfcXPbgLgMmCCVXhf1oBJgz1wGjqh4+xuxml0j NGaPqrr5oYhiuyrtqbj0FsvCoCSl9+H666j1ZwLygYpEkRDCy+7K5Zo/N9y1RvnNSzio n+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eCFEDBcRaWfBKZg12skWC+7AZATXssKzF0HfCgFuGSM=; b=e37+5dM0Qajn+847GRC9Z1sG2O0cPtanbuoVM6BFAXSivjmyHZtG3xl7LhbRPNTVrR WAtoqcQOskFlqAZ6KViQlMpqaCnd7wzclMuA9FYGWpU/x4Qbge85Z8KkZLbbSmMCe5Rr TwFMYyNFElL1zR8zLgD4UoLAXoQiyGVyGHqdwLy6zR/3YJnyw2AjRYuD4vruZy0wxv0I Z/B46pbgvPjB++Zd/aM/FZZtjy1xnXGczcviixHwSuZhlOa4FkuMwsRJHjyk0aMNgbsS GkAYTGuRBVpjJalK3/wIWcAl9EwqLy6yNPykkVd2+MTb0pHdy6eccexay8j3PgKteT28 1PzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vLQpS8e1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si18327016plb.282.2019.05.06.22.39.51; Mon, 06 May 2019 22:40:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vLQpS8e1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728788AbfEGFjD (ORCPT + 99 others); Tue, 7 May 2019 01:39:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:58602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727853AbfEGFi4 (ORCPT ); Tue, 7 May 2019 01:38:56 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E9F6620B7C; Tue, 7 May 2019 05:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557207535; bh=M9+lZ3D4y2h/UNEc0bB4GulpxOuPcqh6SNi4x/szEto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vLQpS8e1e064JoDqRSpTkf0ERUBG65ShGaC5I50HLJfuVovuvDebNvA6XTE6ytxfl bkiSYy8/DQtNIJ2dlWNiQSYMe9/iG0j3jrbJJgyLdTRgjabtVFAo2YcpJC+CYdz7oR SyUn8Dp77nR9QBOtPaVHV6cPJQ8I9qGsO128qVNU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Harald Freudenberger , Christian Rund , Martin Schwidefsky , Sasha Levin , linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 16/95] s390/pkey: add one more argument space for debug feature entry Date: Tue, 7 May 2019 01:37:05 -0400 Message-Id: <20190507053826.31622-16-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190507053826.31622-1-sashal@kernel.org> References: <20190507053826.31622-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Harald Freudenberger [ Upstream commit 6b1f16ba730d4c0cda1247568c3a1bf4fa3a2f2f ] The debug feature entries have been used with up to 5 arguents (including the pointer to the format string) but there was only space reserved for 4 arguemnts. So now the registration does reserve space for 5 times a long value. This fixes a sometime appearing weired value as the last value of an debug feature entry like this: ... pkey_sec2protkey zcrypt_send_cprb (cardnr=10 domain=12) failed with errno -2143346254 Signed-off-by: Harald Freudenberger Reported-by: Christian Rund Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin --- drivers/s390/crypto/pkey_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/s390/crypto/pkey_api.c b/drivers/s390/crypto/pkey_api.c index f61fa47135a6..bd0376dc7e1e 100644 --- a/drivers/s390/crypto/pkey_api.c +++ b/drivers/s390/crypto/pkey_api.c @@ -49,7 +49,8 @@ static debug_info_t *debug_info; static void __init pkey_debug_init(void) { - debug_info = debug_register("pkey", 1, 1, 4 * sizeof(long)); + /* 5 arguments per dbf entry (including the format string ptr) */ + debug_info = debug_register("pkey", 1, 1, 5 * sizeof(long)); debug_register_view(debug_info, &debug_sprintf_view); debug_set_level(debug_info, 3); } -- 2.20.1