[PATCH 2/2] kernel/kexec: Fix IMA when allocation happens in CMA area
Andrew Morton
akpm at linux-foundation.org
Thu Nov 6 16:44:42 PST 2025
On Thu, 6 Nov 2025 10:57:33 +0800 Pingfan Liu <piliu at redhat.com> wrote:
> > > This is caused by the fact that kexec allocates the destination directly
> > > in the CMA area. In that case, the CMA kernel address should be exported
> > > directly to the IMA component, instead of using the vmalloc'd address.
> >
> > This is something we should backport into tearlier kernels.
> >
> > > Signed-off-by: Pingfan Liu <piliu at redhat.com>
> > > Cc: Andrew Morton <akpm at linux-foundation.org>
> > > Cc: Baoquan He <bhe at redhat.com>
> > > Cc: Alexander Graf <graf at amazon.com>
> > > Cc: Steven Chen <chenste at linux.microsoft.com>
> > > Cc: linux-integrity at vger.kernel.org
> > > To: kexec at lists.infradead.org
> >
> > So I'm thinking we should add
> >
> > Fixes: 0091d9241ea2 ("kexec: define functions to map and unmap segments")
> Should be:
> Fixes: 07d24902977e ("kexec: enable CMA based contiguous allocation")
>
> Because 07d24902977e came after 0091d9241ea2 and introduced this issue.
Thanks, I updated the mm.git copy of this patch.
More information about the kexec
mailing list