REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077960fc4 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Not tainted 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5800 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77960
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5848 ffffea0001de57c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563871928, free_ts 54780879905
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077960e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077960f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077960f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077961000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077961080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077962fc4 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5880 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77962
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de58c8 ffffea0001de5848 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563916098, free_ts 54780853914
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077962e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077962f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077962f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077963000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077963080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077963fc4 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de58c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77963
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5908 ffffea0001de5888 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563930338, free_ts 54780841234
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077963e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077963f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077963f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077964000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff8880779647c4 by task syz-executor175/5069
CPU: 0 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077964800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964bc4 by task syz-executor175/5069
CPU: 0 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077964c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964dc4 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964d00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077964e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964ec4 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077964f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964f44 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077964f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077965000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964f84 by task syz-executor175/5069
CPU: 0 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077965000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077965080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: use-after-free in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964fa4 by task syz-executor175/5069
CPU: 1 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x77964
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001de5948 ffffea0001de58c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 5067, tgid 5067 (syz-executor175), ts 54563944748, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
shmem_alloc_folio+0x10d/0x140 mm/shmem.c:1630
shmem_alloc_and_add_folio+0x147/0x7b0 mm/shmem.c:1670
shmem_get_folio_gfp+0x623/0x1360 mm/shmem.c:2054
shmem_get_folio mm/shmem.c:2136 [inline]
shmem_write_begin+0x15a/0x360 mm/shmem.c:2719
generic_perform_write+0x278/0x600 mm/filemap.c:3927
shmem_file_write_iter+0x110/0x140 mm/shmem.c:2895
call_write_iter include/linux/fs.h:2020 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x64f/0xdf0 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077964f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888077964f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888077965000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888077965080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: out-of-bounds in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
BUG: KASAN: out-of-bounds in search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
Read of size 4 at addr ffff888077964fb4 by task syz-executor175/5069
CPU: 0 PID: 5069 Comm: syz-executor175 Tainted: G B 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline]
search_by_entry_key+0x80b/0x940 fs/reiserfs/namei.c:165
reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322
reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368
__lookup_slow+0x24d/0x450 fs/namei.c:1694
lookup_one_len+0x17d/0x1b0 fs/namei.c:2746
reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977
reiserfs_fill_super+0x20f9/0x3160 fs/reiserfs/super.c:2174
mount_bdev+0x1f3/0x2e0 fs/super.c:1650
legacy_get_tree+0x109/0x220 fs/fs_context.c:662
vfs_get_tree+0x8c/0x370 fs/super.c:1771
do_new_mount fs/namespace.c:3337 [inline]
path_mount+0x1492/0x1ed0 fs/namespace.c:3664
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount fs/namespace.c:3863 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7cc312746a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff028d6cf8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7cc312746a
RDX: 0000000020000180 RSI: 0000000020000040 RDI: 00007fff028d6d40
RBP: 0000000000000004 R08: 00007fff028d6d80 R09: 0000000000001127
R10: 000000000001801c R11: 0000000000000286 R12: 00007fff028d6d40
R13: 00007fff028d6d80 R14: 0000000000400000 R15: 0000000000000003
The buggy address belongs to the physical page:
page:ffffea0001de5900 refcount:3 mapcount:0 mapping:ffff88801b540878 index:0x20066 pfn:0x77964
memcg:ffff88814124a000
aops:def_blk_aops ino:800001
flags: 0xfff00000008204(referenced|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000008204 0000000000000000 dead000000000122 ffff88801b540878
raw: 0000000000020066 ffff888077cf0ae0 00000003ffffffff ffff88814124a000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 4484, tgid 4484 (jbd2/sda1-8), ts 61215862402, free_ts 54780829164
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312
__alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568
alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133
folio_alloc+0x1e/0xe0 mm/mempolicy.c:2211
filemap_alloc_folio+0x3bb/0x490 mm/filemap.c:974
__filemap_get_folio+0x54c/0xaa0 mm/filemap.c:1918
grow_dev_page fs/buffer.c:1041 [inline]
grow_buffers fs/buffer.c:1106 [inline]
__getblk_slow+0x1b8/0x720 fs/buffer.c:1133
bdev_getblk+0xad/0xc0 fs/buffer.c:1429
__getblk include/linux/buffer_head.h:358 [inline]
jbd2_journal_get_descriptor_buffer+0x199/0x500 fs/jbd2/journal.c:1010
jbd2_journal_commit_transaction+0x1a19/0x63b0 fs/jbd2/commit.c:611
kjournald2+0x1fb/0x900 fs/jbd2/journal.c:201
kthread+0x2c6/0x3a0 kernel/kthread.c:388
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347
free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533
release_pages+0x32a/0x14f0 mm/swap.c:1042
__folio_batch_release+0x77/0xe0 mm/swap.c:1062
folio_batch_release include/linux/pagevec.h:83 [inline]
shmem_undo_range+0x57a/0x1140 mm/shmem.c:1004
shmem_truncate_range mm/shmem.c:1113 [inline]
shmem_evict_inode+0x39f/0xba0 mm/shmem.c:1241
evict+0x2ed/0x6b0 fs/inode.c:666
iput_final fs/inode.c:1777 [inline]
iput.part.0+0x560/0x7b0 fs/inode.c:1803
iput+0x5c/0x80 fs/inode.c:1793
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+0x7eb/0xd90 fs/dcache.c:913
__fput+0x3b9/0xb70 fs/file_table.c:402
task_work_run+0x14d/0x240 kernel/task_work.c:180
ptrace_notify+0x10d/0x130 kernel/signal.c:2399
ptrace_report_syscall include/linux/ptrace.h:411 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
syscall_exit_work kernel/entry/common.c:251 [inline]
syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:278
Memory state around the buggy address:
ffff888077964e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888077964f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888077964f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
ffff888077965000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888077965080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
REISERFS warning (device loop0): jdm-13090 reiserfs_new_inode: ACLs aren't enabled in the fs, but vfs thinks they are!
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.