BUG: Bad page map in process syz-executor.1 pte:fffffc0610120 pmd:784e2067
page:ffffea0000fe7bc0 refcount:2 mapcount:-1 mapping:ffff88807872c5f8 index:0x490 pfn:0x3f9ef
memcg:ffff88802053c000
aops:shmem_aops ino:175b dentry name:"memfd:syzkaller"
flags: 0xfff00000080038(uptodate|dirty|lru|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080038 ffffea00011a6e88 ffffea0001237808 ffff88807872c5f8
raw: 0000000000000490 0000000000000000 00000002fffffffe ffff88802053c000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 27878, tgid 27877 (syz-executor.4), ts 1458318451351, free_ts 1457989294918
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
__folio_alloc+0x13/0x30 mm/page_alloc.c:4458
vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2259
shmem_alloc_folio mm/shmem.c:1658 [inline]
shmem_alloc_and_acct_folio+0x438/0x9b0 mm/shmem.c:1683
shmem_get_folio_gfp+0xca4/0x2b60 mm/shmem.c:2020
shmem_get_folio mm/shmem.c:2143 [inline]
shmem_write_begin+0x170/0x300 mm/shmem.c:2688
generic_perform_write+0x31b/0x630 mm/filemap.c:3942
shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x782/0xaf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 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+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
__folio_batch_release+0x84/0x100 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x6ad/0x19c0 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1243
evict+0x2a4/0x620 fs/inode.c:664
__dentry_kill+0x436/0x650 fs/dcache.c:607
dentry_kill+0xbb/0x290
dput+0x21e/0x470 fs/dcache.c:913
__fput+0x60d/0x910 fs/file_table.c:392
task_work_run+0x24a/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
addr:0000000020006000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff8880828949d0 index:5
file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio
CPU: 1 PID: 27837 Comm: syz-executor.1 Not tainted 6.6.0-rc2-syzkaller-00244-g27bbf45eae9c #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+0x1e7/0x2d0 lib/dump_stack.c:106
print_bad_pte+0x581/0x5c0 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+0x1a76/0x3320 mm/memory.c:1644
unmap_vmas+0x2b8/0x460 mm/memory.c:1731
exit_mmap+0x297/0xc50 mm/mmap.c:3210
__mmput+0x115/0x3c0 kernel/fork.c:1349
exit_mm+0x21f/0x300 kernel/exit.c:567
do_exit+0x9af/0x2650 kernel/exit.c:861
do_group_exit+0x206/0x2c0 kernel/exit.c:1024
get_signal+0x175d/0x1840 kernel/signal.c:2892
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6b6aa7cae9
Code: Unable to access opcode bytes at 0x7f6b6aa7cabf.
RSP: 002b:00007f6b6b89a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffe5 RBX: 00007f6b6ab9bf80 RCX: 00007f6b6aa7cae9
RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007
RBP: 00007f6b6aac847a R08: 00000000fffffffd R09: 0000000000000000
R10: 00000000fffffffa R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b6ab9bf80 R15: 00007fff8f48b638
BUG: Bad page map in process syz-executor.1 pte:fffffc0611120 pmd:784e2067
page:ffffea0000fe7b80 refcount:2 mapcount:-1 mapping:ffff88801eb96db8 index:0x1b4 pfn:0x3f9ee
memcg:ffff888038d80000
aops:shmem_aops ino:12fa dentry name:"memfd:syzkaller"
flags: 0xfff00000080038(uptodate|dirty|lru|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080038 ffffea0000fe7b48 ffffea0000e15e48 ffff88801eb96db8
raw: 00000000000001b4 0000000000000000 00000002fffffffe ffff888038d80000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 27880, tgid 27879 (syz-executor.0), ts 1458325408487, free_ts 1457988652683
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
__folio_alloc+0x13/0x30 mm/page_alloc.c:4458
vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2259
shmem_alloc_folio mm/shmem.c:1658 [inline]
shmem_alloc_and_acct_folio+0x438/0x9b0 mm/shmem.c:1683
shmem_get_folio_gfp+0xca4/0x2b60 mm/shmem.c:2020
shmem_get_folio mm/shmem.c:2143 [inline]
shmem_write_begin+0x170/0x300 mm/shmem.c:2688
generic_perform_write+0x31b/0x630 mm/filemap.c:3942
shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x782/0xaf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 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+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
__folio_batch_release+0x84/0x100 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x6ad/0x19c0 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1243
evict+0x2a4/0x620 fs/inode.c:664
__dentry_kill+0x436/0x650 fs/dcache.c:607
dentry_kill+0xbb/0x290
dput+0x21e/0x470 fs/dcache.c:913
__fput+0x60d/0x910 fs/file_table.c:392
task_work_run+0x24a/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
addr:0000000020007000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff8880828949d0 index:6
file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio
CPU: 0 PID: 27837 Comm: syz-executor.1 Tainted: G B 6.6.0-rc2-syzkaller-00244-g27bbf45eae9c #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+0x1e7/0x2d0 lib/dump_stack.c:106
print_bad_pte+0x581/0x5c0 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+0x1a76/0x3320 mm/memory.c:1644
unmap_vmas+0x2b8/0x460 mm/memory.c:1731
exit_mmap+0x297/0xc50 mm/mmap.c:3210
__mmput+0x115/0x3c0 kernel/fork.c:1349
exit_mm+0x21f/0x300 kernel/exit.c:567
do_exit+0x9af/0x2650 kernel/exit.c:861
do_group_exit+0x206/0x2c0 kernel/exit.c:1024
get_signal+0x175d/0x1840 kernel/signal.c:2892
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6b6aa7cae9
Code: Unable to access opcode bytes at 0x7f6b6aa7cabf.
RSP: 002b:00007f6b6b89a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffe5 RBX: 00007f6b6ab9bf80 RCX: 00007f6b6aa7cae9
RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007
RBP: 00007f6b6aac847a R08: 00000000fffffffd R09: 0000000000000000
R10: 00000000fffffffa R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b6ab9bf80 R15: 00007fff8f48b638
BUG: Bad page map in process syz-executor.1 pte:fffffc0612120 pmd:784e2067
page:ffffea0000fe7b40 refcount:2 mapcount:-1 mapping:ffff88801eb96db8 index:0x1b3 pfn:0x3f9ed
memcg:ffff888038d80000
aops:shmem_aops ino:12fa dentry name:"memfd:syzkaller"
flags: 0xfff00000080038(uptodate|dirty|lru|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080038 ffffea0000fe7b08 ffffea0000e15e48 ffff88801eb96db8
raw: 00000000000001b3 0000000000000000 00000002fffffffe ffff888038d80000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 27880, tgid 27879 (syz-executor.0), ts 1458325311104, free_ts 1457988668600
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
__folio_alloc+0x13/0x30 mm/page_alloc.c:4458
vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2259
shmem_alloc_folio mm/shmem.c:1658 [inline]
shmem_alloc_and_acct_folio+0x438/0x9b0 mm/shmem.c:1683
shmem_get_folio_gfp+0xca4/0x2b60 mm/shmem.c:2020
shmem_get_folio mm/shmem.c:2143 [inline]
shmem_write_begin+0x170/0x300 mm/shmem.c:2688
generic_perform_write+0x31b/0x630 mm/filemap.c:3942
shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x782/0xaf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 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+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
__folio_batch_release+0x84/0x100 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x6ad/0x19c0 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1243
evict+0x2a4/0x620 fs/inode.c:664
__dentry_kill+0x436/0x650 fs/dcache.c:607
dentry_kill+0xbb/0x290
dput+0x21e/0x470 fs/dcache.c:913
__fput+0x60d/0x910 fs/file_table.c:392
task_work_run+0x24a/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
addr:0000000020008000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff8880828949d0 index:7
file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio
CPU: 1 PID: 27837 Comm: syz-executor.1 Tainted: G B 6.6.0-rc2-syzkaller-00244-g27bbf45eae9c #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+0x1e7/0x2d0 lib/dump_stack.c:106
print_bad_pte+0x581/0x5c0 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+0x1a76/0x3320 mm/memory.c:1644
unmap_vmas+0x2b8/0x460 mm/memory.c:1731
exit_mmap+0x297/0xc50 mm/mmap.c:3210
__mmput+0x115/0x3c0 kernel/fork.c:1349
exit_mm+0x21f/0x300 kernel/exit.c:567
do_exit+0x9af/0x2650 kernel/exit.c:861
do_group_exit+0x206/0x2c0 kernel/exit.c:1024
get_signal+0x175d/0x1840 kernel/signal.c:2892
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6b6aa7cae9
Code: Unable to access opcode bytes at 0x7f6b6aa7cabf.
RSP: 002b:00007f6b6b89a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffe5 RBX: 00007f6b6ab9bf80 RCX: 00007f6b6aa7cae9
RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007
RBP: 00007f6b6aac847a R08: 00000000fffffffd R09: 0000000000000000
R10: 00000000fffffffa R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b6ab9bf80 R15: 00007fff8f48b638
BUG: Bad page state in process syz-executor.1 pfn:3f9ee
page:ffffea0000fe7b80 refcount:0 mapcount:-1 mapping:ffff88801eb96db8 index:0x1b4 pfn:0x3f9ee
aops:shmem_aops ino:12fa dentry name:"memfd:syzkaller"
flags: 0xfff00000080018(uptodate|dirty|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080018 ffffea0000fe7bc8 ffffc900098572e0 ffff88801eb96db8
raw: 00000000000001b4 0000000000000000 00000000fffffffe 0000000000000000
page dumped because: non-NULL mapping
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 27880, tgid 27879 (syz-executor.0), ts 1458325408487, free_ts 1457988652683
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
__folio_alloc+0x13/0x30 mm/page_alloc.c:4458
vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2259
shmem_alloc_folio mm/shmem.c:1658 [inline]
shmem_alloc_and_acct_folio+0x438/0x9b0 mm/shmem.c:1683
shmem_get_folio_gfp+0xca4/0x2b60 mm/shmem.c:2020
shmem_get_folio mm/shmem.c:2143 [inline]
shmem_write_begin+0x170/0x300 mm/shmem.c:2688
generic_perform_write+0x31b/0x630 mm/filemap.c:3942
shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x782/0xaf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 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+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
__folio_batch_release+0x84/0x100 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x6ad/0x19c0 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1243
evict+0x2a4/0x620 fs/inode.c:664
__dentry_kill+0x436/0x650 fs/dcache.c:607
dentry_kill+0xbb/0x290
dput+0x21e/0x470 fs/dcache.c:913
__fput+0x60d/0x910 fs/file_table.c:392
task_work_run+0x24a/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
Modules linked in:
CPU: 0 PID: 27837 Comm: syz-executor.1 Tainted: G B 6.6.0-rc2-syzkaller-00244-g27bbf45eae9c #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+0x1e7/0x2d0 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:513
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1128 [inline]
free_unref_page_prepare+0x97c/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
tlb_batch_pages_flush mm/mmu_gather.c:98 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:293 [inline]
tlb_flush_mmu+0x34c/0x4e0 mm/mmu_gather.c:300
zap_pte_range mm/memory.c:1534 [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+0x29dc/0x3320 mm/memory.c:1644
unmap_vmas+0x2b8/0x460 mm/memory.c:1731
exit_mmap+0x297/0xc50 mm/mmap.c:3210
__mmput+0x115/0x3c0 kernel/fork.c:1349
exit_mm+0x21f/0x300 kernel/exit.c:567
do_exit+0x9af/0x2650 kernel/exit.c:861
do_group_exit+0x206/0x2c0 kernel/exit.c:1024
get_signal+0x175d/0x1840 kernel/signal.c:2892
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6b6aa7cae9
Code: Unable to access opcode bytes at 0x7f6b6aa7cabf.
RSP: 002b:00007f6b6b89a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffe5 RBX: 00007f6b6ab9bf80 RCX: 00007f6b6aa7cae9
RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007
RBP: 00007f6b6aac847a R08: 00000000fffffffd R09: 0000000000000000
R10: 00000000fffffffa R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b6ab9bf80 R15: 00007fff8f48b638
BUG: Bad page state in process syz-executor.1 pfn:3f9ef
page:ffffea0000fe7bc0 refcount:0 mapcount:-1 mapping:ffff88807872c5f8 index:0x490 pfn:0x3f9ef
aops:shmem_aops ino:175b
flags: 0xfff00000080018(uptodate|dirty|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080018 ffffea000114a008 ffffc900098572e0 ffff88807872c5f8
raw: 0000000000000490 0000000000000000 00000000fffffffe 0000000000000000
page dumped because: non-NULL mapping
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 27878, tgid 27877 (syz-executor.4), ts 1458318451351, free_ts 1457989294918
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
__folio_alloc+0x13/0x30 mm/page_alloc.c:4458
vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2259
shmem_alloc_folio mm/shmem.c:1658 [inline]
shmem_alloc_and_acct_folio+0x438/0x9b0 mm/shmem.c:1683
shmem_get_folio_gfp+0xca4/0x2b60 mm/shmem.c:2020
shmem_get_folio mm/shmem.c:2143 [inline]
shmem_write_begin+0x170/0x300 mm/shmem.c:2688
generic_perform_write+0x31b/0x630 mm/filemap.c:3942
shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x782/0xaf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 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+0x8c3/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
__folio_batch_release+0x84/0x100 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x6ad/0x19c0 mm/shmem.c:1022
shmem_truncate_range mm/shmem.c:1114 [inline]
shmem_evict_inode+0x29e/0xa80 mm/shmem.c:1243
evict+0x2a4/0x620 fs/inode.c:664
__dentry_kill+0x436/0x650 fs/dcache.c:607
dentry_kill+0xbb/0x290
dput+0x21e/0x470 fs/dcache.c:913
__fput+0x60d/0x910 fs/file_table.c:392
task_work_run+0x24a/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
Modules linked in:
CPU: 0 PID: 27837 Comm: syz-executor.1 Tainted: G B 6.6.0-rc2-syzkaller-00244-g27bbf45eae9c #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+0x1e7/0x2d0 lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:513
free_page_is_bad mm/page_alloc.c:959 [inline]
free_pages_prepare mm/page_alloc.c:1128 [inline]
free_unref_page_prepare+0x97c/0x9f0 mm/page_alloc.c:2312
free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451
release_pages+0x2113/0x23f0 mm/swap.c:1042
tlb_batch_pages_flush mm/mmu_gather.c:98 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:293 [inline]
tlb_flush_mmu+0x34c/0x4e0 mm/mmu_gather.c:300
zap_pte_range mm/memory.c:1534 [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+0x29dc/0x3320 mm/memory.c:1644
unmap_vmas+0x2b8/0x460 mm/memory.c:1731
exit_mmap+0x297/0xc50 mm/mmap.c:3210
__mmput+0x115/0x3c0 kernel/fork.c:1349
exit_mm+0x21f/0x300 kernel/exit.c:567
do_exit+0x9af/0x2650 kernel/exit.c:861
do_group_exit+0x206/0x2c0 kernel/exit.c:1024
get_signal+0x175d/0x1840 kernel/signal.c:2892
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296
do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6b6aa7cae9
Code: Unable to access opcode bytes at 0x7f6b6aa7cabf.
RSP: 002b:00007f6b6b89a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffe5 RBX: 00007f6b6ab9bf80 RCX: 00007f6b6aa7cae9
RDX: 0000000000000002 RSI: 0000000020000300 RDI: 0000000000000007
RBP: 00007f6b6aac847a R08: 00000000fffffffd R09: 0000000000000000
R10: 00000000fffffffa R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b6ab9bf80 R15: 00007fff8f48b638
BUG: Bad rss-counter state mm:ffff8880143cc280 type:MM_FILEPAGES val:3
BUG: Bad rss-counter state mm:ffff8880143cc280 type:MM_SHMEMPAGES val:-3