Bug 216713

Summary: BUG: Bad page map in process init pte:c0ab684c pmd:01182000 (on a PowerMac G4 DP)
Product: Platform Specific/Hardware Reporter: Erhard F. (erhard_f)
Component: PPC-32Assignee: platform_ppc-32
Status: RESOLVED MOVED    
Severity: normal CC: christophe.leroy
Priority: P1    
Hardware: PPC-32   
OS: Linux   
Kernel Version: 6.0.9 Subsystem:
Regression: No Bisected commit-id:
Attachments: kernel dmesg (6.0.9, PowerMac G4 DP)
kernel .config (6.0.9, PowerMac G4 DP)

Description Erhard F. 2022-11-20 20:33:25 UTC
Created attachment 303243 [details]
kernel dmesg (6.0.9, PowerMac G4 DP)

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
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
[...]
Comment 1 Erhard F. 2022-11-20 20:37:13 UTC
Created attachment 303244 [details]
kernel .config (6.0.9, PowerMac G4 DP)
Comment 2 Erhard F. 2022-11-30 21:49:11 UTC
Moved to linux-mm.