Re: [PATCH v3 2/7] ima: kexec: move ima log copy from kexec load to execute

2024-01-12 Thread Tushar Sugandhi
On 1/12/24 09:06, Mimi Zohar wrote: diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index f989f5f1933b..bf758fd5062c 100644 --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c @@ -734,6 +734,14 @@ static int kexec_calculate_store_digests(struct kimage *image) if

Re: [PATCH v3 2/7] ima: kexec: move ima log copy from kexec load to execute

2024-01-12 Thread Mimi Zohar
Hi Tushar, > > This patch moves the ima_dump_measurement_list() call from kexec load > > to exec, but doesn't register the reboot notifier in this patch. I > > don't see how it is possible with just the previous and this patch > > applied that the measurement list is carried across kexec. > Ah.

Re: [PATCH v3 2/7] ima: kexec: move ima log copy from kexec load to execute

2024-01-11 Thread Tushar Sugandhi
Apologies for the late response on this particular patch (v3 2/7) Mimi. I was on vacation in December. I was meaning to respond to this one when I came back, but I was caught in between other work items last few days. Sorry if it caused any confusion. Responses below. On 12/20/23 11:02, Mimi

Re: [PATCH v3 2/7] ima: kexec: move ima log copy from kexec load to execute

2023-12-20 Thread Mimi Zohar
Hi Tushar, On Fri, 2023-12-15 at 17:07 -0800, Tushar Sugandhi wrote: > ima_dump_measurement_list() is called from ima_add_kexec_buffer() during > kexec 'load', which may result in loss of IMA measurements between kexec > 'load' and 'execute'. It needs to be called during kexec 'execute'. > >