REISERFS (device loop3): checking transaction log (loop3) REISERFS (device loop3): Using r5 hash to sort names REISERFS (device loop3): using 3.5.x disk format REISERFS (device loop3): Created .reiserfs_priv - reserved for xattr storage. ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/string.h:392 [inline] BUG: KASAN: out-of-bounds in leaf_paste_in_buffer+0x26c/0xc20 fs/reiserfs/lbalance.c:1017 Read of size 18446744073709551365 at addr ffff88803a01a000 by task syz-executor.3/4542 CPU: 0 PID: 4542 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 memmove+0x20/0x50 mm/kasan/kasan.c:293 memmove include/linux/string.h:392 [inline] leaf_paste_in_buffer+0x26c/0xc20 fs/reiserfs/lbalance.c:1017 balance_leaf_new_nodes_paste_whole fs/reiserfs/do_balan.c:1182 [inline] balance_leaf_new_nodes_paste fs/reiserfs/do_balan.c:1226 [inline] balance_leaf_new_nodes fs/reiserfs/do_balan.c:1257 [inline] balance_leaf+0x2791/0xca70 fs/reiserfs/do_balan.c:1461 do_balance+0x30a/0x760 fs/reiserfs/do_balan.c:1899 reiserfs_paste_into_item+0x636/0x7d0 fs/reiserfs/stree.c:2169 reiserfs_get_block+0x19ee/0x3e40 fs/reiserfs/inode.c:1077 __block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978 reiserfs_write_begin+0x39f/0xa10 fs/reiserfs/inode.c:2794 generic_cont_expand_simple+0x106/0x170 fs/buffer.c:2331 reiserfs_setattr+0xc7c/0x1090 fs/reiserfs/inode.c:3322 notify_change+0x70b/0xfc0 fs/attr.c:334 do_truncate+0x134/0x1f0 fs/open.c:63 do_sys_ftruncate+0x492/0x560 fs/open.c:194 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fa69e4080c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa69c97a168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fa69e527f80 RCX: 00007fa69e4080c9 RDX: 0000000000000000 RSI: 0000000002007ffb RDI: 0000000000000004 RBP: 00007fa69e463ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffebe317bcf R14: 00007fa69c97a300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0000e80680 count:1 mapcount:0 mapping:ffff88809a1c9308 index:0x320 flags: 0xfff0000004006c(referenced|uptodate|lru|active|swapbacked) raw: 00fff0000004006c ffffea0000fa1408 ffffea0000e8e108 ffff88809a1c9308 raw: 0000000000000320 0000000000000000 00000001ffffffff ffff8880b59f68c0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8880b59f68c0 Memory state around the buggy address: ffff88803a019f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803a019f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88803a01a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88803a01a080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803a01a100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================