REISERFS (device loop9): Using r5 hash to sort names REISERFS (device loop9): using 3.5.x disk format ================================================================== BUG: KASAN: out-of-bounds in leaf_paste_entries+0x7cb/0x1140 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff888050b3afa4 by task syz.9.861/9175 CPU: 0 PID: 9175 Comm: syz.9.861 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0x188/0x250 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+0x235/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 leaf_paste_entries+0x7cb/0x1140 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+0xc14c/0x10ec0 fs/reiserfs/do_balan.c:1452 do_balance+0x318/0x930 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x744/0x7f0 fs/reiserfs/stree.c:2159 reiserfs_add_entry+0x9bd/0xd80 fs/reiserfs/namei.c:567 reiserfs_mkdir+0x6be/0x920 fs/reiserfs/namei.c:862 xattr_mkdir fs/reiserfs/xattr.c:76 [inline] create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x33a/0x720 fs/reiserfs/xattr.c:1012 reiserfs_fill_super+0x1cd9/0x2120 fs/reiserfs/super.c:2179 mount_bdev+0x28a/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+0x247/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562 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:0x7f9f6644c0ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9f646a2e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f9f646a2ee0 RCX: 00007f9f6644c0ca RDX: 0000200000000840 RSI: 0000200000000880 RDI: 00007f9f646a2ea0 RBP: 0000200000000840 R08: 00007f9f646a2ee0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000880 R13: 00007f9f646a2ea0 R14: 0000000000001106 R15: 00002000000009c0 The buggy address belongs to the page: page:ffffea000142ce80 refcount:2 mapcount:0 mapping:ffff8880170f4378 index:0x213 pfn:0x50b3a memcg:ffff888057ee8000 aops:def_blk_aops ino:700009 flags: 0xfff00000002032(referenced|lru|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002032 ffffea000142ce48 ffff88801f988030 ffff8880170f4378 raw: 0000000000000213 ffff88807467d828 00000002ffffffff ffff888057ee8000 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 9175, ts 311076153288, free_ts 239941762485 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 __page_cache_alloc+0xce/0x440 mm/filemap.c:1022 pagecache_get_page+0x9b8/0xf20 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+0x240/0xb20 fs/buffer.c:1336 sb_getblk include/linux/buffer_head.h:361 [inline] search_by_key+0x474/0x4400 fs/reiserfs/stree.c:672 reiserfs_read_locked_inode+0x195/0x24c0 fs/reiserfs/inode.c:1557 reiserfs_fill_super+0x1126/0x2120 fs/reiserfs/super.c:2075 mount_bdev+0x28a/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+0x247/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562 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+0x119/0x830 mm/page_alloc.c:3433 release_pages+0x185f/0x1bd0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] shmem_undo_range+0x5cd/0x19a0 mm/shmem.c:964 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1e2/0x9a0 mm/shmem.c:1145 evict+0x4b6/0x8b0 fs/inode.c:647 __dentry_kill+0x412/0x630 fs/dcache.c:586 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x5a5/0x8c0 fs/file_table.c:319 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffff888050b3ae80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888050b3af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888050b3af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888050b3b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888050b3b080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================