[Bug 216190] 5.19-rc4 kernel + KASAN fails to boot at very early stage when CONFIG_SMP=y is selected (PowerMac G4 3,6)

bugzilla-daemon at kernel.org bugzilla-daemon at kernel.org
Mon Jul 4 07:24:39 AEST 2022


https://bugzilla.kernel.org/show_bug.cgi?id=216190

--- Comment #3 from Erhard F. (erhard_f at mailbox.org) ---
(In reply to Christophe Leroy from comment #2)
> Problem is likely due to commit 4291d085b0b0 ("powerpc/32s: Make
> pte_update() non atomic on 603 core")
> 
> kasan_early_init() calls __set_pte_at(), which calls pte_update() if
> CONFIG_SMP, and pte_update() calls mmu_has_feature() since above commit, but
> that's too early for calling mmu_has_feature() so mmu_has_feature() tries to
> warn using printk(), but that cannot work because the KASAN shadow is not
> set.
> 
> Can you try with the change below ?
Applied your patch on top of 5.19-rc4 and can confirm it works. Thanks!

I'll close here as soon it is in the -rcs.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the Linuxppc-dev mailing list