2022-06-24 05:09:28

by Palmer Dabbelt

[permalink] [raw]
Subject: [PATCH v2 1/5] drivers: of: kexec ima: Support 32-bit platforms

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 <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
---
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


2022-06-30 13:07:52

by Mimi Zohar

[permalink] [raw]
Subject: Re: [PATCH v2 1/5] drivers: of: kexec ima: Support 32-bit platforms

On Thu, 2022-06-23 at 21:48 -0700, Palmer Dabbelt wrote:
> 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 <[email protected]>
> Signed-off-by: Palmer Dabbelt <[email protected]>

Reviewed-by: Mimi Zohar <[email protected]>

2022-06-30 13:46:00

by Mimi Zohar

[permalink] [raw]
Subject: Re: [PATCH v2 1/5] drivers: of: kexec ima: Support 32-bit platforms

On Thu, 2022-06-23 at 21:48 -0700, Palmer Dabbelt wrote:
> 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 <[email protected]>
> Signed-off-by: Palmer Dabbelt <[email protected]>

Reviewed-by: Mimi Zohar <[email protected]>