BUG: Bad page map in process syz-executor.0 pte:fffffaa88c120 pmd:2a34b067
page:ffffea000155dcc0 refcount:823 mapcount:-1 mapping:ffff888015aed338 index:0x173 pfn:0x55773
head:ffffea0001558000 order:9 entire_mapcount:0 nr_pages_mapped:138 pincount:0
memcg:ffff88802f48a000
aops:shmem_aops ino:6b1 dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001558001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffffea00004113c8 ffffea0001cede88 ffff888015aed338
head: 0000000000000000 0000000000000000 00000337ffffffff ffff88802f48a000
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
addr:0000000020175000 vm_flags:080000f8 anon_vma:0000000000000000 mapping:ffff888015aed338 index:175
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 1 PID: 32619 Comm: syz-executor.0 Not tainted 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page map in process syz-executor.0 pte:fffffaa88d120 pmd:2a34b067
page:ffffea000155dc80 refcount:823 mapcount:-1 mapping:ffff888015aed338 index:0x172 pfn:0x55772
head:ffffea0001558000 order:9 entire_mapcount:0 nr_pages_mapped:137 pincount:0
memcg:ffff88802f48a000
aops:shmem_aops ino:6b1 dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001558001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffffea00004113c8 ffffea0001cede88 ffff888015aed338
head: 0000000000000000 0000000000000000 00000337ffffffff ffff88802f48a000
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
addr:0000000020176000 vm_flags:080000f8 anon_vma:0000000000000000 mapping:ffff888015aed338 index:176
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page map in process syz-executor.0 pte:fffffaa88e120 pmd:2a34b067
page:ffffea000155dc40 refcount:823 mapcount:-1 mapping:ffff888015aed338 index:0x171 pfn:0x55771
head:ffffea0001558000 order:9 entire_mapcount:0 nr_pages_mapped:136 pincount:0
memcg:ffff88802f48a000
aops:shmem_aops ino:6b1 dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001558001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffffea00004113c8 ffffea0001cede88 ffff888015aed338
head: 0000000000000000 0000000000000000 00000337ffffffff ffff88802f48a000
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
addr:0000000020177000 vm_flags:080000f8 anon_vma:0000000000000000 mapping:ffff888015aed338 index:177
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.0 pfn:55771
page:ffffea000155dc40 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x55771
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
Modules linked in:
CPU: 1 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.0 pfn:55772
page:ffffea000155dc80 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x55772
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
Modules linked in:
CPU: 1 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.0 pfn:55773
page:ffffea000155dcc0 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x55773
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
Modules linked in:
CPU: 1 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.0 pfn:55775
page:ffffea000155dd40 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x55775
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
Modules linked in:
CPU: 1 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.0 pfn:55776
page:ffffea000155dd80 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x55776
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
Modules linked in:
CPU: 1 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: Bad page state in process syz-executor.0 pfn:55777
page:ffffea000155ddc0 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x55777
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 32637, tgid 32619 (syz-executor.0), ts 1766237911028, free_ts 1765674460772
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
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
Modules linked in:
CPU: 1 PID: 32619 Comm: syz-executor.0 Tainted: G B 6.6.0-rc2-syzkaller-00018-g2cf0f7156238 #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
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
__do_fast_syscall_32+0x6d/0xe0 arch/x86/entry/common.c:181
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f02579
Code: Unable to access opcode bytes at 0xf7f0254f.
RSP: 002b:00000000f749fadc EFLAGS: 00000246 ORIG_RAX: 00000000000000f0
RAX: 0000000000000001 RBX: 00000000f737afc8 RCX: 0000000000000081
RDX: 00000000000f4240 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000019 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000