BUG: Bad page map in process syz-executor.0 pte:fffff9288c120 pmd:473dc067
page:ffffea0001b5dcc0 refcount:1024 mapcount:-1 mapping:ffff88802740edb8 index:0x173 pfn:0x6d773
head:ffffea0001b58000 order:9 entire_mapcount:0 nr_pages_mapped:138 pincount:0
memcg:ffff88807321e000
aops:shmem_aops ino:48a dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001b58001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffffea0001f05f08 ffffea0001f047c8 ffff88802740edb8
head: 0000000000000000 0000000000000000 00000400ffffffff ffff88807321e000
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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:ffff88802740edb8 index:175
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 1 PID: 28293 Comm: syz-executor.0 Not tainted 6.6.0-rc3-syzkaller #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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page map in process syz-executor.0 pte:fffff9288d120 pmd:473dc067
page:ffffea0001b5dc80 refcount:1024 mapcount:-1 mapping:ffff88802740edb8 index:0x172 pfn:0x6d772
head:ffffea0001b58000 order:9 entire_mapcount:0 nr_pages_mapped:137 pincount:0
memcg:ffff88807321e000
aops:shmem_aops ino:48a dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001b58001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffffea0001f05f08 ffffea0001f047c8 ffff88802740edb8
head: 0000000000000000 0000000000000000 00000400ffffffff ffff88807321e000
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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:ffff88802740edb8 index:176
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page map in process syz-executor.0 pte:fffff9288e120 pmd:473dc067
page:ffffea0001b5dc40 refcount:1024 mapcount:-1 mapping:ffff88802740edb8 index:0x171 pfn:0x6d771
head:ffffea0001b58000 order:9 entire_mapcount:0 nr_pages_mapped:136 pincount:0
memcg:ffff88807321e000
aops:shmem_aops ino:48a dentry name:"dev/zero"
flags: 0xfff5800008027c(referenced|uptodate|dirty|lru|workingset|head|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001b58001 dead000000000122 dead000000000400
raw: 0000000000000001 0000000000000000 00000000fffffffe 0000000000000000
head: 00fff5800008027c ffffea0001f05f08 ffffea0001f047c8 ffff88802740edb8
head: 0000000000000000 0000000000000000 00000400ffffffff ffff88807321e000
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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:ffff88802740edb8 index:177
file:dev/zero fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 1 PID: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page state in process syz-executor.0 pfn:6d771
page:ffffea0001b5dc40 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x6d771
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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: 0 PID: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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:180
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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page state in process syz-executor.0 pfn:6d772
page:ffffea0001b5dc80 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x6d772
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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: 0 PID: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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:180
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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page state in process syz-executor.0 pfn:6d773
page:ffffea0001b5dcc0 refcount:0 mapcount:-1 mapping:0000000000000000 index:0x1 pfn:0x6d773
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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: 0 PID: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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:180
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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page state in process syz-executor.0 pfn:6d775
page:ffffea0001b5dd40 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x6d775
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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: 0 PID: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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:180
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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page state in process syz-executor.0 pfn:6d776
page:ffffea0001b5dd80 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x6d776
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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:180
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: 28293 Comm: syz-executor.0 Tainted: G B 6.6.0-rc3-syzkaller #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:180
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: 0033:0x9df280
Code: Unable to access opcode bytes at 0x9df256.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fee8b99c050 RCX: 00007fee8b87cae9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000004000
RBP: 00007fee8b8c847a R08: 0000000020000240 R09: 0000000020000240
R10: 0000000020000100 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000006e R14: 00007fee8b99c050 R15: 00007fee8babfa48
BUG: Bad page state in process syz-executor.0 pfn:6d777
page:ffffea0001b5ddc0 refcount:0 mapcount:1 mapping:0000000000000000 index:0x1 pfn:0x6d777
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 28248, tgid 28245 (syz-executor.0), ts 1205491552573, free_ts 1088424887177
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]
__x64_sys_madvise+0xaa/0x110 mm/madvise.c:1461
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
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