================================================================== BUG: KASAN: out-of-bounds in leaf_paste_in_buffer+0x1e0/0xbd0 fs/reiserfs/lbalance.c:1017 Read of size 18446744073709493643 at addr ffff8880547ac275 by task syz.3.220/6500 CPU: 1 PID: 6500 Comm: syz.3.220 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memmove+0x29/0x70 mm/kasan/shadow.c:94 leaf_paste_in_buffer+0x1e0/0xbd0 fs/reiserfs/lbalance.c:1017 leaf_copy_boundary_item+0xc75/0x21b0 fs/reiserfs/lbalance.c:199 leaf_copy_items fs/reiserfs/lbalance.c:551 [inline] leaf_move_items+0x8cf/0xec0 fs/reiserfs/lbalance.c:726 leaf_shift_left+0xbd/0x450 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+0x2f16/0x10df0 fs/reiserfs/do_balan.c:1409 do_balance+0x31c/0x930 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x6f5/0x800 fs/reiserfs/stree.c:2157 reiserfs_get_block+0x1c37/0x4060 fs/reiserfs/inode.c:1069 __block_write_begin_int+0x57f/0x1af0 fs/buffer.c:2124 reiserfs_write_begin+0x20a/0x4c0 fs/reiserfs/inode.c:2771 generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4031 generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4152 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x46c/0x990 fs/read_write.c:584 ksys_pwrite64 fs/read_write.c:699 [inline] __do_sys_pwrite64 fs/read_write.c:709 [inline] __se_sys_pwrite64 fs/read_write.c:706 [inline] __x64_sys_pwrite64+0x19b/0x230 fs/read_write.c:706 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f526039aeb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f52612e0028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f5260615fa0 RCX: 00007f526039aeb9 RDX: 0000000000000001 RSI: 000020000001f900 RDI: 0000000000000006 RBP: 00007f5260408c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008000c63 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5260616038 R14: 00007f5260615fa0 R15: 00007ffef4fc7b08 The buggy address belongs to the physical page: page:ffffea000151eb00 refcount:1 mapcount:0 mapping:ffff88807f1b22d8 index:0x4ae pfn:0x547ac memcg:ffff888023ada000 aops:ext4_da_aops ino:7ef dentry name(?):"syz.yG0Amz" flags: 0xfff8000000002c(referenced|uptodate|lru|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff8000000002c ffffea000151eac8 ffffea000151eb48 ffff88807f1b22d8 raw: 00000000000004ae 0000000000000000 00000001ffffffff ffff888023ada000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 6375, tgid 6375 (syz.2.190), ts 119327771427, free_ts 32176417884 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4486 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004 page_cache_ra_unbounded+0x17b/0x770 mm/readahead.c:247 do_async_mmap_readahead mm/filemap.c:3274 [inline] filemap_fault+0x565/0x15b0 mm/filemap.c:3328 __do_fault+0x13b/0x4d0 mm/memory.c:4244 do_read_fault mm/memory.c:4638 [inline] do_fault mm/memory.c:4775 [inline] do_pte_missing mm/memory.c:3689 [inline] handle_pte_fault mm/memory.c:5047 [inline] __handle_mm_fault mm/memory.c:5188 [inline] handle_mm_fault+0x2299/0x4c00 mm/memory.c:5353 faultin_page mm/gup.c:868 [inline] __get_user_pages+0x5d0/0x1380 mm/gup.c:1167 __get_user_pages_locked mm/gup.c:1431 [inline] get_dump_page+0x10c/0x200 mm/gup.c:1939 dump_user_range+0x127/0x860 fs/coredump.c:982 elf_core_dump+0x31d0/0x3770 fs/binfmt_elf.c:2184 do_coredump+0x17cc/0x24d0 fs/coredump.c:833 get_signal+0x1133/0x13f0 kernel/signal.c:2888 arch_do_signal_or_restart+0xc2/0x800 arch/x86/kernel/signal.c:310 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458 free_contig_range+0xa1/0x150 mm/page_alloc.c:6406 destroy_args+0x80/0x850 mm/debug_vm_pgtable.c:1015 debug_vm_pgtable+0x411/0x440 mm/debug_vm_pgtable.c:1400 do_one_initcall+0x242/0x790 init/main.c:1250 do_initcall_level+0x137/0x1f0 init/main.c:1312 do_initcalls+0x69/0xd0 init/main.c:1328 kernel_init_freeable+0x3ed/0x580 init/main.c:1565 kernel_init+0x1d/0x1c0 init/main.c:1455 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff8880547ac100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880547ac180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880547ac200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880547ac280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880547ac300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================