From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E63C27510B for ; Thu, 11 Dec 2025 20:29:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765484981; cv=none; b=lBeS7zuyt77PsyW4gFWLMjXO2YTYwxKbIygbVe2+y82pEJgb2B3PIkTCk7mAd8EnfP4nfBgl568YflhCYdO8UEu+HCPZq7d2E+4dRfCK4oSohGl9+XD1Ig5PXbV8HB5QoW+Y8VWREm7q83Bairiv3yky8nHp29iTNtEvA3x0TEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765484981; c=relaxed/simple; bh=9DRRCSLEBB087PyuGppIjlXf6xvxWvNoT6XXU1Vh9Gg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=iDbaInB/F7/krgK+FoKppLYLuSW2xH97UGDO3yUTkcl1eW8sQWyPGOfpax23F1JRoK+P1aoHXlIKVtQPUD154anNWI1RsL1r8iq/d3lbXKfey6Iknh4UHzzA0uh6ReuyL5G7s3M9O2Ng9ajPOAADUkzJQOxqBoukUtiMja+cAMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=e823m0nw; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="e823m0nw" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-65745a436f7so300456eaf.3 for ; Thu, 11 Dec 2025 12:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1765484978; x=1766089778; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=9DRRCSLEBB087PyuGppIjlXf6xvxWvNoT6XXU1Vh9Gg=; b=e823m0nwJkNkC3jZx7TG7mqG2hoLjbpwHIRBo0iPId9eJEy1W3v1CkVfoAFN/gVn0t 4ualeUJxefTZ52wS4zDYjcd6iqp445apkpfcx0pQAr9+fhfYM2aAKNMAWq4JQ4o6QGvE EgO8pt+6HGTESsG7/xMhPZW/jzGQKSNbXMH2h3Q5iOd4pqNbopg+1FGOahufBpULYDjg SmteJ7T0JrCsLC3YR1mpw6GLRkIwGIVDLCn9jo0KXKcXjjrRV+M5u8RbAzhtrtQvm7ey U11ngNqucxofrx5gcjAWmzllQ5Ze+B1p+svhdgE5Ijk4blM3ubvPI+NUuo5Pn28Nwo7l 64qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765484978; x=1766089778; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9DRRCSLEBB087PyuGppIjlXf6xvxWvNoT6XXU1Vh9Gg=; b=gNU06X9wbjHAL5gmL0A08cT0IeIpbLA8nQ8KkkFiBJwPQjRJBnQ1EsZnjOyeHQ4OAq fcwVDIMFoYNYuWaxn7g29kfCwostspRHmnhSC8VVWffhlNTgHynw99Huobg8XW5LVSMV /GoVdDxJdmtfKPSCi00ikw8bh+fRWCpMKQ36EiwcN3h8i6io8uT66o3EyJFnrgtFVp0t LndcoUT+abOOg3+7mOSgvvPr0FQwmbyIo92YsdZrqIb004VdLktjEO9v8MCrRg0Jw75J u7Yl6G6gniKcPA3BlKnmsvYefjsfmjVB9DbgEj3MMt3SHlk0fgkEU0ZzDPnTZrjKfiCA NwnA== X-Forwarded-Encrypted: i=1; AJvYcCUeMJ6ISYNF2PUAbWvqZkrnG8e6kclkT7uLbJO8Pv/EMYvKdPF+B18aVbBFJYpOjeDUC3b/dpE2M5Wyq5k=@vger.kernel.org X-Gm-Message-State: AOJu0YwGei3Z5r4E9QpCDdr5gNwRM6bHS4zmWm1e66P5JGB+TZsL96BL QMBts92Eb+nFegugrv61d7qm2P2Z+7c03RVc+nP5ZEq6kL90MblRq5ndGUScIWfPrsM= X-Gm-Gg: AY/fxX4GZAzIjs7ThVBwf1ZD+LiGz5AuyCtNMJGnaTbn5ahVItbg7FLHdL74OgKqhcD Gpf2BdRU0o71e4jPw88APXuC+sKM9KxgNz1GmJXIx461HuAmmFa+sJfvJBxvUkaXyO3awvGnlTH nhcXX7wyNv3lCaNLosw5CbSmsIw8zTAWlju3Sps2hap+mmsLJ5yTC8nrBd+jba6f2gwYLvTtr4P zhds1abScbNt9cVDQDkQf4OcxznjzTcJx9SUjzvosq17YQrvqBsmxxzvLxrpMDH/904xPTRDg1r KpPR6vLJ3kZGK7dVnZACpEmWKli3nxP3A4wf0OnvunL6Jvag5IK1Exx3nKliwYFyyvz44WZHXs6 eLd6Ow5IQHVbc2ErGiAI/2BMFtV0Zh8iFJ7WoHTDdQX0kHdNiCxhmzPuru3gJZfpGOGw= X-Google-Smtp-Source: AGHT+IGXgSVW4B5tlWc5GJSs37cpa/Qy9qqjFq/iATd96ugTpEgoseFG1mReqoD0ZC/0hihQZErMHw== X-Received: by 2002:a05:6820:2019:b0:65b:257b:a898 with SMTP id 006d021491bc7-65b2abebd32mr3716006eaf.29.1765484978148; Thu, 11 Dec 2025 12:29:38 -0800 (PST) Received: from CMGLRV3 ([2a09:bac5:947d:1b37::2b6:8]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-65b35f4ec54sm1700561eaf.6.2025.12.11.12.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Dec 2025 12:29:37 -0800 (PST) Date: Thu, 11 Dec 2025 14:29:35 -0600 From: Frederick Lawler To: Jeff Layton Cc: Christian Brauner , "Darrick J. Wong" , Josef Bacik , Carlos Maiolino , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, Roberto Sassu , kernel-team@cloudflare.com Subject: xfs/ima: Regression caching i_version Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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