BUG: Bad page map in process syz-executor.4 pte:fffff7ce8f120 pmd:53f85067
page:ffffea00020c5c00 refcount:9 mapcount:-1 mapping:ffff888080435190 index:0x0 pfn:0x83170
head:ffffea00020c5c00 order:2 entire_mapcount:0 nr_pages_mapped:1 pincount:0
memcg:ffff888028324000
aops:xfs_address_space_operations ino:244a dentry name:"bus"
flags: 0xfff0000000816c(referenced|uptodate|lru|active|private|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff0000000816c ffffea0001173e48 ffff8880280ba030 ffff888080435190
raw: 0000000000000000 ffff888013ac9680 00000009fffffffe ffff888028324000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Movable, gfp_mask 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 10026, tgid 9964 (syz-executor.4), ts 1621552449579, free_ts 1613932183803
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+0x1e/0x60 mm/mempolicy.c:2308
filemap_alloc_folio+0xde/0x500 mm/filemap.c:976
ra_alloc_folio mm/readahead.c:468 [inline]
page_cache_ra_order+0x423/0xcc0 mm/readahead.c:524
do_sync_mmap_readahead+0x444/0x850
filemap_fault+0x7d3/0x1710 mm/filemap.c:3291
__xfs_filemap_fault+0x286/0x960 fs/xfs/xfs_file.c:1354
__do_fault+0x133/0x4e0 mm/memory.c:4204
do_read_fault mm/memory.c:4568 [inline]
do_fault mm/memory.c:4705 [inline]
do_pte_missing mm/memory.c:3669 [inline]
handle_pte_fault mm/memory.c:4978 [inline]
__handle_mm_fault mm/memory.c:5119 [inline]
handle_mm_fault+0x428e/0x62b0 mm/memory.c:5284
faultin_page mm/gup.c:956 [inline]
__get_user_pages+0x6bd/0x15f0 mm/gup.c:1239
__get_user_pages_locked mm/gup.c:1504 [inline]
get_dump_page+0x146/0x2b0 mm/gup.c:2018
dump_user_range+0x126/0x910 fs/coredump.c:913
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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:0000000020003000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff888080435190 index:2
file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio
CPU: 1 PID: 9964 Comm: syz-executor.4 Not tainted 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page map in process syz-executor.4 pte:fffff7ce90120 pmd:53f85067
page:ffffea00020c5bc0 refcount:2 mapcount:-1 mapping:0000000000000000 index:0x13 pfn:0x8316f
memcg:ffff888037f68000
flags: 0xfff00000008028(uptodate|lru|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000008028 ffffea000131d148 ffffea00013ae2c8 0000000000000000
raw: 0000000000000013 ffff888038453ae0 00000002fffffffe ffff888037f68000
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 26703, tgid 26702 (syz-executor.5), ts 1019563752061, free_ts 1019562937777
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+0x1e/0x60 mm/mempolicy.c:2308
filemap_alloc_folio+0xde/0x500 mm/filemap.c:976
do_read_cache_folio+0xed/0x810 mm/filemap.c:3706
do_read_cache_page+0x30/0x210 mm/filemap.c:3808
read_mapping_page include/linux/pagemap.h:860 [inline]
ntfs_map_page fs/ntfs/aops.h:75 [inline]
load_and_init_upcase fs/ntfs/super.c:1686 [inline]
load_system_files+0x17f5/0x4840 fs/ntfs/super.c:1818
ntfs_fill_super+0x19b3/0x2bd0 fs/ntfs/super.c:2900
mount_bdev+0x237/0x300 fs/super.c:1629
legacy_get_tree+0xef/0x190 fs/fs_context.c:638
vfs_get_tree+0x8c/0x280 fs/super.c:1750
do_new_mount+0x28f/0xae0 fs/namespace.c:3335
do_mount fs/namespace.c:3675 [inline]
__do_sys_mount fs/namespace.c:3884 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861
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]
mapping_try_invalidate+0x515/0x640 mm/truncate.c:535
ext4_put_super+0x609/0xcc0 fs/ext4/super.c:1353
generic_shutdown_super+0x13a/0x2c0 fs/super.c:693
kill_block_super+0x41/0x70 fs/super.c:1646
ext4_kill_sb+0x68/0xa0 fs/ext4/super.c:7305
deactivate_locked_super+0xa4/0x110 fs/super.c:481
cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254
task_work_run+0x24a/0x300 kernel/task_work.c:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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:0000000020004000 vm_flags:080000d0 anon_vma:0000000000000000 mapping:ffff888080435190 index:3
file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio
CPU: 1 PID: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page map in process syz-executor.4 pte:fffff79fd1120 pmd:53f85067
page:ffffea0002180b80 refcount:1 mapcount:-1 mapping:ffff88801ac8f090 index:0x140a pfn:0x8602e
memcg:ffff888028324000
aops:xfs_address_space_operations ino:244b dentry name:"core"
flags: 0xfff0000000003c(referenced|uptodate|dirty|lru|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff0000000003c ffffea0002180b08 ffffea0000ef4908 ffff88801ac8f090
raw: 000000000000140a 0000000000000000 00000001fffffffe ffff888028324000
page dumped because: bad pte
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x141c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE|__GFP_WRITE), pid 10026, tgid 9964 (syz-executor.4), ts 1622229253454, free_ts 1622110747994
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+0x1e/0x60 mm/mempolicy.c:2308
filemap_alloc_folio+0xde/0x500 mm/filemap.c:976
__filemap_get_folio+0x431/0xbb0 mm/filemap.c:1936
iomap_get_folio fs/iomap/buffered-io.c:554 [inline]
__iomap_get_folio fs/iomap/buffered-io.c:701 [inline]
iomap_write_begin+0x50e/0x1f80 fs/iomap/buffered-io.c:744
iomap_write_iter fs/iomap/buffered-io.c:909 [inline]
iomap_file_buffered_write+0x587/0x1020 fs/iomap/buffered-io.c:970
xfs_file_buffered_write+0x2d4/0xa90 fs/xfs/xfs_file.c:749
__kernel_write_iter+0x32a/0x7c0 fs/read_write.c:517
dump_emit_page fs/coredump.c:888 [inline]
dump_user_range+0x46c/0x910 fs/coredump.c:915
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
get_signal+0x145e/0x1840 kernel/signal.c:2878
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
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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:ffff888080435190 index:6
file:bus fault:xfs_filemap_fault mmap:xfs_file_mmap read_folio:xfs_vm_read_folio
CPU: 1 PID: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page state in process syz-executor.4 pfn:8602e
page:ffffea0002180b80 refcount:0 mapcount:-1 mapping:ffff88801ac8f090 index:0x140a pfn:0x8602e
aops:xfs_address_space_operations ino:244b dentry name:"core"
flags: 0xfff0000000001c(referenced|uptodate|dirty|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff0000000001c ffffea0001403908 ffffc9000365f2e0 ffff88801ac8f090
raw: 000000000000140a 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 0x141c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE|__GFP_WRITE), pid 10026, tgid 9964 (syz-executor.4), ts 1622229253454, free_ts 1622110747994
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+0x1e/0x60 mm/mempolicy.c:2308
filemap_alloc_folio+0xde/0x500 mm/filemap.c:976
__filemap_get_folio+0x431/0xbb0 mm/filemap.c:1936
iomap_get_folio fs/iomap/buffered-io.c:554 [inline]
__iomap_get_folio fs/iomap/buffered-io.c:701 [inline]
iomap_write_begin+0x50e/0x1f80 fs/iomap/buffered-io.c:744
iomap_write_iter fs/iomap/buffered-io.c:909 [inline]
iomap_file_buffered_write+0x587/0x1020 fs/iomap/buffered-io.c:970
xfs_file_buffered_write+0x2d4/0xa90 fs/xfs/xfs_file.c:749
__kernel_write_iter+0x32a/0x7c0 fs/read_write.c:517
dump_emit_page fs/coredump.c:888 [inline]
dump_user_range+0x46c/0x910 fs/coredump.c:915
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
get_signal+0x145e/0x1840 kernel/signal.c:2878
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
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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: 1 PID: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page map in process syz-executor.4 pte:800000008602d027 pmd:223a9067
page:ffffea0002180b40 refcount:2 mapcount:-1 mapping:ffff888020bfcc98 index:0x2eb pfn:0x8602d
memcg:ffff888028324000
aops:shmem_aops ino:405 dentry name:"memfd:syz-shared-mem"
flags: 0xfff00000080028(uptodate|lru|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080028 ffffea00020cb5c8 ffffea0002180bc8 ffff888020bfcc98
raw: 00000000000002eb 0000000000000000 00000002fffffffe ffff888028324000
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 10026, tgid 9964 (syz-executor.4), ts 1622229199439, free_ts 1622110761805
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_fault+0x219/0x7e0 mm/shmem.c:2227
__do_fault+0x133/0x4e0 mm/memory.c:4204
do_read_fault mm/memory.c:4568 [inline]
do_fault mm/memory.c:4705 [inline]
do_pte_missing mm/memory.c:3669 [inline]
handle_pte_fault mm/memory.c:4978 [inline]
__handle_mm_fault mm/memory.c:5119 [inline]
handle_mm_fault+0x428e/0x62b0 mm/memory.c:5284
faultin_page mm/gup.c:956 [inline]
__get_user_pages+0x6bd/0x15f0 mm/gup.c:1239
__get_user_pages_locked mm/gup.c:1504 [inline]
get_dump_page+0x146/0x2b0 mm/gup.c:2018
dump_user_range+0x126/0x910 fs/coredump.c:913
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
get_signal+0x145e/0x1840 kernel/signal.c:2878
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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:0000001b2d50b000 vm_flags:080000fb anon_vma:0000000000000000 mapping:ffff888020bfcc98 index:2eb
file:memfd:syz-shared-mem fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page map in process syz-executor.4 pte:800000008602f027 pmd:223a9067
page:ffffea0002180bc0 refcount:2 mapcount:-1 mapping:ffff888020bfcc98 index:0x2ec pfn:0x8602f
memcg:ffff888028324000
aops:shmem_aops ino:405 dentry name:"memfd:syz-shared-mem"
flags: 0xfff00000080028(uptodate|lru|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080028 ffffea00020cb5c8 ffffea0000ef4948 ffff888020bfcc98
raw: 00000000000002ec 0000000000000000 00000002fffffffe ffff888028324000
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 10026, tgid 9964 (syz-executor.4), ts 1622229326094, free_ts 1622110734606
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_fault+0x219/0x7e0 mm/shmem.c:2227
__do_fault+0x133/0x4e0 mm/memory.c:4204
do_read_fault mm/memory.c:4568 [inline]
do_fault mm/memory.c:4705 [inline]
do_pte_missing mm/memory.c:3669 [inline]
handle_pte_fault mm/memory.c:4978 [inline]
__handle_mm_fault mm/memory.c:5119 [inline]
handle_mm_fault+0x428e/0x62b0 mm/memory.c:5284
faultin_page mm/gup.c:956 [inline]
__get_user_pages+0x6bd/0x15f0 mm/gup.c:1239
__get_user_pages_locked mm/gup.c:1504 [inline]
get_dump_page+0x146/0x2b0 mm/gup.c:2018
dump_user_range+0x126/0x910 fs/coredump.c:913
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
get_signal+0x145e/0x1840 kernel/signal.c:2878
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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:0000001b2d50c000 vm_flags:080000fb anon_vma:0000000000000000 mapping:ffff888020bfcc98 index:2ec
file:memfd:syz-shared-mem fault:shmem_fault mmap:shmem_mmap read_folio:0x0
CPU: 0 PID: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page state in process syz-executor.4 pfn:8602f
page:ffffea0002180bc0 refcount:0 mapcount:-1 mapping:ffff888020bfcc98 index:0x2ec pfn:0x8602f
aops:shmem_aops ino:405 dentry name:"memfd:syz-shared-mem"
flags: 0xfff00000080008(uptodate|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080008 ffffea0002180b48 ffffea0001234b88 ffff888020bfcc98
raw: 00000000000002ec 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 10026, tgid 9964 (syz-executor.4), ts 1622229326094, free_ts 1622110734606
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_fault+0x219/0x7e0 mm/shmem.c:2227
__do_fault+0x133/0x4e0 mm/memory.c:4204
do_read_fault mm/memory.c:4568 [inline]
do_fault mm/memory.c:4705 [inline]
do_pte_missing mm/memory.c:3669 [inline]
handle_pte_fault mm/memory.c:4978 [inline]
__handle_mm_fault mm/memory.c:5119 [inline]
handle_mm_fault+0x428e/0x62b0 mm/memory.c:5284
faultin_page mm/gup.c:956 [inline]
__get_user_pages+0x6bd/0x15f0 mm/gup.c:1239
__get_user_pages_locked mm/gup.c:1504 [inline]
get_dump_page+0x146/0x2b0 mm/gup.c:2018
dump_user_range+0x126/0x910 fs/coredump.c:913
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
get_signal+0x145e/0x1840 kernel/signal.c:2878
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad page state in process syz-executor.4 pfn:8602d
page:ffffea0002180b40 refcount:0 mapcount:-1 mapping:ffff888020bfcc98 index:0x2eb pfn:0x8602d
aops:shmem_aops ino:405 dentry name:"memfd:syz-shared-mem"
flags: 0xfff00000080008(uptodate|swapbacked|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xfffffffe()
raw: 00fff00000080008 ffffc9000365f2e0 ffffea0001234b88 ffff888020bfcc98
raw: 00000000000002eb 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 10026, tgid 9964 (syz-executor.4), ts 1622229199439, free_ts 1622110761805
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_fault+0x219/0x7e0 mm/shmem.c:2227
__do_fault+0x133/0x4e0 mm/memory.c:4204
do_read_fault mm/memory.c:4568 [inline]
do_fault mm/memory.c:4705 [inline]
do_pte_missing mm/memory.c:3669 [inline]
handle_pte_fault mm/memory.c:4978 [inline]
__handle_mm_fault mm/memory.c:5119 [inline]
handle_mm_fault+0x428e/0x62b0 mm/memory.c:5284
faultin_page mm/gup.c:956 [inline]
__get_user_pages+0x6bd/0x15f0 mm/gup.c:1239
__get_user_pages_locked mm/gup.c:1504 [inline]
get_dump_page+0x146/0x2b0 mm/gup.c:2018
dump_user_range+0x126/0x910 fs/coredump.c:913
elf_core_dump+0x3c91/0x4540 fs/binfmt_elf.c:2142
do_coredump+0x1b73/0x2ab0 fs/coredump.c:764
get_signal+0x145e/0x1840 kernel/signal.c:2878
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:180
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/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: 1 PID: 9964 Comm: syz-executor.4 Tainted: G B 6.6.0-rc3-syzkaller-00214-ge402b08634b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:0x7fb2b867cae9
Code: Unable to access opcode bytes at 0x7fb2b867cabf.
RSP: 002b:00007ffc39beea48 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffdfc RBX: 000000000018bdb8 RCX: 00007fb2b867cae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb2b879c05c
RBP: 0000000000000032 R08: 00007fb2b879c05c R09: 00007fb2b879c05c
R10: 00007ffc39beeb80 R11: 0000000000000246 R12: 00007fb2b879c05c
R13: 000000000018bdea R14: 00007ffc39beeba0 R15: 00007ffc39beeb80
BUG: Bad rss-counter state mm:ffff888029fc2f80 type:MM_FILEPAGES val:2
BUG: Bad rss-counter state mm:ffff888029fc2f80 type:MM_SHMEMPAGES val:-2