REISERFS (device loop4): Using tea hash to sort names ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/string.h:393 [inline] BUG: KASAN: out-of-bounds in leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff8880573ccfa4 by task syz-executor.4/10187 CPU: 1 PID: 10187 Comm: syz-executor.4 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 print_address_description.constprop.4.cold.6+0x9/0x341 mm/kasan/report.c:374 __kasan_report.cold.7+0x7a/0x97 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:634 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x144/0x1c0 mm/kasan/generic.c:192 memmove+0x1f/0x50 mm/kasan/common.c:113 memmove include/linux/string.h:393 [inline] leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1295 [inline] balance_leaf_finish_node_paste.isra.10+0x48a/0x1140 fs/reiserfs/do_balan.c:1321 balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline] balance_leaf fs/reiserfs/do_balan.c:1452 [inline] do_balance+0x2aa0/0x690a fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x4c7/0x5e0 fs/reiserfs/stree.c:2138 reiserfs_add_entry+0x7b7/0xbd0 fs/reiserfs/namei.c:563 reiserfs_mkdir+0x54e/0x7a0 fs/reiserfs/namei.c:855 create_privroot fs/reiserfs/xattr.c:875 [inline] reiserfs_xattr_init+0x432/0x8b9 fs/reiserfs/xattr.c:994 reiserfs_fill_super+0x1a73/0x2780 fs/reiserfs/super.c:2174 mount_bdev+0x25e/0x320 fs/super.c:1415 legacy_get_tree+0xfe/0x200 fs/fs_context.c:647 vfs_get_tree+0x7e/0x330 fs/super.c:1545 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x103a/0x16c0 fs/namespace.c:3142 ksys_mount+0xb1/0xd0 fs/namespace.c:3351 __do_sys_mount fs/namespace.c:3365 [inline] __se_sys_mount fs/namespace.c:3362 [inline] __x64_sys_mount+0xb5/0x150 fs/namespace.c:3362 do_syscall_64+0x8e/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4672ba Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd0d9e70fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00000000004672ba RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd0d9e71000 RBP: 00007fd0d9e71040 R08: 00007fd0d9e71040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fd0d9e71000 R15: 00000000200003c0 The buggy address belongs to the page: page:ffffea00015cf300 refcount:2 mapcount:0 mapping:ffff888094ef5ca0 index:0x3d97 def_blk_aops flags: 0xfff00000002032(referenced|lru|active|private) raw: 00fff00000002032 ffffea00015cd188 ffffea00015b0388 ffff888094ef5ca0 raw: 0000000000003d97 ffff88805ad58930 00000002ffffffff ffff88823b6f6000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88823b6f6000 Memory state around the buggy address: ffff8880573cce80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880573ccf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880573ccf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880573cd000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880573cd080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================