Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1188715iog; Thu, 30 Jun 2022 19:44:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+Be4rITCutnbVZdV6TrbY9NwEr1tYDKLf60cuBd61vxEjjZO5+qfVNn1jkvCssf4oicNi X-Received: by 2002:a05:6402:1941:b0:435:5972:7811 with SMTP id f1-20020a056402194100b0043559727811mr15728927edz.234.1656643449662; Thu, 30 Jun 2022 19:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656643449; cv=none; d=google.com; s=arc-20160816; b=Xv63YzAl82s/OQ4o/n0VUUycHcz/6EK50m66ZZDi2YaH9/MYFXnx7QFV+la83K+FrR BxkeeOeFoCuRBMX9Q8CGEaxDCcpRgZSqz7G01A+aHgitoyAvRrDeLeWzTZ0Dv6PfwsBv 3AyzKcNZNbz17qVIyZfC3JhlQgKNX14/KwUsCmOLHaK2R5bFkgH41JWOLDMowJHDHPO7 tlGXJMg47hX2vraQuFG+R99FKOClC7bM+RSkSkUwWLkXtUPJCSE1SLn5BBPlTiiwl7h5 tNg6jHdIX4pkfymYyXagFGrdlhKO1lPDIGf8/wWcd6iXnFIMEnbYMzZWFrWe248OaUJJ PaXw== 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=+JBEOOgUYaZ53VuXJUT+Rv0IUQ1U69LPXFeOS4DwJrQ=; b=EmSkb1NudC0PPsa+j9Jo3o7K65Vb51lIYE4Q1CJqrGblf6z+u5gxusyAAZkOLx3x49 jKrkqfqEXTQBJ/1py/O2uEH5sNiCExRusKcCAFMoiHo/bWHTz0y7mXZ2NYSr0hgicBEJ 5D1U5uUglAgqf7Xo3UwkXv/bhbg/7ZP405baLK+9T6YAu+U9TmC01obGZ/f22n8mhZGG lZ77dRj3rP5yo8unU+7B/uoLVhYIBq0hot0xXD8ZSIAU0lJ3bQs9/Cb4TYjMKgW0B2hk /SVt7QPKwA3vjLWoApXw322sOwZHWdFPgR6fn1/ZE0kkYbU9q2qN7Ciiib/Q5jSrqREY IGMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=djFmDz+s; 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 g6-20020a1709065d0600b00726abbc726csi8553537ejt.836.2022.06.30.19.43.44; Thu, 30 Jun 2022 19:44:09 -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=djFmDz+s; 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 S233268AbiGAC0h (ORCPT + 99 others); Thu, 30 Jun 2022 22:26:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233202AbiGAC0b (ORCPT ); Thu, 30 Jun 2022 22:26:31 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4089F5C9F4; Thu, 30 Jun 2022 19:26:30 -0700 (PDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2612DILQ026326; Fri, 1 Jul 2022 02:26:16 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=+JBEOOgUYaZ53VuXJUT+Rv0IUQ1U69LPXFeOS4DwJrQ=; b=djFmDz+s08aQk19unZliYEM4Nk96DjN1M7TQp6ZfOK0uQWifWOTYlXxWtwDvGE27YZqG R0SO6VibYL7wDsVrPen3TB2ZOqAUIFRRuub1HgeUqzPJRZnGINlhF66tDPPyOaMnb4yb tWCw+keMMT7HXoO2nZm8a2ffvel26QkSjN57J5v8TLcXy8V3Y+npbwFr4HIJRRv04KrS P10VJr2CFREtd8fWjr36GGun1gEtEWDugpiqZy2ldXiWnlJpHhiXpbdgQAGwvwp0gba6 Y7VG/bMoM4ovj8eKMOh21wwCG3121B8U4Kjq77J4lOf0jPou1WAbHQT7ofiAsXx5TJQL +A== Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h1qxxr8q8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Jul 2022 02:26:16 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2612M1pQ029106; Fri, 1 Jul 2022 02:26:15 GMT Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by ppma05wdc.us.ibm.com with ESMTP id 3gwt0aq0c3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Jul 2022 02:26:15 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2612QESJ40370642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Jul 2022 02:26:14 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4108D124054; Fri, 1 Jul 2022 02:26:14 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 28BD9124053; Fri, 1 Jul 2022 02:26:14 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 1 Jul 2022 02:26:14 +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 Subject: [PATCH v4 2/5] drivers: of: kexec ima: Support 32-bit platforms Date: Thu, 30 Jun 2022 22:26:00 -0400 Message-Id: <20220701022603.31076-3-stefanb@linux.ibm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220701022603.31076-1-stefanb@linux.ibm.com> References: <20220701022603.31076-1-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 3wf_zMkLlgyZAKGRJYPBujGK9_HFnMgg X-Proofpoint-GUID: 3wf_zMkLlgyZAKGRJYPBujGK9_HFnMgg 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-01_01,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 malwarescore=0 spamscore=0 mlxlogscore=999 adultscore=0 clxscore=1011 bulkscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2207010003 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. [ Several tags removed; for testing by krobot ] Signed-off-by: Palmer Dabbelt --- 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