lkml.org 
[lkml]   [2020]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v9 3/8] ima: Define get_ima_kexec_buffer() in drivers/of
From
Date
On Fri, 2020-11-13 at 11:22 -0800, Lakshmi Ramasubramanian wrote:
> The function do_get_kexec_buffer(), defined in arch/powerpc/kexec/ima.c,
> retrieves the address and size of the given property from the device
> tree blob. This function does not have architecture specific code, but is
> currently limited to powerpc. This function correctly handles a device
> tree property that is a child node of the root node, but not anything
> other than the immediate root child nodes.
>
> Define an architecture independent function, namely
> get_ima_kexec_buffer(), in "drivers/of/ima_kexec.c". This function
> retrieves the chosen node, namely "linux,ima-kexec-buffer", from

Please remove the word "namely", here, and throughout the patch sets.

> the device tree, and returns the address and size of the buffer used
> for carrying forward the IMA measurement log across kexec system call.

get_ima_kexec_buffer() inlines the existing do_get_kexec_buffer() and
get_addr_size_cells() functions, leaving a local copy of
get_addr_size_cells(). Duplicating code isn't a good idea.

thanks,

Mimi

\
 
 \ /
  Last update: 2020-12-01 12:41    [W:0.241 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site