================================================================== BUG: KASAN: use-after-free in reiserfs_release_objectid+0x50c/0x770 fs/reiserfs/objectid.c:165 Read of size 8188 at addr ffff88805b532050 by task syz.3.374/6466 CPU: 1 PID: 6466 Comm: syz.3.374 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 reiserfs_release_objectid+0x50c/0x770 fs/reiserfs/objectid.c:165 remove_save_link+0x353/0x540 fs/reiserfs/super.c:542 reiserfs_evict_inode+0x35e/0x460 fs/reiserfs/inode.c:91 evict+0x529/0x930 fs/inode.c:622 __dentry_kill+0x436/0x650 fs/dcache.c:586 dentry_kill+0xbb/0x290 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x636/0x8e0 fs/file_table.c:288 task_work_run+0x129/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x6a3/0x2480 kernel/exit.c:874 do_group_exit+0x144/0x310 kernel/exit.c:996 get_signal+0xc66/0x14e0 kernel/signal.c:2900 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:320 exc_page_fault+0x342/0x700 arch/x86/mm/fault.c:1504 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x8f4552 Code: Unable to access opcode bytes at RIP 0x8f4528. RSP: 002b:0000400000000188 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f26608eefa0 RCX: 00007f26606d6169 RDX: 00004000000001c0 RSI: 0000400000000180 RDI: 0000000080000000 RBP: 00007f26607572a0 R08: 00004000000002c0 R09: 00004000000002c0 R10: 0000400000000240 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f26608eefa0 R15: 00007ffd35a0c068 The buggy address belongs to the page: page:ffffea00016d4c80 refcount:2 mapcount:0 mapping:ffff88801d3488b0 index:0x10 pfn:0x5b532 memcg:ffff88801fc20000 aops:def_blk_aops ino:700003 flags: 0xfff00000022036(referenced|uptodate|lru|active|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000022036 ffffea000159c1c8 ffffea0001627b08 ffff88801d3488b0 raw: 0000000000000010 ffff88805f273bc8 00000002ffffffff ffff88801fc20000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 6366, ts 202007900003, free_ts 201914753695 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5465 __page_cache_alloc+0xd4/0x4a0 mm/filemap.c:1022 pagecache_get_page+0xa91/0x1010 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 fs/buffer.c:1041 [inline] __getblk_gfp+0x22a/0xaf0 fs/buffer.c:1336 __bread_gfp+0x2a/0x390 fs/buffer.c:1381 sb_bread include/linux/buffer_head.h:337 [inline] read_super_block+0x91/0x7e0 fs/reiserfs/super.c:1606 reiserfs_fill_super+0x90a/0x2690 fs/reiserfs/super.c:1968 mount_bdev+0x2c9/0x3f0 fs/super.c:1400 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x2ba/0xb40 fs/namespace.c:3012 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 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 mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page_list+0x1f7/0x8e0 mm/page_alloc.c:3433 release_pages+0x1bb9/0x1f40 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x177/0x320 mm/mmu_gather.c:338 exit_mmap+0x3cd/0x620 mm/mmap.c:3206 __mmput+0x112/0x3b0 kernel/fork.c:1127 exit_mm+0x688/0x7f0 kernel/exit.c:550 do_exit+0x626/0x2480 kernel/exit.c:861 do_group_exit+0x144/0x310 kernel/exit.c:996 get_signal+0xc66/0x14e0 kernel/signal.c:2900 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88805b533f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805b533f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805b534000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805b534080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805b534100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================