From patchwork Tue Feb 28 14:14:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Heimes X-Patchwork-Id: 1749483 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=f4wGXjTi; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQzrq0tdSz1yXC for ; Wed, 1 Mar 2023 01:14:35 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1pX0kP-0002DR-3O; Tue, 28 Feb 2023 14:14:29 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pX0kN-0002Ch-Q0 for kernel-team@lists.ubuntu.com; Tue, 28 Feb 2023 14:14:27 +0000 Received: from localhost.localdomain (p54abbaaa.dip0.t-ipconnect.de [84.171.186.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 9AB9E408F1 for ; Tue, 28 Feb 2023 14:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1677593664; bh=x0Udub6X1+lYjbPSUCnV0xsiH8mGyAj6Xno+SM/dzU4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=f4wGXjTiVFYFZ1z2E0qZA40YaVEu2ayCh3uor2AI4aK86JpGcIV3z9o9KuKwx3HAo E6fAPqAUC/J1XK9RhS1zV9yxHEYpixKZk5pFex5lHe3oimZQt3pEVlKwlUYlBTAWKo bHcXxjs9egUWk5eMSPrO3WTKUX1ihHAHRlG9DKwNOArOEy67Va9Ph5QCn28Lse6pI/ cLtN8YDIp+AL0+Yc7s/CjTnYpads2dc5GeChpJatoqYJm2dF17Q5odJlmoJ4U3eUs/ eOQv5QtY41bKJJ8ZpyEAWfaUp6+7Ohe8ASdG5AkV0Wh9zCXDCIM+jeqhTjQHIAFJrj 4F+2C7HPvZjlA== From: frank.heimes@canonical.com To: kernel-team@lists.ubuntu.com Subject: [U][L][PATCH 1/1] s390/zcrypt: introduce ctfm field in struct CPRBX Date: Tue, 28 Feb 2023 15:14:21 +0100 Message-Id: <20230228141421.2084287-2-frank.heimes@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230228141421.2084287-1-frank.heimes@canonical.com> References: <20230228141421.2084287-1-frank.heimes@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Harald Freudenberger BugLink: https://bugs.launchpad.net/bugs/2003637 Modify the CPRBX struct to expose a new field ctfm for use with hardware command filtering within a CEX8 crypto card in CCA coprocessor mode. The field replaces a reserved byte padding field so that the layout of the struct and the size does not change. The new field is used only by user space applications which may use this to expose the HW filtering facilities in the crypto firmware layers. Signed-off-by: Harald Freudenberger Signed-off-by: Heiko Carstens (cherry picked from commit ad0faae6ceab7d138dddf9a58eab7151c519e0d3 linux-next) Signed-off-by: Frank Heimes --- arch/s390/include/uapi/asm/zcrypt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/s390/include/uapi/asm/zcrypt.h b/arch/s390/include/uapi/asm/zcrypt.h index d83713f67530..f4785abe1b9f 100644 --- a/arch/s390/include/uapi/asm/zcrypt.h +++ b/arch/s390/include/uapi/asm/zcrypt.h @@ -85,7 +85,8 @@ struct ica_rsa_modexpo_crt { struct CPRBX { __u16 cprb_len; /* CPRB length 220 */ __u8 cprb_ver_id; /* CPRB version id. 0x02 */ - __u8 _pad_000[3]; /* Alignment pad bytes */ + __u8 ctfm; /* Command Type Filtering Mask */ + __u8 pad_000[2]; /* Alignment pad bytes */ __u8 func_id[2]; /* function id 0x5432 */ __u8 cprb_flags[4]; /* Flags */ __u32 req_parml; /* request parameter buffer len */