REISERFS warning (device loop1): vs-13060 reiserfs_update_sd_size: stat data of object [2 5 0x0 SD] (nlink == 1) not found (pos 2) REISERFS warning (device loop1): vs-13060 reiserfs_update_sd_size: stat data of object [2 5 0x0 SD] (nlink == 1) not found (pos 1) ================================================================== BUG: KASAN: out-of-bounds in leaf_paste_in_buffer+0x198/0xa0c fs/reiserfs/lbalance.c:1017 Read of size 18446744073709493647 at addr ffff0000e9a19271 by task syz.1.10/4163 CPU: 1 PID: 4163 Comm: syz.1.10 Not tainted 5.15.185-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_pwritev+0x1c8/0x2fc fs/read_write.c:1025 __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2 fs/read_write.c:1075 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1075 __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:000000001e1c2373 refcount:2 mapcount:0 mapping:00000000330aa167 index:0xb6 pfn:0x129a19 memcg:ffff0000d6158000 aops:def_blk_aops ino:700003 flags: 0x5ffc00000002032(referenced|lru|active|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002032 fffffc0003a69148 fffffc0003a68a08 ffff0000c058f288 raw: 00000000000000b6 ffff0000e86e72b8 00000002ffffffff ffff0000d6158000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e9a19100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000e9a19180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000e9a19200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000e9a19280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000e9a19300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================