Re: [PATCH] ima: initialize the real inode attributes of the iint cache

From: Mimi Zohar

Date: Mon Nov 02 2026 - 11:50:57 EST


On Mon, 2026-11-02 at 20:09 +0800, Cai Xinchen wrote:
> Hi Mimi. Thanks for review.
>
> I mistakenly used integrity_inode_attrs_store. In the next version, I
> will directly use
> memset to initialize the real_inode structure.

Sounds good.

> I double checked b836c4d29f27. That commit also added real_ino and
> real_dev to struct integrity_iinit_cache and started reading them in
> process_measurement(). However, iinit_init_always() only reset
> iint->version, leaving real_ino and real_dev stale. After 309e2b775da8,
> these three variables are encapsulated into integrity_inode_attributes.
> Therefore, I believe b836c4d29f27 is the appropriate Fixes tag. If I
> have missed anything, please let me know.

Okay. In terms of backporting, clearing the field using memset() would work,
but still the field name changed. So it won't apply cleanly.

Mimi