REISERFS warning: green-16003 errcatch_is_left_mergeable: Invalid item type observed, run fsck ASAP ================================================================== BUG: KASAN: use-after-free in reiserfs_release_objectid+0x521/0x780 fs/reiserfs/objectid.c:165 Read of size 8188 at addr ffff88806647b050 by task syz.8.526/6871 CPU: 1 PID: 6871 Comm: syz.8.526 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 reiserfs_release_objectid+0x521/0x780 fs/reiserfs/objectid.c:165 remove_save_link+0x2b6/0x3c0 fs/reiserfs/super.c:542 reiserfs_evict_inode+0x393/0x490 fs/reiserfs/inode.c:91 evict+0x485/0x870 fs/inode.c:647 do_unlinkat+0x3d8/0x6f0 fs/namei.c:4355 __do_sys_unlink fs/namei.c:4396 [inline] __se_sys_unlink fs/namei.c:4394 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4394 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fd8a0465929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd89e28b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fd8a068d160 RCX: 00007fd8a0465929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000001c0 RBP: 00007fd8a04e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fd8a068d160 R15: 00007ffe663b4898 The buggy address belongs to the page: page:ffffea0001991ec0 refcount:2 mapcount:0 mapping:ffff888016c64370 index:0x10 pfn:0x6647b memcg:ffff888016a7c000 aops:def_blk_aops ino:700008 flags: 0xfff00000022036(referenced|uptodate|lru|active|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000022036 ffffea00018c0308 ffffea0001401e88 ffff888016c64370 raw: 0000000000000010 ffff88805efac9f8 00000002ffffffff ffff888016a7c000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 4164, ts 173181554964, free_ts 172198024193 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 page_cache_ra_unbounded+0x255/0x930 mm/readahead.c:216 do_page_cache_ra mm/readahead.c:269 [inline] force_page_cache_ra+0x3e5/0x440 mm/readahead.c:301 page_cache_sync_readahead include/linux/pagemap.h:833 [inline] filemap_get_pages mm/filemap.c:2551 [inline] filemap_read+0x589/0x2480 mm/filemap.c:2634 blkdev_read_iter+0x11d/0x150 block/fops.c:563 call_read_iter include/linux/fs.h:2166 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x725/0xcf0 fs/read_write.c:485 ksys_read+0x14d/0x250 fs/read_write.c:623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 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+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 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+0x164/0x2e0 mm/mmu_gather.c:338 exit_mmap+0x3a6/0x5f0 mm/mmap.c:3214 __mmput+0x115/0x3b0 kernel/fork.c:1127 exit_mm+0x567/0x6c0 kernel/exit.c:550 do_exit+0x5a1/0x20a0 kernel/exit.c:870 do_group_exit+0x12e/0x300 kernel/exit.c:997 __do_sys_exit_group kernel/exit.c:1008 [inline] __se_sys_exit_group kernel/exit.c:1006 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1006 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88806647bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806647bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806647c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806647c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806647c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================