Re: BUG: Bad page map in process init pte:c0ab684c pmd:01182000 (on a PowerMac G4 DP)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux