From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: "mbizon@freebox.fr" <mbizon@freebox.fr>,
Michael Ellerman <mpe@ellerman.id.au>,
Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
Paul Mackerras <paulus@samba.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH] powerpc/603: Fix boot failure with DEBUG_PAGEALLOC and KFENCE
Date: Tue, 7 Dec 2021 17:49:37 +0000 [thread overview]
Message-ID: <191754d3-e13d-6fe2-db4b-99d78cbf2a2e@csgroup.eu> (raw)
In-Reply-To: <12988dafdf7e14ba6db69ab483a2eb53e411fc0d.camel@freebox.fr>
Le 07/12/2021 à 11:34, Maxime Bizon a écrit :
>
> On Tue, 2021-12-07 at 06:10 +0000, Christophe Leroy wrote:
>
> Hello,
>
> With the patch applied and
>
> CONFIG_DEBUG_PAGEALLOC=y
> CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT=y
> CONFIG_DEBUG_VM=y
>
> I get tons of this during boot:
>
> [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes, linear)
> [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
> [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
> [ 0.000000] ------------[ cut here ]------------
> [ 0.000000] WARNING: CPU: 0 PID: 0 at arch/powerpc/mm/pgtable.c:194 set_pte_at+0x18/0x160
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.15.0+ #442
> [ 0.000000] NIP: 80015ebc LR: 80016728 CTR: 800166e4
> [ 0.000000] REGS: 80751dd0 TRAP: 0700 Not tainted (5.15.0+)
> [ 0.000000] MSR: 00021032 <ME,IR,DR,RI> CR: 42228882 XER: 20000000
> [ 0.000000]
> [ 0.000000] GPR00: 800b8dc8 80751e80 806c6300 807311d8 807a1000 8ffffe84 80751ea8 00000000
> [ 0.000000] GPR08: 007a1591 00000001 007a1180 00000000 42224882 00000000 3ff9c608 3fffd79c
> [ 0.000000] GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 800166e4 807a2000
> [ 0.000000] GPR24: 807a1fff 807311d8 807311d8 807a2000 80768804 00000000 807a1000 007a1180
> [ 0.000000] NIP [80015ebc] set_pte_at+0x18/0x160
> [ 0.000000] LR [80016728] set_page_attr+0x44/0xc0
> [ 0.000000] Call Trace:
> [ 0.000000] [80751e80] [80058570] console_unlock+0x340/0x428 (unreliable)
> [ 0.000000] [80751ea0] [00000000] 0x0
> [ 0.000000] [80751ec0] [800b8dc8] __apply_to_page_range+0x144/0x2a8
> [ 0.000000] [80751f00] [80016918] __kernel_map_pages+0x54/0x64
> [ 0.000000] [80751f10] [800cfeb0] __free_pages_ok+0x1b0/0x440
> [ 0.000000] [80751f50] [805cfc8c] memblock_free_all+0x1d8/0x274
> [ 0.000000] [80751f90] [805c5e0c] mem_init+0x3c/0xd0
> [ 0.000000] [80751fb0] [805c0bdc] start_kernel+0x404/0x5c4
> [ 0.000000] [80751ff0] [000033f0] 0x33f0
> [ 0.000000] Instruction dump:
> [ 0.000000] 7c630034 83e1000c 5463d97e 7c0803a6 38210010 4e800020 9421ffe0 93e1001c
> [ 0.000000] 83e60000 81250000 71290001 41820014 <0fe00000> 7c0802a6 93c10018 90010024
>
>
That's unrelated to this patch.
The problem is linked to patch c988cfd38e48 ("powerpc/32: use
set_memory_attr()"), which changed from using __set_pte_at() to using
set_memory_attr() which uses set_pte_at().
set_pte_at() has additional checks and shall not be used to updating an
existing PTE.
Wondering if I should just use __set_pte_at() instead like in the past,
or do like commit 9f7853d7609d ("powerpc/mm: Fix set_memory_*() against
concurrent accesses") and use pte_update()
Michael, Aneesh, any suggestion ?
Thanks
Christophe
next prev parent reply other threads:[~2021-12-07 17:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-07 6:10 [PATCH] powerpc/603: Fix boot failure with DEBUG_PAGEALLOC and KFENCE Christophe Leroy
2021-12-07 10:34 ` Maxime Bizon
2021-12-07 17:49 ` Christophe Leroy [this message]
2021-12-09 6:08 ` Michael Ellerman
2021-12-09 17:26 ` Christophe Leroy
2022-01-19 11:19 ` Christophe Leroy
2022-02-18 2:23 ` Michael Ellerman
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=191754d3-e13d-6fe2-db4b-99d78cbf2a2e@csgroup.eu \
--to=christophe.leroy@csgroup.eu \
--cc=aneesh.kumar@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mbizon@freebox.fr \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=stable@vger.kernel.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).