Re: [PATCH] init: fix allocated page overlapping with PTR_ERR

Nam Cao
2024-05-10T06:35:47Z

On Tue, Apr 30, 2024 at 05:42:38PM +0200, Joel Granados wrote:
> On Tue, Apr 30, 2024 at 10:37:59AM +0200, Alexandre Ghiti wrote:
> > The config shows that it is a XIP kernel that comes with its own
> > limitations (text is limited to 32MB for example), so I'm not surprised
> > to see those overlaps.
> >
> > We already discussed the removal of randconfig builds on XIP configs,
> > but IIRC it is not possible.
>
> I just tested this going back until "2023-09-20 602bf1830798 (HEAD)
> Merge branch 'for-6.7' into for-next [Petr Mladek]" and I still saw the
> overlapping errors.
>
> Is this just something that happens always?

Alex is write that this is due to the 32MB size limit on XIP kernel. This
means build failure happens if too many configurations are enabled and the
kernel gets too large.

I just sent a series to lift the size restriction and fix this build failure:
https://lore.kernel.org/lkml/cover.1715286093.git.namcao@linutronix.de/

Best regards,
Nam