BUG: Bad page map in process syz-executor.1 pte:fffffd088c120 pmd:2299e067
page:ffffea0000bddcc0 refcount:1024 mapcount:-1 mapping:ffff88802c01bf58 index:0x173 pfn:0x2f773
head:ffffea0000bd8000 order:9 entire_mapcount:0 nr_pages_mapped:138 pincount:0
memcg:ffff888021a74000
aops:shmem_aops ino:e8 dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0000bd8001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffff888021a761a8 ffffea0000c88008 ffff88802c01bf58
head: 0000000000000000 0000000000000000 00000400ffffffff ffff888021a74000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
addr:0000000020175000 vm_flags:080000f8 anon_vma:0000000000000000 mapping:ffff88802c01bf58 index:175
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 17394 Comm: syz-executor.1 Not tainted 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
print_bad_pte+0x501/0x7a0 mm/memory.c:535
zap_pte_range mm/memory.c:1458 [inline]
zap_pmd_range mm/memory.c:1573 [inline]
zap_pud_range mm/memory.c:1602 [inline]
zap_p4d_range mm/memory.c:1623 [inline]
unmap_page_range+0x216a/0x2c10 mm/memory.c:1644
unmap_single_vma+0x194/0x2b0 mm/memory.c:1690
unmap_vmas+0x1e2/0x330 mm/memory.c:1731
exit_mmap+0x1ad/0xa60 mm/mmap.c:3210
__mmput+0x12a/0x4d0 kernel/fork.c:1349
mmput+0x62/0x70 kernel/fork.c:1371
exit_mm kernel/exit.c:567 [inline]
do_exit+0x9ad/0x2a20 kernel/exit.c:861
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page map in process syz-executor.1 pte:fffffd088d120 pmd:2299e067
page:ffffea0000bddc80 refcount:1024 mapcount:-1 mapping:ffff88802c01bf58 index:0x172 pfn:0x2f772
head:ffffea0000bd8000 order:9 entire_mapcount:0 nr_pages_mapped:137 pincount:0
memcg:ffff888021a74000
aops:shmem_aops ino:e8 dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0000bd8001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffff888021a761a8 ffffea0000c88008 ffff88802c01bf58
head: 0000000000000000 0000000000000000 00000400ffffffff ffff888021a74000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
addr:0000000020176000 vm_flags:080000f8 anon_vma:0000000000000000 mapping:ffff88802c01bf58 index:176
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 1 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
print_bad_pte+0x501/0x7a0 mm/memory.c:535
zap_pte_range mm/memory.c:1458 [inline]
zap_pmd_range mm/memory.c:1573 [inline]
zap_pud_range mm/memory.c:1602 [inline]
zap_p4d_range mm/memory.c:1623 [inline]
unmap_page_range+0x216a/0x2c10 mm/memory.c:1644
unmap_single_vma+0x194/0x2b0 mm/memory.c:1690
unmap_vmas+0x1e2/0x330 mm/memory.c:1731
exit_mmap+0x1ad/0xa60 mm/mmap.c:3210
__mmput+0x12a/0x4d0 kernel/fork.c:1349
mmput+0x62/0x70 kernel/fork.c:1371
exit_mm kernel/exit.c:567 [inline]
do_exit+0x9ad/0x2a20 kernel/exit.c:861
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page map in process syz-executor.1 pte:fffffd088e120 pmd:2299e067
page:ffffea0000bddc40 refcount:1024 mapcount:-1 mapping:ffff88802c01bf58 index:0x171 pfn:0x2f771
head:ffffea0000bd8000 order:9 entire_mapcount:0 nr_pages_mapped:136 pincount:0
memcg:ffff888021a74000
aops:shmem_aops ino:e8 dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0000bd8001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffff888021a761a8 ffffea0000c88008 ffff88802c01bf58
head: 0000000000000000 0000000000000000 00000400ffffffff ffff888021a74000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
addr:0000000020177000 vm_flags:080000f8 anon_vma:0000000000000000 mapping:ffff88802c01bf58 index:177
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
print_bad_pte+0x501/0x7a0 mm/memory.c:535
zap_pte_range mm/memory.c:1458 [inline]
zap_pmd_range mm/memory.c:1573 [inline]
zap_pud_range mm/memory.c:1602 [inline]
zap_p4d_range mm/memory.c:1623 [inline]
unmap_page_range+0x216a/0x2c10 mm/memory.c:1644
unmap_single_vma+0x194/0x2b0 mm/memory.c:1690
unmap_vmas+0x1e2/0x330 mm/memory.c:1731
exit_mmap+0x1ad/0xa60 mm/mmap.c:3210
__mmput+0x12a/0x4d0 kernel/fork.c:1349
mmput+0x62/0x70 kernel/fork.c:1371
exit_mm kernel/exit.c:567 [inline]
do_exit+0x9ad/0x2a20 kernel/exit.c:861
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.1 pfn:2f771
page:ffffea0000bddc40 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x2f771
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
page dumped because: nonzero mapcount
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
Modules linked in:
CPU: 0 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
bad_page+0xb4/0x200 mm/page_alloc.c:513
free_page_is_bad_report mm/page_alloc.c:949 [inline]
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1115 [inline]
free_unref_page_prepare+0x827/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
release_pages+0x51b/0x14e0 mm/swap.c:1008
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x582/0x1040 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243
evict+0x2ed/0x6b0 fs/inode.c:664
iput_final fs/inode.c:1775 [inline]
iput.part.0+0x55e/0x7a0 fs/inode.c:1801
iput+0x5c/0x80 fs/inode.c:1791
dentry_unlink_inode+0x292/0x430 fs/dcache.c:401
__dentry_kill+0x3b8/0x640 fs/dcache.c:607
dentry_kill fs/dcache.c:733 [inline]
dput+0x8b7/0xf80 fs/dcache.c:913
__fput+0x536/0xa70 fs/file_table.c:392
task_work_run+0x14d/0x240 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.1 pfn:2f772
page:ffffea0000bddc80 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x2f772
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
page dumped because: nonzero mapcount
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
Modules linked in:
CPU: 0 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
bad_page+0xb4/0x200 mm/page_alloc.c:513
free_page_is_bad_report mm/page_alloc.c:949 [inline]
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1115 [inline]
free_unref_page_prepare+0x827/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
release_pages+0x51b/0x14e0 mm/swap.c:1008
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x582/0x1040 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243
evict+0x2ed/0x6b0 fs/inode.c:664
iput_final fs/inode.c:1775 [inline]
iput.part.0+0x55e/0x7a0 fs/inode.c:1801
iput+0x5c/0x80 fs/inode.c:1791
dentry_unlink_inode+0x292/0x430 fs/dcache.c:401
__dentry_kill+0x3b8/0x640 fs/dcache.c:607
dentry_kill fs/dcache.c:733 [inline]
dput+0x8b7/0xf80 fs/dcache.c:913
__fput+0x536/0xa70 fs/file_table.c:392
task_work_run+0x14d/0x240 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.1 pfn:2f773
page:ffffea0000bddcc0 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x2f773
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
page dumped because: nonzero mapcount
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
Modules linked in:
CPU: 0 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
bad_page+0xb4/0x200 mm/page_alloc.c:513
free_page_is_bad_report mm/page_alloc.c:949 [inline]
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1115 [inline]
free_unref_page_prepare+0x827/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
release_pages+0x51b/0x14e0 mm/swap.c:1008
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x582/0x1040 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243
evict+0x2ed/0x6b0 fs/inode.c:664
iput_final fs/inode.c:1775 [inline]
iput.part.0+0x55e/0x7a0 fs/inode.c:1801
iput+0x5c/0x80 fs/inode.c:1791
dentry_unlink_inode+0x292/0x430 fs/dcache.c:401
__dentry_kill+0x3b8/0x640 fs/dcache.c:607
dentry_kill fs/dcache.c:733 [inline]
dput+0x8b7/0xf80 fs/dcache.c:913
__fput+0x536/0xa70 fs/file_table.c:392
task_work_run+0x14d/0x240 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.1 pfn:2f775
page:ffffea0000bddd40 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x2f775
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0x0()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
page dumped because: nonzero mapcount
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
Modules linked in:
CPU: 0 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
bad_page+0xb4/0x200 mm/page_alloc.c:513
free_page_is_bad_report mm/page_alloc.c:949 [inline]
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1115 [inline]
free_unref_page_prepare+0x827/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
release_pages+0x51b/0x14e0 mm/swap.c:1008
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x582/0x1040 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243
evict+0x2ed/0x6b0 fs/inode.c:664
iput_final fs/inode.c:1775 [inline]
iput.part.0+0x55e/0x7a0 fs/inode.c:1801
iput+0x5c/0x80 fs/inode.c:1791
dentry_unlink_inode+0x292/0x430 fs/dcache.c:401
__dentry_kill+0x3b8/0x640 fs/dcache.c:607
dentry_kill fs/dcache.c:733 [inline]
dput+0x8b7/0xf80 fs/dcache.c:913
__fput+0x536/0xa70 fs/file_table.c:392
task_work_run+0x14d/0x240 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.1 pfn:2f776
page:ffffea0000bddd80 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x2f776
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0x0()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
page dumped because: nonzero mapcount
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
Modules linked in:
CPU: 1 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
bad_page+0xb4/0x200 mm/page_alloc.c:513
free_page_is_bad_report mm/page_alloc.c:949 [inline]
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1115 [inline]
free_unref_page_prepare+0x827/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
release_pages+0x51b/0x14e0 mm/swap.c:1008
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x582/0x1040 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243
evict+0x2ed/0x6b0 fs/inode.c:664
iput_final fs/inode.c:1775 [inline]
iput.part.0+0x55e/0x7a0 fs/inode.c:1801
iput+0x5c/0x80 fs/inode.c:1791
dentry_unlink_inode+0x292/0x430 fs/dcache.c:401
__dentry_kill+0x3b8/0x640 fs/dcache.c:607
dentry_kill fs/dcache.c:733 [inline]
dput+0x8b7/0xf80 fs/dcache.c:913
__fput+0x536/0xa70 fs/file_table.c:392
task_work_run+0x14d/0x240 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.1 pfn:2f777
page:ffffea0000bdddc0 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x2f777
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0x0()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
page dumped because: nonzero mapcount
page_owner tracks the page as allocated
page last allocated via order 9, migratetype Movable, gfp_mask 0x1c24ca(GFP_TRANSHUGE), pid 17388, tgid 17384 (syz-executor.1), ts 692426027496, free_ts 690647077734
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
hpage_collapse_alloc_page mm/khugepaged.c:893 [inline]
alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066
collapse_file+0x20c/0x5720 mm/khugepaged.c:1807
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__folio_put+0xeb/0x110 mm/swap.c:127
folio_put include/linux/mm.h:1475 [inline]
put_page+0x21e/0x280 include/linux/mm.h:1544
collapse_file+0x1147/0x5720 mm/khugepaged.c:2208
hpage_collapse_scan_file+0x6fa/0x16b0 mm/khugepaged.c:2306
madvise_collapse+0x523/0xb70 mm/khugepaged.c:2748
madvise_vma_behavior+0x200/0x1e50 mm/madvise.c:1096
madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1270
do_madvise+0x333/0x660 mm/madvise.c:1450
__do_sys_madvise mm/madvise.c:1463 [inline]
__se_sys_madvise mm/madvise.c:1461 [inline]
__ia32_sys_madvise+0xa8/0x110 mm/madvise.c:1461
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
Modules linked in:
CPU: 1 PID: 17394 Comm: syz-executor.1 Tainted: G B 6.6.0-rc1-syzkaller-00269-ge789286468a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
bad_page+0xb4/0x200 mm/page_alloc.c:513
free_page_is_bad_report mm/page_alloc.c:949 [inline]
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1115 [inline]
free_unref_page_prepare+0x827/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
release_pages+0x51b/0x14e0 mm/swap.c:1008
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x582/0x1040 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x392/0xb50 mm/shmem.c:1243
evict+0x2ed/0x6b0 fs/inode.c:664
iput_final fs/inode.c:1775 [inline]
iput.part.0+0x55e/0x7a0 fs/inode.c:1801
iput+0x5c/0x80 fs/inode.c:1791
dentry_unlink_inode+0x292/0x430 fs/dcache.c:401
__dentry_kill+0x3b8/0x640 fs/dcache.c:607
dentry_kill fs/dcache.c:733 [inline]
dput+0x8b7/0xf80 fs/dcache.c:913
__fput+0x536/0xa70 fs/file_table.c:392
task_work_run+0x14d/0x240 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0023:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:0000000020000040 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 0000000000000400 RCX: 00000000000000ae
RDX: 00000000d6d40b35 RSI: 0000000020000180 RDI: 00000000200001c0
RBP: 00000000c3c34282 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000