From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37CB8347BD9; Fri, 24 Apr 2026 05:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777010268; cv=none; b=V8+Zo052Dr4m56/z0l4F8Xo9A/QXhu+ZKGuIAiZg7O4jw6jkVxiOnPGtHqjmJnGaJ/LpRCPXcEeXQhHCpYtRZMIrG6A4o9RQDZQPE4LyoretlfF68/c5mKPAYpCOHHLbE1dqEDxpRT0Cd5y5T/v/rnY0MN/MWf3xSQme5R6s3WY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777010268; c=relaxed/simple; bh=dTNza0KEYrjBEa6YZ5hzfCt/Ar2RAGWr/4ZMUagfrm0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=thSuGWgvZfWBM+lz7DJoTCQNABkRnKMTK7FFTP9lRK56551ua/JcFI32ZkhywpKL9ROwjrKiPNSuZo/2R8knFDgHw9Pa78CLRwchEs3+hWbNIhXqgYtZKKjpfG2C/TzI4r4KdeY4jHhRdOBQpfNzh1j/b8MTAwyeZjOCMVs7pc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=oe+6nX2B; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="oe+6nX2B" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D25411BC0; Thu, 23 Apr 2026 22:57:39 -0700 (PDT) Received: from e129823.arm.com (e129823.arm.com [10.1.197.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E1F173F23F; Thu, 23 Apr 2026 22:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1777010265; bh=dTNza0KEYrjBEa6YZ5hzfCt/Ar2RAGWr/4ZMUagfrm0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oe+6nX2Bl77VP10ARS83jN4HK85wFcLCFAXYd40mLXLBqZV1OIDDgfS6b4AgRW/ak NOdIClJEzKWOV1JwA4VBULgTUCmX1/R+SQ8NsifWR2plQ4uq32gw42eErrQl74oPqa 2DoOsoRSS8V5lkMdL0CiZGa6C23BZC52Dc5zDwww= Date: Fri, 24 Apr 2026 06:57:39 +0100 From: Yeoreum Yun To: Paul Moore Cc: Mimi Zohar , roberto.sassu@huawei.com, Jonathan McDowell , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, jmorris@namei.org, serge@hallyn.com, dmitry.kasatkin@gmail.com, eric.snowberg@oracle.com, jarkko@kernel.org, jgg@ziepe.ca, sudeep.holla@kernel.org, maz@kernel.org, oupton@kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, noodles@meta.com, sebastianene@google.com Subject: Re: [RFC PATCH v2 1/4] security: ima: call ima_init() again at late_initcall_sync for defered TPM Message-ID: References: Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Paul, > On Thu, Apr 23, 2026 at 2:13 PM Yeoreum Yun wrote: > > > > Sounds good. Once the patch is posted, I’ll review it as well. > > Sorry again for the noise, and thanks for your patience ;) > > My apologies for not getting a chance to look at this patchset sooner. > > This seems like an obvious, perhaps even stupid, question, but I have > to ask: if IMA can be properly initialized via late_initcall_sync(), > why not simply do the initialization in late_initcall_sync() and drop > the late_initcall() initialization? > > Does any IMA functionality suffer if initialization waits until > late_initcall_sync()? If so, it seems non-critical if waiting until > _sync() is acceptable, as it appears in these patches/comments. This is the way first patch did, and here is some discussion for this (Might you have seen, but in case of you missed): - https://lore.kernel.org/all/a6a0e15286c983d720de227c6827adbe976c5b9b.camel@linux.ibm.com/ Thanks. -- Sincerely, Yeoreum Yun