Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12910498rwl; Wed, 4 Jan 2023 00:12:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXseo/yg0gR0JjuTnb39TKh7dX/hMHxCk45im8EHa2ClDtcA7GjU3Q+Y09Big24B0WLiHS3u X-Received: by 2002:a17:90b:b11:b0:226:482:760f with SMTP id bf17-20020a17090b0b1100b002260482760fmr28382427pjb.10.1672819953964; Wed, 04 Jan 2023 00:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672819953; cv=none; d=google.com; s=arc-20160816; b=YgCyfQ2J7+FLKK61tL9jJ8VtqFOj0rgCgok2Pz5WDBc5QJK3+0SNqAkpYC0SLf9SKA QJBTMezZOmyyHm3Eq1JqdDjlltU1TWfP8V+kJD9tRkj4qjgBMU75/ZMnFjj2T9wI9TzU fIaJt8fKkmcEktLT2jdUt/5SSOV0PMm7ShchxhBLqVDjVISftsBP1loZM1aW2UK8FWJY jjL9ME94Fj1llc6YNiUvzbkUW3/HTRGfPHMJDcUoCxgCnAgymUsT00tHDeYje2lqH5Ds bRNMdYe4QFcCafhjlrRI2QRtwzZQkl3uJmFbqQRA9RpgnjlG6Wx9ptT38vqN0DiwI3N4 tokA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=enX6vrsQyZauCvGhpRrVoHm2/GDBnNUaB8pVultaQ6s=; b=WlT3DItmrgOsJuuSyAepqm0JAIW3rDfZIWU6/2hWUmY8vMU2QwV05NqzYSK7AUVqKA KFcQSx4jZ8Pv6NdkeCFDy18XVs/kgDp5arnUxk+qid9EUAdVBoTY+LLuoyBdEZ3jBHuz D156oQoFetM9wN+asITmRpzD1WUR53X8K4dyEWEzFGcFy3luc8C1BqhJwMbG8L5Z3VJw vvjo8lPcE9qjDmAG2hX0J/hVlYPU27OiE7FRrOe+l5mGfZQg+G5k5CvNXju/EcCPkvxE W1kl/mc4wLafjKgijjgZN5sHoTKSKQmeVbYuhXu+JjcFuHDqoDIqrOGBfIF1/l4nJgea cfZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=F7rS+fPz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pl8-20020a17090b268800b001fdcb564d73si26710872pjb.79.2023.01.04.00.12.20; Wed, 04 Jan 2023 00:12:33 -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=F7rS+fPz; 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 S233705AbjADHba (ORCPT + 57 others); Wed, 4 Jan 2023 02:31:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjADHb2 (ORCPT ); Wed, 4 Jan 2023 02:31:28 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907E9A450 for ; Tue, 3 Jan 2023 23:31:27 -0800 (PST) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3045HmGX024034; Wed, 4 Jan 2023 07:31:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=enX6vrsQyZauCvGhpRrVoHm2/GDBnNUaB8pVultaQ6s=; b=F7rS+fPzxa48bR8nZEDRUXTmpEwnECRHmnIcsqhQIgnlZ6oHCbHsCHLawy4Uav5HI6n8 oF2KpCTLrdaeG3ZMrNwZ7k3q/vwkCergQW8V62YnrS0Gt3DDc8f4j3pvTOlbskNjexG5 nV4D2bBKWUS6f2e0IIlh4Tjm8C4HXc3bTxEhskTa5i39HQhJKe/uluk5KFmbYnkkD5dt iztj8XfOua9zDOn5ZFwNQ9cSVp91naIas5XMKd29z48gD8HcxJWX7PmoGaBhv58oXw43 KRy/NzxCiv8xuKZWxVi8oBi6m3jR9liTBa5Nc1GXDrcJr1GjUNAe98egxRrmVcuQD6Ft bw== Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mvhh51r7s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Jan 2023 07:31:18 +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 303JUK1f023379; Wed, 4 Jan 2023 07:31:16 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04fra.de.ibm.com (PPS) with ESMTPS id 3mtcq6bjm3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Jan 2023 07:31:15 +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 3047VCa219399274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Jan 2023 07:31:12 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD21C20049; Wed, 4 Jan 2023 07:31:12 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D5B9C20043; Wed, 4 Jan 2023 07:31:11 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 4 Jan 2023 07:31:11 +0000 (GMT) Received: from [10.61.2.128] (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 9A96D60060; Wed, 4 Jan 2023 18:31:08 +1100 (AEDT) Message-ID: <64b4d32ce3434aa2dcd571123eaad082f6bed796.camel@linux.ibm.com> Subject: Re: [PATCH v2 4/7] powerpc/secvar: Handle format string in the consumer From: Andrew Donnellan To: Russell Currey , linuxppc-dev@lists.ozlabs.org Cc: gregkh@linuxfoundation.org, gcwilson@linux.ibm.com, linux-kernel@vger.kernel.org, nayna@linux.ibm.com, zohar@linux.ibm.com, mpe@ellerman.id.au Date: Wed, 04 Jan 2023 18:31:08 +1100 In-Reply-To: <20221230042014.154483-5-ruscur@russell.cc> References: <20221230042014.154483-1-ruscur@russell.cc> <20221230042014.154483-5-ruscur@russell.cc> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: SPKBo4o151JQjiIx4N2fdkAj8ZKoDlXd X-Proofpoint-GUID: SPKBo4o151JQjiIx4N2fdkAj8ZKoDlXd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-04_04,2023-01-03_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301040063 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 T24gRnJpLCAyMDIyLTEyLTMwIGF0IDE1OjIwICsxMTAwLCBSdXNzZWxsIEN1cnJleSB3cm90ZToK PiBUaGUgY29kZSB0aGF0IGhhbmRsZXMgdGhlIGZvcm1hdCBzdHJpbmcgaW4gc2VjdmFyLXN5c2Zz LmMgaXMgZW50aXJlbHkKPiBPUEFMIHNwZWNpZmljLCBzbyBjcmVhdGUgYSBuZXcgImZvcm1hdCIg b3AgaW4gc2VjdmFyX29wZXJhdGlvbnMgdG8KPiBtYWtlCj4gdGhlIHNlY3ZhciBjb2RlIG1vcmUg Z2VuZXJpYy7CoCBObyBmdW5jdGlvbmFsIGNoYW5nZS4KPiAKPiBTaWduZWQtb2ZmLWJ5OiBSdXNz ZWxsIEN1cnJleSA8cnVzY3VyQHJ1c3NlbGwuY2M+CgpMR1RNCgpSZXZpZXdlZC1ieTogQW5kcmV3 IERvbm5lbGxhbiA8YWpkQGxpbnV4LmlibS5jb20+Cgo+IC0tLQ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