linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xfs/ima: Regression caching i_version
@ 2025-12-11 20:29 Frederick Lawler
  2025-12-11 20:55 ` Jeff Layton
  0 siblings, 1 reply; 6+ messages in thread
From: Frederick Lawler @ 2025-12-11 20:29 UTC (permalink / raw)
  To: Jeff Layton
  Cc: Christian Brauner, Darrick J. Wong, Josef Bacik, Carlos Maiolino,
	linux-xfs, linux-kernel, linux-security-module, linux-integrity,
	Roberto Sassu, kernel-team

Hi Jeff,

While testing 6.18, I think I found a regression with
commit 1cf7e834a6fb ("xfs: switch to multigrain timestamps") since 6.13
where IMA is no longer able to properly cache i_version when we overlay
tmpfs on top of XFS. Each measurement diff check in function
process_measurement() reports that the i_version is
always set to zero for iint->real_inode.version.

The function ima_collect_measurement() is looking to extract the version
from the cookie on next measurement to cache i_version.

I'm unclear from the commit description what the right approach here is:
update in IMA land by checking for time changes, or do
something else such as adding the cookie back.

Thanks,
Fred

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-11 22:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11 20:29 xfs/ima: Regression caching i_version Frederick Lawler
2025-12-11 20:55 ` Jeff Layton
2025-12-11 21:12   ` Frederick Lawler
2025-12-11 21:41     ` Jeff Layton
2025-12-11 22:29       ` Frederick Lawler
2025-12-11 22:50         ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).