REISERFS (device loop1): checking transaction log (loop1) REISERFS (device loop1): Using tea hash to sort names REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. ================================================================== BUG: KASAN: out-of-bounds in leaf_paste_entries+0x769/0x10e0 fs/reiserfs/lbalance.c:1377 Read of size 18446744073708503056 at addr ffff888067a2bec8 by task syz.1.22/4445 CPU: 0 PID: 4445 Comm: syz.1.22 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 leaf_paste_entries+0x769/0x10e0 fs/reiserfs/lbalance.c:1377 leaf_copy_dir_entries+0x617/0x8f0 fs/reiserfs/lbalance.c:119 leaf_copy_boundary_item+0xb8c/0x2190 fs/reiserfs/lbalance.c:168 leaf_copy_items fs/reiserfs/lbalance.c:551 [inline] leaf_move_items+0x85f/0xe00 fs/reiserfs/lbalance.c:726 leaf_shift_left+0xb9/0x450 fs/reiserfs/lbalance.c:750 balance_leaf_when_delete_left fs/reiserfs/do_balan.c:194 [inline] balance_leaf_when_delete fs/reiserfs/do_balan.c:272 [inline] balance_leaf+0x1321/0x10ec0 fs/reiserfs/do_balan.c:1393 do_balance+0x318/0x930 fs/reiserfs/do_balan.c:1888 reiserfs_cut_from_item+0x154d/0x1fc0 fs/reiserfs/stree.c:1838 reiserfs_do_truncate+0xa09/0x1390 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x47c/0x7d0 fs/reiserfs/inode.c:2310 reiserfs_setattr+0xcc0/0x12c0 fs/reiserfs/inode.c:3395 notify_change+0xc74/0xf40 fs/attr.c:499 do_truncate+0x1ac/0x240 fs/open.c:65 handle_truncate fs/namei.c:3293 [inline] do_open fs/namei.c:3638 [inline] path_openat+0x2861/0x2ee0 fs/namei.c:3791 do_filp_open+0x1f1/0x430 fs/namei.c:3818 do_sys_openat2+0x150/0x4b0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_creat fs/open.c:1414 [inline] __se_sys_creat fs/open.c:1408 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1408 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f82e6b9c819 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:00007f82e7aa5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f82e6e15fa0 RCX: 00007f82e6b9c819 RDX: 0000000000000000 RSI: 000000000000007b RDI: 0000200000000180 RBP: 00007f82e6c32c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f82e6e16038 R14: 00007f82e6e15fa0 R15: 00007fff86d121c8 The buggy address belongs to the physical page: page:ffffea00019e8ac0 refcount:1 mapcount:0 mapping:ffff888077492f98 index:0xc pfn:0x67a2b memcg:ffff888053baa000 aops:shmem_aops ino:409 dentry name(?):"memfd:syzkaller" flags: 0xfff6000008001e(referenced|uptodate|dirty|lru|swapbacked|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff6000008001e ffffea00019e8308 ffffea00019e9988 ffff888077492f98 raw: 000000000000000c 0000000000000000 00000001ffffffff ffff888053baa000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 4445, tgid 4442 (syz.1.22), ts 91566958613, free_ts 86527633234 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5657 __folio_alloc+0xe/0x30 mm/page_alloc.c:5689 vma_alloc_folio+0x4a3/0x900 mm/mempolicy.c:2243 shmem_alloc_folio mm/shmem.c:1589 [inline] shmem_alloc_and_acct_folio+0x463/0xbc0 mm/shmem.c:1613 shmem_get_folio_gfp+0x1361/0x3400 mm/shmem.c:1941 shmem_get_folio mm/shmem.c:2072 [inline] shmem_write_begin+0xee/0x3f0 mm/shmem.c:2556 generic_perform_write+0x2fa/0x5c0 mm/filemap.c:3862 __generic_file_write_iter+0x148/0x2a0 mm/filemap.c:3960 generic_file_write_iter+0xab/0x2e0 mm/filemap.c:3989 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x4b1/0xa30 fs/read_write.c:584 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] free_pcp_prepare mm/page_alloc.c:1536 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3554 release_pages+0x1fa6/0x2220 mm/swap.c:1035 __pagevec_release+0x6d/0xe0 mm/swap.c:1055 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x352/0x1090 mm/truncate.c:397 ntfs_evict_inode+0x18/0xb0 fs/ntfs3/inode.c:1781 evict+0x4c9/0x8d0 fs/inode.c:705 ntfs_fill_super+0x3bb7/0x3fa0 fs/ntfs3/super.c:1263 get_tree_bdev+0x3f1/0x610 fs/super.c:1366 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888067a2bd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888067a2be00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888067a2be80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888067a2bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888067a2bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================