REISERFS warning: green-16003 errcatch_is_left_mergeable: Invalid item type observed, run fsck ASAP REISERFS warning: green-16003 errcatch_is_left_mergeable: Invalid item type observed, run fsck ASAP ================================================================== BUG: KASAN: out-of-bounds in leaf_paste_entries+0x73c/0x10c0 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff88803b468fa4 by task syz.2.950/9027 CPU: 1 PID: 9027 Comm: syz.2.950 Not tainted 5.15.184-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 leaf_paste_entries+0x73c/0x10c0 fs/reiserfs/lbalance.c:1377 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1295 [inline] balance_leaf_finish_node_paste fs/reiserfs/do_balan.c:1321 [inline] balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline] balance_leaf+0xacec/0x10e60 fs/reiserfs/do_balan.c:1452 do_balance+0x2fa/0x930 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x69b/0x7e0 fs/reiserfs/stree.c:2159 reiserfs_add_entry+0x975/0xd40 fs/reiserfs/namei.c:567 reiserfs_mkdir+0x68f/0x970 fs/reiserfs/namei.c:862 xattr_mkdir fs/reiserfs/xattr.c:76 [inline] create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x331/0x720 fs/reiserfs/xattr.c:1012 reiserfs_fill_super+0x1fa6/0x23e0 fs/reiserfs/super.c:2179 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 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:0x7fd96a4b710a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd96831ce68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd96831cef0 RCX: 00007fd96a4b710a RDX: 00002000000000c0 RSI: 0000200000000040 RDI: 00007fd96831ceb0 RBP: 00002000000000c0 R08: 00007fd96831cef0 R09: 0000000002000800 R10: 0000000002000800 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fd96831ceb0 R14: 0000000000001141 R15: 0000200000000000 The buggy address belongs to the page: page:ffffea0000ed1a00 refcount:2 mapcount:0 mapping:ffff888016c9f270 index:0x213 pfn:0x3b468 memcg:ffff88807e420000 aops:def_blk_aops ino:700002 flags: 0xfff00000002032(referenced|lru|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002032 ffffea0000fca1c8 ffff888028ea5030 ffff888016c9f270 raw: 0000000000000213 ffff88804180f000 00000002ffffffff ffff88807e420000 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 9027, ts 435608545872, free_ts 434917653262 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:5466 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 pagecache_get_page+0x986/0xef0 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+0x249/0xb70 fs/buffer.c:1336 sb_getblk include/linux/buffer_head.h:361 [inline] search_by_key+0x424/0x4390 fs/reiserfs/stree.c:672 reiserfs_read_locked_inode+0x154/0x2620 fs/reiserfs/inode.c:1557 reiserfs_fill_super+0x124b/0x23e0 fs/reiserfs/super.c:2075 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 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 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] shmem_undo_range+0x593/0x1840 mm/shmem.c:964 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x20d/0xa00 mm/shmem.c:1145 evict+0x485/0x870 fs/inode.c:647 __dentry_kill+0x431/0x650 fs/dcache.c:586 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x5ee/0x930 fs/file_table.c:319 task_work_run+0x125/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x616/0x20a0 kernel/exit.c:874 do_group_exit+0x12e/0x300 kernel/exit.c:996 get_signal+0x6ca/0x12c0 kernel/signal.c:2900 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867 Memory state around the buggy address: ffff88803b468e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803b468f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88803b468f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88803b469000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803b469080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================