REISERFS (device loop0): Using r5 hash to sort names REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. ================================================================== BUG: KASAN: out-of-bounds in leaf_insert_into_buf+0x1f4/0x748 fs/reiserfs/lbalance.c:933 Read of size 18446744073709551384 at addr ffff0000e45ca000 by task syz-executor.0/4554 CPU: 1 PID: 4554 Comm: syz-executor.0 Tainted: G W 6.1.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:427 kasan_report+0xd4/0x130 mm/kasan/report.c:531 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:189 memmove+0x48/0x90 mm/kasan/shadow.c:54 leaf_insert_into_buf+0x1f4/0x748 fs/reiserfs/lbalance.c:933 balance_leaf_new_nodes_insert fs/reiserfs/do_balan.c:1001 [inline] balance_leaf_new_nodes fs/reiserfs/do_balan.c:1243 [inline] balance_leaf+0x61f0/0xe860 fs/reiserfs/do_balan.c:1450 do_balance+0x27c/0x788 fs/reiserfs/do_balan.c:1888 reiserfs_insert_item+0x940/0xa84 fs/reiserfs/stree.c:2261 indirect2direct+0x58c/0xa40 fs/reiserfs/tail_conversion.c:283 maybe_indirect_to_direct fs/reiserfs/stree.c:1587 [inline] reiserfs_cut_from_item+0x854/0x1c98 fs/reiserfs/stree.c:1694 reiserfs_do_truncate+0x89c/0x11c8 fs/reiserfs/stree.c:1973 reiserfs_truncate_file+0x510/0xb1c fs/reiserfs/inode.c:2310 reiserfs_truncate_failed_write fs/reiserfs/inode.c:2743 [inline] reiserfs_write_end+0x640/0x800 fs/reiserfs/inode.c:2958 generic_perform_write+0x384/0x55c mm/filemap.c:3856 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3973 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4005 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x91c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the physical page: page:0000000029ab83cb refcount:3 mapcount:0 mapping:00000000338dd930 index:0x0 pfn:0x1245ca memcg:ffff0000cc1ee000 aops:reiserfs_address_space_operations ino:4 dentry name(?):"" flags: 0x5ffd0000000201f(locked|referenced|uptodate|dirty|lru|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffd0000000201f fffffc0003900348 ffff0000cc1ec208 ffff0000e25710f8 raw: 0000000000000000 ffff0000dffe8488 00000003ffffffff ffff0000cc1ee000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e45c9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000e45c9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000e45ca000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000e45ca080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000e45ca100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Unable to handle kernel write to read-only memory at virtual address ffff0000dd893ff0 KASAN: maybe wild-memory-access in range [0xfffc0006ec49ff80-0xfffc0006ec49ff87]