From: Erhard Furtner <erhard_f@mailbox.org>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6)
Date: Mon, 4 Sep 2023 23:32:44 +0200 [thread overview]
Message-ID: <20230904233244.3d7c90d9@yea> (raw)
In-Reply-To: <c0891617-43b9-5b56-2c51-69eec81e3b48@csgroup.eu>
On Mon, 4 Sep 2023 14:55:17 +0000
Christophe Leroy <christophe.leroy@csgroup.eu> wrote:
> > Ok, so lets come back to normal situation. Can you add back kasan_init()
> > and kasan_late_init(), while keeping the btext changes and Michael's patch.
> >
> > Then see what result you get with CONFIG_KASAN but without
> > CONFIG_KASAN_VMALLOC
> >
> > It would help narrow the problem area because kasan_init() does several
> > things based on CONFIG_KASAN_VMALLOC.
I can't unselect KASAN_VMALLOC, it is forced on. Can only be unselected on PPC_BOOK3S_64 it seems.
Symbol: KASAN_VMALLOC [=y]
Type : bool
Defined at lib/Kconfig.kasan:179
Prompt: Check accesses to vmalloc allocations
Depends on: KASAN [=y] && HAVE_ARCH_KASAN_VMALLOC [=y]
Location:
-> Kernel hacking
-> Memory Debugging
-> KASAN: dynamic memory safety error detector (KASAN [=y])
-> Check accesses to vmalloc allocations (KASAN_VMALLOC [=y])
Selected by [y]:
- PPC [=y] && KASAN [=y] && MODULES [=y]
Selected by [n]:
- PPC_BOOK3S_64 [=n] && <choice> && KASAN [=y] && <choice> && KASAN [=y]
> Another thing that could be interesting to test is to remove (or comment
> out) the following line in arch/powerpc/mm/kasan/Makefile :
>
> obj-$(CONFIG_PPC_BOOK3S_32) += book3s_32.o
>
> That way, the weak version of kasan_init_region() will be used instead
> of the one in book3s_32.c
When I comment out this line the kernel boots fine! Even with btext_unmap() stuff back to default and using 2 CPUs again.
Regards,
Erhard
next prev parent reply other threads:[~2023-09-04 21:33 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 23:48 KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6) Erhard Furtner
2023-08-11 6:45 ` Christophe Leroy
2023-08-13 19:38 ` Erhard Furtner
2023-08-14 9:40 ` Christophe Leroy
2023-08-14 17:27 ` Erhard Furtner
2023-08-15 17:21 ` [PATCH] Add pr_info() traces for investigation Christophe Leroy
2023-08-15 17:25 ` KASAN debug kernel fails to boot at early stage when CONFIG_SMP=y is set (kernel 6.5-rc5, PowerMac G4 3,6) Christophe Leroy
2023-08-15 20:01 ` Erhard Furtner
2023-08-16 15:56 ` Christophe Leroy
2023-08-17 18:32 ` Erhard Furtner
2023-08-17 23:13 ` Michael Ellerman
2023-08-18 9:16 ` Erhard Furtner
2023-08-18 15:47 ` Christophe Leroy
2023-08-18 16:23 ` Erhard Furtner
2023-08-22 7:31 ` Christophe Leroy
2023-08-24 0:00 ` Erhard Furtner
2023-08-24 11:36 ` Michael Ellerman
2023-08-27 23:17 ` Erhard Furtner
2023-08-31 5:32 ` Christophe Leroy
2023-08-31 22:44 ` Erhard Furtner
2023-09-01 7:43 ` Christophe Leroy
2023-09-03 21:06 ` Erhard Furtner
2023-09-04 14:48 ` Christophe Leroy
2023-09-04 14:55 ` Christophe Leroy
2023-09-04 21:32 ` Erhard Furtner [this message]
2023-09-12 0:11 ` Erhard Furtner
2023-09-12 7:47 ` Christophe Leroy
2023-09-12 15:59 ` Erhard Furtner
2023-09-12 17:39 ` Christophe Leroy
2023-09-12 20:09 ` Erhard Furtner
2023-09-13 5:28 ` Christophe Leroy
2023-09-14 4:54 ` Christophe Leroy
2023-09-14 12:33 ` Erhard Furtner
2024-02-28 23:55 ` Erhard Furtner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230904233244.3d7c90d9@yea \
--to=erhard_f@mailbox.org \
--cc=christophe.leroy@csgroup.eu \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).