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 r5 hash to sort names ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: use-after-free in test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] BUG: KASAN: use-after-free in test_bit_le include/asm-generic/bitops/le.h:85 [inline] BUG: KASAN: use-after-free in reiserfs_readdir_inode+0xa13/0x1330 fs/reiserfs/dir.c:147 Read of size 8 at addr ffff88806d15a000 by task syz-executor.0/1938 CPU: 1 PID: 1938 Comm: syz-executor.0 Not tainted 5.15.170-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x41/0x5e lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x6c/0x309 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] test_bit_le include/asm-generic/bitops/le.h:85 [inline] reiserfs_readdir_inode+0xa13/0x1330 fs/reiserfs/dir.c:147 iterate_dir+0x48a/0x6d0 fs/readdir.c:65 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x122/0x220 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f2fdcdc9959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2fdc94c0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f2fdcee8f80 RCX: 00007f2fdcdc9959 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f2fdce25c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f2fdcee8f80 R15: 00007ffe4e053718 The buggy address belongs to the page: page:ffffea0001b45680 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x6d15a flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001b45248 ffffea0001b451c8 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 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 1928, ts 56635183676, free_ts 56671429696 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x12d1/0x2d40 mm/page_alloc.c:4159 __alloc_pages+0x1b2/0x440 mm/page_alloc.c:5423 pagecache_get_page+0x299/0xdd0 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow+0x1a6/0x7a0 fs/buffer.c:1041 __getblk include/linux/buffer_head.h:416 [inline] reiserfs_breada+0x138/0x310 fs/reiserfs/journal.c:2335 journal_read fs/reiserfs/journal.c:2447 [inline] journal_init+0x1fda/0x5da0 fs/reiserfs/journal.c:2895 reiserfs_fill_super+0x9cb/0x26d0 fs/reiserfs/super.c:2026 mount_bdev+0x2c3/0x3a0 fs/super.c:1400 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:611 vfs_get_tree+0x83/0x1b0 fs/super.c:1530 do_new_mount fs/namespace.c:3012 [inline] path_mount+0x44f/0x1a60 fs/namespace.c:3342 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __x64_sys_mount+0x1f5/0x260 fs/namespace.c:3540 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare+0x379/0x850 mm/page_alloc.c:1391 free_unref_page_prepare mm/page_alloc.c:3317 [inline] free_unref_page_list+0x16f/0xbd0 mm/page_alloc.c:3433 release_pages+0xb3a/0x1480 mm/swap.c:963 __pagevec_release+0x59/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x250/0x9f0 mm/truncate.c:329 kill_bdev block/bdev.c:77 [inline] blkdev_flush_mapping block/bdev.c:659 [inline] blkdev_put_whole+0x19b/0x210 block/bdev.c:690 blkdev_put+0x385/0x700 block/bdev.c:954 blkdev_close+0x88/0xb0 block/fops.c:475 __fput+0x1f0/0x9a0 fs/file_table.c:280 task_work_run+0xb8/0x140 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:181 [inline] exit_to_user_mode_prepare+0x15d/0x160 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x12/0x30 kernel/entry/common.c:307 do_syscall_64+0x40/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88806d159f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806d159f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806d15a000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806d15a080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806d15a100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================