From patchwork Fri Feb 10 08:03:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Donnellan X-Patchwork-Id: 55296 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp821051wrn; Fri, 10 Feb 2023 00:07:08 -0800 (PST) X-Google-Smtp-Source: AK7set/at8djLUdtyWmnW03nn6xcjLKnx+W6gB+ZOK2NWB6qfnCS5Pv7Eyd7x8MMtGVIgDBx+o/z X-Received: by 2002:a50:d5d9:0:b0:4ab:1584:c0d6 with SMTP id g25-20020a50d5d9000000b004ab1584c0d6mr8617478edj.32.1676016428623; Fri, 10 Feb 2023 00:07:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676016428; cv=none; d=google.com; s=arc-20160816; b=EtHWVCHKktTaMwGF2/BO2St7OU7ccB3ZdTMqnavOeL2thMnjGH52eneSQXK1OXUT39 SYWt+8tdk/2cx37jEZAQ5bpnhOp9s1dmMpC5f5ek/rOUhKQ1yz9O8pTIQxpm5fmw/QXB ZaAQ8OCIKYHoqdRDIEOHCtGKzd7qDJfn/OFu93KIMl/UkuAQhHhAGMbDGWqmkK5SYlKd WvfE2lEygK6NPxhIXmR6vZqa1t9z+LUvKjfJhIDnAAmP2C7hfW2CGhUg2Ko9kbu4icc+ 8POWNTC7DUAtfxNgIsFfyhQxZFyqGXMABH/M5yrc8GqxEkzo3SYBxXnZd3D3+kPJLKcA YzAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OmbOlRdU5FmZKKR16QacPFsw1HIuj25rRAQx2e3ol8A=; b=vcig/uwSqwuqGK2IeWWxbRTwsX4mD8RpMKH55ZUz0BU6lp15w3l8uhb4DeTDM1cGTj xlV+seJVoxUpYqnSWqKyaZFDSA+ipondafcU09l0NqtNmRbr9J6NLOH0FqV/oECmm6GK Yz20Y8W5FA2n7MOt4f2k4yN53yegDIAdx5qYTSHw/tRfk3oMUUvK0EhGjgDa+xND0c+p LcWo37egwMFSgHcuP4eR4/BG66+ZNEe1N0WDwXj+j/XPi/IRfScaHOsUpBrvBoepznf4 CN+PjJ3jd5whKjvuRqWASZiCqQVBEdiyMyViTtgXSXMc6SpaGmHSKRTX7U3uaIO8MyZR AE0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="rMckL//n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a056402005200b0049e37585a7bsi4943671edu.196.2023.02.10.00.06.45; Fri, 10 Feb 2023 00:07:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="rMckL//n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231655AbjBJIFZ (ORCPT + 99 others); Fri, 10 Feb 2023 03:05:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231565AbjBJIE7 (ORCPT ); Fri, 10 Feb 2023 03:04:59 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 511438184C; Fri, 10 Feb 2023 00:04:37 -0800 (PST) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31A83Ntd008624; Fri, 10 Feb 2023 08:04:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=OmbOlRdU5FmZKKR16QacPFsw1HIuj25rRAQx2e3ol8A=; b=rMckL//nAv4kbJcFhsgHe2kdHx+gEbVE9yFXEncMXaJKkQLwbeOpvMHTlKnHnwjXNHRn GRkOGv2S+xx0/49xkEYg+dMJjHmmjUYRG0UDL9HFgBPOlf1qBYy9sdFeKImtG5zwEg1j 2Zp2taNgmhwc5CXFDdYzRLu4MRlhb+lNaQnIwSe0S9ZI7wYTEd7M2yoWivniV8pR+pah kf01Or+g3M0/Z3Q+50M+TcJMLnPJFAw9O6WzoB/2G/bbHwze8AZD2fhOGqECum+sOBX4 aKZ7iAK9WGc6XsWaqbf8q9EI8WOFt9jtasx0/fy4hfNnGQwLHjcjf8JwwsF9PUn49XcV Pw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3nnj30r1ch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 08:04:28 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 31A84R8m014504; Fri, 10 Feb 2023 08:04:27 GMT Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3nnj30r1aj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 08:04:27 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 31A44NAL016255; Fri, 10 Feb 2023 08:04:25 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04fra.de.ibm.com (PPS) with ESMTPS id 3nhf06w3vv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Feb 2023 08:04:25 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 31A84MXH17826358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 08:04:22 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AA8732004F; Fri, 10 Feb 2023 08:04:22 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2836120040; Fri, 10 Feb 2023 08:04:22 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 10 Feb 2023 08:04:22 +0000 (GMT) Received: from jarvis-ozlabs-ibm-com.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id D17A0609C1; Fri, 10 Feb 2023 19:04:15 +1100 (AEDT) From: Andrew Donnellan To: linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org Cc: ruscur@russell.cc, bgray@linux.ibm.com, nayna@linux.ibm.com, gcwilson@linux.ibm.com, gjoyce@linux.ibm.com, brking@linux.ibm.com, stefanb@linux.ibm.com, sudhakar@linux.ibm.com, erichte@linux.ibm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, joel@jms.id.au, npiggin@gmail.com Subject: [PATCH v6 21/26] powerpc/pseries: Clarify warning when PLPKS password already set Date: Fri, 10 Feb 2023 19:03:56 +1100 Message-Id: <20230210080401.345462-22-ajd@linux.ibm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210080401.345462-1-ajd@linux.ibm.com> References: <20230210080401.345462-1-ajd@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OYB-GQOs8MHRBvBxIHXpeKTQXm9gcBdw X-Proofpoint-ORIG-GUID: nLjqzLPDYSgfdjY1qcPPd-aIWv2QTVrw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_03,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 impostorscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100070 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757430603076826807?= X-GMAIL-MSGID: =?utf-8?q?1757430603076826807?= When the H_PKS_GEN_PASSWORD hcall returns H_IN_USE, operations that require authentication (i.e. anything other than reading a world-readable variable) will not work. The current error message doesn't explain this clearly enough. Reword it to emphasise that authenticated operations will fail. Signed-off-by: Andrew Donnellan Reviewed-by: Stefan Berger --- v6: New patch --- arch/powerpc/platforms/pseries/plpks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c index 926b6a927326..01ae919b4497 100644 --- a/arch/powerpc/platforms/pseries/plpks.c +++ b/arch/powerpc/platforms/pseries/plpks.c @@ -146,7 +146,7 @@ static int plpks_gen_password(void) memcpy(ospassword, password, ospasswordlength); } else { if (rc == H_IN_USE) { - pr_warn("Password is already set for POWER LPAR Platform KeyStore\n"); + pr_warn("Password already set - authenticated operations will fail\n"); rc = 0; } else { goto out;