Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3290038lfo; Mon, 23 May 2022 00:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPpzB0XGzm/kJkqZU6wVfd3wdl7SowpCYvbps9IbdiHgHrgCnZjn37uchH+zYtyE5kbzUY X-Received: by 2002:a63:28c:0:b0:3c1:6f72:7288 with SMTP id 134-20020a63028c000000b003c16f727288mr19054006pgc.564.1653292202950; Mon, 23 May 2022 00:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653292202; cv=none; d=google.com; s=arc-20160816; b=klNNC93xc/vzK3cR3q+lMTYvA0WCdq3q+kbeinRH/SNYZyIPMcdJgyfwC7EQdqc5yx UzAOnvrO7uoUBzjjNHNfOrCu+Sskr6DBAcbhGplUiEa9mf1jpMdGQB0mMbbZIrbpoLnA lkokOJa7lQgloIpWgqP/NNPAtWA8/dz6fccqEkVcGPuyqhXmMXM53pdRE0kHfPIzVgih BrPkmpoeJql9NcmWgbSnPGaaQY7zOdBqR1xnDEHM0CBuZlvJqWYHpeAUgQkuz4xK5/4p MJXY5dPwLnw1wykLgmKNR6Sf27/7apbPs7nDkHSo7aILthw0YYbcUoqBFw634zcWBvQs FNiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject :dkim-signature; bh=avELjSEfO4YwxdS1hy2OFqCYNIZpTM4Eec2OkZMhhf8=; b=Bf6642IQDB4bjch/dUBvoTSvxa6RX8BdjGA4/m+Ujf8UQgRxB4Cu2TegsRvYe+QFDX 6pPHj5ZHQOB5UMBBkTNkhYHJfvK6Q0OpyKVyyxR+ac7aBd3GhV6e7PZSuAfj0MOUV35B s5nEQPS2iT00ix563s47Fnim7E1xYhBEDaqQRLdVTSz1u/5FnCPPWpzt/jkOyYpmZq4U bct5SP/JpgDL95fnz0/V9WclG/zMhJQckfVxtzVjagxCUi+cQ0zrkB1gkD/0MQGVjVx1 UQnDaN8jC/qUvZQfhXHF4ZLuxPqAIAKxANYuSMA7nUNdzNiHF2WRX63yncbcu+Bv/hyT Xc8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=uzwPDcC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u5-20020a056a00158500b00518422cb775si2771368pfk.15.2022.05.23.00.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=uzwPDcC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32FCF57B01; Sun, 22 May 2022 23:54:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351069AbiETPpq (ORCPT + 99 others); Fri, 20 May 2022 11:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbiETPpk (ORCPT ); Fri, 20 May 2022 11:45:40 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D41EB179945 for ; Fri, 20 May 2022 08:45:24 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id r71so8090658pgr.0 for ; Fri, 20 May 2022 08:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding:cc:from:to; bh=avELjSEfO4YwxdS1hy2OFqCYNIZpTM4Eec2OkZMhhf8=; b=uzwPDcC0XNDiwV+Mifx3alyGqhvqonpDCfcELm9PIplNCWzW/NqPcz7dO5AZvP9aD/ 9DftJ2uI7dj8WLDMyULQL9Mzmc1Sw3yvKBYHDYFq5mmlt9/FBMk4iD2EQWZueEc2SOPY XVhWu4TTcLkAOsWufKOvZedwA75506ErlcRUoG/dg5Yzf/7w2VdM2e5A3R0RG/jQrebr WUB0GKOJ4kmaKKnMV38ouro+kV5lD5ureu3IhSzvLXkIPBO/tOcRZZnJcLQKaOJ4pIFD ivVBRmb/1LPO2IfDj8CG9AXLvr+6Wf30+Cf7gop/trMMi003rY5ezCy3QBoYTgXe1rFB h7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=avELjSEfO4YwxdS1hy2OFqCYNIZpTM4Eec2OkZMhhf8=; b=CNyG4/XZcJOUZKqqgIhZEDzDvgOeg2MYpdXyip3g7oO+tFYuauscEZtsqy5fgDuyu3 57gYzTEVuRzB8RAcaCidK4v3tCXN8KmaMzihetHIJ38nUzdmQvdYYlfdIRINiQYT1P+v CqLNicry5w0kqLGhLq0IgyYZOHJE7QaOvU1y1CTGYwbs5+XC6IAaZBBhPtHh4z72d8gY koJXNI52ZEkSAhcgGgaFKF4USPDk+WdmNNASP5apkVyCWuAqSk+Vmz15aEb+JnO9sJ7E oAzuE89itlsJQ0/plUV26qQcMG0xyMwfdQAb0lPwu0M5giALwVtIPAQAMuWiY3F9TImq gRjQ== X-Gm-Message-State: AOAM530Y7Ny3v+kacAnGIleCLTDzECFhctBqCy3uHLob6mHrWLWgI2QW yeCbiA817cZ+kxVs+F1hqdwhPQ== X-Received: by 2002:a62:1413:0:b0:518:4259:200e with SMTP id 19-20020a621413000000b005184259200emr8368526pfu.41.1653061524395; Fri, 20 May 2022 08:45:24 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id t10-20020a17090340ca00b0015e8d4eb29esm5596985pld.232.2022.05.20.08.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 08:45:24 -0700 (PDT) Subject: [PATCH v1 1/5] drivers: of: kexec ima: Support 32-bit platforms Date: Fri, 20 May 2022 08:44:27 -0700 Message-Id: <20220520154430.18593-2-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220520154430.18593-1-palmer@rivosinc.com> References: <20220520154430.18593-1-palmer@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Paul Walmsley , Palmer Dabbelt , aou@eecs.berkeley.edu, robh+dt@kernel.org, frowand.list@gmail.com, zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, liaochang1@huawei.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux@rivosinc.com, Palmer Dabbelt From: Palmer Dabbelt To: lizhengyu3@huawei.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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. 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 b9bd1cff1793..ed3451ec2b24 100644 --- a/drivers/of/kexec.c +++ b/drivers/of/kexec.c @@ -236,8 +236,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.34.1