From: "Nicholas Piggin" <npiggin@gmail.com>
To: "Erhard F." <erhard_f@mailbox.org>, <linux-mm@kvack.org>
Subject: Re: BUG: Bad page map in process init pte:c0ab684c pmd:01182000 (on a PowerMac G4 DP)
Date: Mon, 12 Dec 2022 14:31:35 +1000 [thread overview]
Message-ID: <COZK2W38W2NA.27P9YGDJYUOBO@bobo> (raw)
In-Reply-To: <20221130224402.15c0cf8b@yea>
On Thu Dec 1, 2022 at 7:44 AM AEST, Erhard F. wrote:
> Getting this at boot sometimes, but not always (PowerMac G4 DP, kernel 6.0.9):
>
> [...]
> Freeing unused kernel image (initmem) memory: 1328K
> Checked W+X mappings: passed, no W+X pages found
> rodata_test: all tests were successful
> Run /sbin/init as init process
> _swap_info_get: Bad swap file entry 24c0ab68
> BUG: Bad page map in process init pte:c0ab684c pmd:01182000
Have you run memtest on the system? Are the messages related to a
kernel upgrade? This and your KASAN bugs look possibly like random
corruption.
Although with that KASAN one it's strange that kernfs_node_cache
was involved both times, it's strange that page tables are pointing
to that same slab memory. It could be a page table page use-after
-free maybe? Maybe with the page table fragment code. I'm sure other
people would have hit that before though, so I don't know what to
suggest.
Thanks,
Nick
> addr:a7891000 vm_flags:00000070 anon_vma:00000000 mapping:00000000 index:a7891
> file:(null) fault:0x0 mmap:0x0 read_folio:0x0
> CPU: 0 PID: 1 Comm: init Tainted: G T 6.0.9-gentoo-PMacG4 #1
> Call Trace:
> [f1025810] [c0629064] dump_stack_lvl+0x60/0xa4 (unreliable)
> [f1025830] [c0205054] print_bad_pte+0x1c8/0x254
> [f1025870] [c02081d4] unmap_page_range+0x6a0/0x790
> [f10258e0] [c0208794] unmap_vmas+0xf0/0x1d8
> [f1025930] [c020f878] unmap_region+0xac/0x140
> [f10259b0] [c02125c8] __do_munmap+0x1ec/0x540
> [f10259f0] [c021425c] mmap_region+0x260/0x658
> [f1025a50] [c0214924] do_mmap+0x2d0/0x530
> [f1025a90] [c01ecab8] vm_mmap_pgoff+0x110/0x1a4
> [f1025ae0] [c0211818] ksys_mmap_pgoff+0xa4/0x154
> [f1025b10] [c0015b30] system_call_exception+0xc0/0x178
> [f1025f30] [c001c1a8] ret_from_syscall+0x0/0x2c
> --- interrupt: c00 at 0xa7e2a9a8
> NIP: a7e2a9a8 LR: a7e10758 CTR: a7e20650
> REGS: f1025f40 TRAP: 0c00 Tainted: G T (6.0.9-gentoo-PMacG4)
> MSR: 0000d032 <EE,PR,ME,IR,DR,RI> CR: 24482288 XER: 00000000
>
> GPR00: 000000c0 afea4910 00000000 a7890000 00381edc 00000005 00000812 00000003
> GPR08: 00000000 afea4dc0 afea5020 a7e20650 0a574b24 00000000 00000003 00000000
> GPR16: 00000000 afea4b58 afea4940 a7e55018 a7e53f08 00381edc 004e26ff a7e51760
> GPR24: 00000003 afea4b20 00000000 00000000 00000002 a7e51790 a7e54fe0 afea49f0
> NIP [a7e2a9a8] 0xa7e2a9a8
> LR [a7e10758] 0xa7e10758
> --- interrupt: c00
> Disabling lock debugging due to kernel taint
> BUG: Bad page map in process init pte:c1182089 pmd:01182000
> addr:a7892000 vm_flags:00000070 anon_vma:00000000 mapping:00000000 index:a7892
> file:(null) fault:0x0 mmap:0x0 read_folio:0x0
> CPU: 1 PID: 1 Comm: init Tainted: G B T 6.0.9-gentoo-PMacG4 #1
> Call Trace:
> [f1025800] [c0629064] dump_stack_lvl+0x60/0xa4 (unreliable)
> [f1025820] [c0205054] print_bad_pte+0x1c8/0x254
> [f1025860] [c0206ee0] vm_normal_page+0x74/0x110
> [f1025870] [c0207da0] unmap_page_range+0x26c/0x790
> [f10258e0] [c0208794] unmap_vmas+0xf0/0x1d8
> [f1025930] [c020f878] unmap_region+0xac/0x140
> [f10259b0] [c02125c8] __do_munmap+0x1ec/0x540
> [f10259f0] [c021425c] mmap_region+0x260/0x658
> [f1025a50] [c0214924] do_mmap+0x2d0/0x530
> [f1025a90] [c01ecab8] vm_mmap_pgoff+0x110/0x1a4
> [f1025ae0] [c0211818] ksys_mmap_pgoff+0xa4/0x154
> [f1025b10] [c0015b30] system_call_exception+0xc0/0x178
> [f1025f30] [c001c1a8] ret_from_syscall+0x0/0x2c
> --- interrupt: c00 at 0xa7e2a9a8
> NIP: a7e2a9a8 LR: a7e10758 CTR: a7e20650
> REGS: f1025f40 TRAP: 0c00 Tainted: G B T (6.0.9-gentoo-PMacG4)
> MSR: 0000d032 <EE,PR,ME,IR,DR,RI> CR: 24482288 XER: 00000000
>
> GPR00: 000000c0 afea4910 00000000 a7890000 00381edc 00000005 00000812 00000003
> GPR08: 00000000 afea4dc0 afea5020 a7e20650 0a574b24 00000000 00000003 00000000
> GPR16: 00000000 afea4b58 afea4940 a7e55018 a7e53f08 00381edc 004e26ff a7e51760
> GPR24: 00000003 afea4b20 00000000 00000000 00000002 a7e51790 a7e54fe0 afea49f0
> NIP [a7e2a9a8] 0xa7e2a9a8
> LR [a7e10758] 0xa7e10758
> --- interrupt: c00
> BUG: Bad page map in process init pte:648a5747 pmd:01182000
> page:(ptrval) refcount:0 mapcount:-1 mapping:00000000 index:0x1 pfn:0x648a5
> flags: 0x80000002(referenced|zone=2)
> raw: 80000002 00000100 00000122 00000000 00000001 00000000 fffffffe 00000000
> raw: 00000000
> page dumped because: bad pte
> addr:a7896000 vm_flags:00000070 anon_vma:00000000 mapping:00000000 index:a7896
> file:(null) fault:0x0 mmap:0x0 read_folio:0x0
> CPU: 1 PID: 1 Comm: init Tainted: G B T 6.0.9-gentoo-PMacG4 #1
> Call Trace:
> [f1025810] [c0629064] dump_stack_lvl+0x60/0xa4 (unreliable)
> [f1025830] [c0205054] print_bad_pte+0x1c8/0x254
> [f1025870] [c0207fc8] unmap_page_range+0x494/0x790
> [f10258e0] [c0208794] unmap_vmas+0xf0/0x1d8
> [f1025930] [c020f878] unmap_region+0xac/0x140
> [f10259b0] [c02125c8] __do_munmap+0x1ec/0x540
> [f10259f0] [c021425c] mmap_region+0x260/0x658
> [f1025a50] [c0214924] do_mmap+0x2d0/0x530
> [f1025a90] [c01ecab8] vm_mmap_pgoff+0x110/0x1a4
> [f1025ae0] [c0211818] ksys_mmap_pgoff+0xa4/0x154
> [f1025b10] [c0015b30] system_call_exception+0xc0/0x178
> [f1025f30] [c001c1a8] ret_from_syscall+0x0/0x2c
> --- interrupt: c00 at 0xa7e2a9a8
> NIP: a7e2a9a8 LR: a7e10758 CTR: a7e20650
> REGS: f1025f40 TRAP: 0c00 Tainted: G B T (6.0.9-gentoo-PMacG4)
> MSR: 0000d032 <EE,PR,ME,IR,DR,RI> CR: 24482288 XER: 00000000
>
> GPR00: 000000c0 afea4910 00000000 a7890000 00381edc 00000005 00000812 00000003
> GPR08: 00000000 afea4dc0 afea5020 a7e20650 0a574b24 00000000 00000003 00000000
> GPR16: 00000000 afea4b58 afea4940 a7e55018 a7e53f08 00381edc 004e26ff a7e51760
> GPR24: 00000003 afea4b20 00000000 00000000 00000002 a7e51790 a7e54fe0 afea49f0
> NIP [a7e2a9a8] 0xa7e2a9a8
> LR [a7e10758] 0xa7e10758
> --- interrupt: c00
> _swap_info_get: Bad swap file entry 20c09b05
> BUG: Bad page map in process init pte:c09b0540 pmd:01182000
> [...]
>
>
> This could be related to https://bugzilla.kernel.org/show_bug.cgi?id=216715 but I am not sure.
>
> This has been https://bugzilla.kernel.org/show_bug.cgi?id=216713 but I was suggested to better post issues like this here on the mailing list.
>
> Kernel dmesg and .config attached.
>
> Cheers,
> Erhard F.
next prev parent reply other threads:[~2022-12-12 4:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-30 21:44 Erhard F.
2022-12-12 4:31 ` Nicholas Piggin [this message]
2022-12-12 22:17 ` Erhard F.
2022-12-17 21:39 ` Erhard F.
2022-12-18 11:38 ` Christophe Leroy
2022-12-18 22:47 ` Erhard F.
2025-04-30 16:24 ` Erhard Furtner
2022-12-31 17:22 ` Erhard F.
2024-02-29 1:09 ` Erhard Furtner
2024-02-29 17:11 ` Christophe Leroy
2024-03-05 1:29 ` Erhard Furtner
2024-03-05 1:57 ` Erhard Furtner
2024-04-17 0:56 ` Erhard Furtner
2024-06-19 22:42 ` Erhard Furtner
2024-08-11 16:52 ` Jonas Vidra
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=COZK2W38W2NA.27P9YGDJYUOBO@bobo \
--to=npiggin@gmail.com \
--cc=erhard_f@mailbox.org \
--cc=linux-mm@kvack.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