[PATCH v2 1/7] ima: refactor ima_dump_measurement_list to move memory allocation to a separate function

Stefan Berger stefanb at linux.ibm.com
Fri Oct 20 14:21:07 PDT 2023


On 10/20/23 16:33, Tushar Sugandhi wrote:
> Thanks a lot Stefan for reviewing this series.
> Really appreciate it.


You are welcome.

What may be a bit problematic is the fact that between the time the 
buffer for the flattened IMA log is allocated (kexec 'load') and the 
time it is filled (kexec 'exec') that the log may grow quite a bit. I 
would say that the size of the growths may depend a lot on how people 
are using their system that the additional kilobytes  may or may not be 
enough. So a distro would probably have to specify additional bytes to 
allocate for like the worst case. But how many kilobytes is the worst case?

    Stefan




More information about the kexec mailing list