REISERFS (device loop4): Using tea hash to sort names ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/string.h:462 [inline] BUG: KASAN: out-of-bounds in leaf_paste_entries+0x449/0x910 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff88808e8cbfa4 by task syz-executor.4/20673 CPU: 0 PID: 20673 Comm: syz-executor.4 Not tainted 5.11.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:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 memmove+0x20/0x60 mm/kasan/shadow.c:53 memmove include/linux/string.h:462 [inline] leaf_paste_entries+0x449/0x910 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+0x951e/0xd8b0 fs/reiserfs/do_balan.c:1452 do_balance+0x315/0x810 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x762/0x8e0 fs/reiserfs/stree.c:2138 reiserfs_add_entry+0x8cb/0xcf0 fs/reiserfs/namei.c:566 reiserfs_mkdir+0x66e/0x980 fs/reiserfs/namei.c:858 create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x4de/0xb60 fs/reiserfs/xattr.c:1011 reiserfs_fill_super+0x215d/0x2e00 fs/reiserfs/super.c:2177 mount_bdev+0x34d/0x410 fs/super.c:1366 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x89/0x2f0 fs/super.c:1496 do_new_mount fs/namespace.c:2881 [inline] path_mount+0x13ad/0x20c0 fs/namespace.c:3211 do_mount fs/namespace.c:3224 [inline] __do_sys_mount fs/namespace.c:3432 [inline] __se_sys_mount fs/namespace.c:3409 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3409 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 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:00007f65f1ff5fa8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00000000004672ba RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f65f1ff6000 RBP: 00007f65f1ff6040 R08: 00007f65f1ff6040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f65f1ff6000 R15: 00000000200003c0 The buggy address belongs to the page: page:00000000ed2bd5a6 refcount:3 mapcount:0 mapping:00000000c1e83667 index:0x3d97 pfn:0x8e8cb aops:def_blk_aops ino:700004 flags: 0xfff00000002022(referenced|active|private) raw: 00fff00000002022 dead000000000100 dead000000000122 ffff8880179afb90 raw: 0000000000003d97 ffff88808e049910 00000003ffffffff ffff8881407ac000 page dumped because: kasan: bad access detected pages's memcg:ffff8881407ac000 Memory state around the buggy address: ffff88808e8cbe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808e8cbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808e8cbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88808e8cc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88808e8cc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================