REISERFS warning (device loop1): vs-13060 reiserfs_update_sd_size: stat data of object [2 5 0x0 SD] (nlink == 1) not found (pos 2) ================================================================== BUG: KASAN: out-of-bounds in leaf_paste_in_buffer+0x198/0xa0c fs/reiserfs/lbalance.c:1017 Read of size 18446744073709493647 at addr ffff0000fe606271 by task syz.1.206/5362 CPU: 1 PID: 5362 Comm: syz.1.206 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x270/0x2b0 mm/kasan/generic.c:189 memmove+0x90/0xe8 mm/kasan/shadow.c:54 leaf_paste_in_buffer+0x198/0xa0c fs/reiserfs/lbalance.c:1017 leaf_copy_boundary_item+0x930/0x19dc fs/reiserfs/lbalance.c:199 leaf_copy_items fs/reiserfs/lbalance.c:551 [inline] leaf_move_items+0x694/0xb9c fs/reiserfs/lbalance.c:726 leaf_shift_left+0xc8/0x3ac fs/reiserfs/lbalance.c:750 balance_leaf_paste_left_whole fs/reiserfs/do_balan.c:560 [inline] balance_leaf_paste_left fs/reiserfs/do_balan.c:594 [inline] balance_leaf_left fs/reiserfs/do_balan.c:613 [inline] balance_leaf+0x24cc/0xd2f4 fs/reiserfs/do_balan.c:1409 do_balance+0x260/0x778 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x5b4/0x6d0 fs/reiserfs/stree.c:2159 reiserfs_get_block+0x1458/0x34b0 fs/reiserfs/inode.c:1077 __block_write_begin_int+0x3e4/0x1588 fs/buffer.c:2012 __block_write_begin+0x40/0x54 fs/buffer.c:2062 reiserfs_write_begin+0x3c8/0x654 fs/reiserfs/inode.c:2790 generic_perform_write+0x204/0x480 mm/filemap.c:3785 __generic_file_write_iter+0x23c/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb0/0x1b4 mm/filemap.c:3944 do_iter_readv_writev+0x3a0/0x4f8 fs/read_write.c:-1 do_iter_write+0x1c4/0x670 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_writev+0x1e0/0x380 fs/read_write.c:971 __do_sys_writev fs/read_write.c:1044 [inline] __se_sys_writev fs/read_write.c:1041 [inline] __arm64_sys_writev+0x80/0x94 fs/read_write.c:1041 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the page: page:000000002f023e83 refcount:1 mapcount:0 mapping:00000000c879fd32 index:0x38e pfn:0x13e606 memcg:ffff0000d0a68000 aops:shmem_aops ino:4c dentry name:"memfd:syzkaller" flags: 0x5ffc0000008001e(referenced|uptodate|dirty|lru|swapbacked|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc0000008001e fffffc0003f7e2c8 fffffc0003f981c8 ffff0000e7265a60 raw: 000000000000038e 0000000000000000 00000001ffffffff ffff0000d0a68000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000fe606100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000fe606180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000fe606200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000fe606280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000fe606300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================