Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2589379imw; Wed, 6 Jul 2022 08:27:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vCEi2x+PCucOqNqTHue46/OQroAc9sIFtwhhQjZdgLdo3UwazIr2SIpMQlqKlfJhBYEX3P X-Received: by 2002:a63:4407:0:b0:40d:f0c7:8277 with SMTP id r7-20020a634407000000b0040df0c78277mr34324857pga.163.1657121240970; Wed, 06 Jul 2022 08:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657121240; cv=none; d=google.com; s=arc-20160816; b=GIUzMv08mFBaWOpH8ewJ0zfpr9m27N5cloJLsDarJLBsHwCvzCRlhh9NkKMF9vZog1 6uNcaJCGWPgW7O4jOBuSL6fX1vkk8uPWJo2GJfeVLNoKeMfAnOlV7Ilsa4LDu2dcw3iK UuTWQpgqODq/QTQ+7yp3Vcf0y2DH6c8H8nFq8SBVjsb2Wp3bAE3+I8sT59x9LXUlh3sq KE402fDsHpaq7bnwQDA/aNrQw3/ZJ0aWq60avHWD20SxS2gI8MEPGqXcTDddFLAPtwpD 1QT5ASOBgqZJF8DEz7rquwfXrHzhPhRtTS+jvjvZaTn9v7Aj33c9P4e/GmOitLXOwh+/ 8IZg== 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=k4rfDl5sjXMkFxZKUuEqZdOSLHex7NUKzrZWhtsr1fw=; b=T6lYrG8UD5tf9m4I5YV8snIsydVOGDG31w+Kt+i8E1r3G7Ta5FP21bYzw64Za5LFhP bAYlD8+Hvn6fI1ADz6/gx9NMIlUDWkS5xzgpAtWoUHqNpxFle5P70Z+17pp3SjQB63QW b2v01r9mw4HouAOJC9VQ4Ri5DXz6mRCERoj/gAE5Y+3EDv7dVkn3M8HTqXM8n5xzyS5S Z4w8DMg5G173FURyEeYsUE/xMt7yG8FQXWz5Lk6mp26iPKezBNSmwKXgV1uZZaUwFyko hUfCNy7lRPSWX4izbjwAzirt2ayJ0j8QARS9HQFHKfK0fyzFVLXyuWNF1W1NQsbpLsW+ 8vSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=VzvQkGB3; 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=NONE 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 x9-20020a1709029a4900b0016bf246e333si6621769plv.617.2022.07.06.08.27.08; Wed, 06 Jul 2022 08:27:20 -0700 (PDT) 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=VzvQkGB3; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbiGFPXy (ORCPT + 99 others); Wed, 6 Jul 2022 11:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbiGFPXu (ORCPT ); Wed, 6 Jul 2022 11:23:50 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67F4317E03; Wed, 6 Jul 2022 08:23:49 -0700 (PDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 266EkiWG037165; Wed, 6 Jul 2022 15:23:40 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=k4rfDl5sjXMkFxZKUuEqZdOSLHex7NUKzrZWhtsr1fw=; b=VzvQkGB38EF8YoX6X/BVeRx5RwDJ68FHMJnLYVZluWOE881JZ0wskRRB4HxH+pFsuMyK CoRBR6wa0wiYKvIoVd3OeUSi45KRrlJJP4r5klK67LdLVuHFUkzT0jS8L3+Jb0MX0nYz Y7vYcjdxgHz/UmX3bSIrLaq9zngkpGlW+LQ/59OMOIvwtC75CG3V8Soitt2ydjW+eIjI fntD0DEXGLCKAugOhmydjjuqXmo9kKHTfnQKOLFvZj15aRVSLj/ZhbI8kB6GI0Pd45Uv Z3/JT0wfwCWPC8rA1XL8jAnKLSlq0OMVAIY7R9Knh1SC4EOzF4cRGhpfdhcthTSzRSTc rA== Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h5cf3s3bh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Jul 2022 15:23:40 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 266FL6Je020776; Wed, 6 Jul 2022 15:23:39 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma02wdc.us.ibm.com with ESMTP id 3h4ucxn8a8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Jul 2022 15:23:39 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 266FNc6x31785430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 6 Jul 2022 15:23:38 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7F372112062; Wed, 6 Jul 2022 15:23:38 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 66476112065; Wed, 6 Jul 2022 15:23:38 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 6 Jul 2022 15:23:38 +0000 (GMT) From: Stefan Berger To: kexec@lists.infradead.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: nayna@linux.ibm.com, nasastry@in.ibm.com, mpe@ellerman.id.au, Palmer Dabbelt , Rob Herring , Mimi Zohar Subject: [PATCH v5 2/6] drivers: of: kexec ima: Support 32-bit platforms Date: Wed, 6 Jul 2022 11:23:25 -0400 Message-Id: <20220706152329.665636-3-stefanb@linux.ibm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220706152329.665636-1-stefanb@linux.ibm.com> References: <20220706152329.665636-1-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: VSz_nYx-t_FEe69XdWOfMqK7WC093iBg X-Proofpoint-ORIG-GUID: VSz_nYx-t_FEe69XdWOfMqK7WC093iBg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-06_09,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 lowpriorityscore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207060060 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, T_SCC_BODY_TEXT_LINE 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 From: Palmer Dabbelt RISC-V recently added kexec_file() support, which uses enables kexec IMA. We're the first 32-bit platform to support this, so we found a build bug. Acked-by: Rob Herring Signed-off-by: Palmer Dabbelt Reviewed-by: Mimi Zohar --- drivers/of/kexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/kexec.c b/drivers/of/kexec.c index 91b04b04eec4..c4f9b6655a2e 100644 --- a/drivers/of/kexec.c +++ b/drivers/of/kexec.c @@ -253,8 +253,8 @@ static int setup_ima_buffer(const struct kimage *image, void *fdt, if (ret) return -EINVAL; - pr_debug("IMA buffer at 0x%llx, size = 0x%zx\n", - image->ima_buffer_addr, image->ima_buffer_size); + pr_debug("IMA buffer at 0x%pa, size = 0x%zx\n", + &image->ima_buffer_addr, image->ima_buffer_size); return 0; } -- 2.35.1