Re: [PATCH v6 1/3] IMA: Define workqueue for early boot key measurements

From: Mimi Zohar
Date: Fri Jan 03 2020 - 09:15:49 EST


Hi Lakshmi,

On Thu, 2020-01-02 at 21:56 -0800, Lakshmi Ramasubramanian wrote:
> Measuring keys requires a custom IMA policy to be loaded.
> Keys created or updated before a custom IMA policy is loaded should
> be queued and the keys should be processed after a custom policy
> is loaded.
>
> This patch defines workqueue for queuing keys when a custom IMA policy
> has not yet been loaded.
>
> A flag namely ima_process_keys is used to check if the key should be
> queued or should be processed immediately.
>
> Signed-off-by: Lakshmi Ramasubramanian <nramas@xxxxxxxxxxxxxxxxxxx>
> Reported-by: kernel test robot <rong.a.chen@xxxxxxxxx>
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>

The changes based on "kernel test robot" reports are properly folded
into this patch, but unless the tag - "Acked-by", "Reported-by" - is
qualified, it refers to the entire patch. ÂLet's limit it as:

Reported-by: kernel test robot <rong.a.chen@xxxxxxxxx> # sleeping
function called from invalid context
Reported-by: kbuild test robot <lkp@xxxxxxxxx> # sparse symbol
ima_queued_key() should be static

Mimi