REISERFS (device loop2): Using tea hash to sort names ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/fortify-string.h:207 [inline] BUG: KASAN: out-of-bounds in leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff88806abfefa4 by task syz-executor.2/10134 CPU: 1 PID: 10134 Comm: syz-executor.2 Not tainted 5.13.0-rc5-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+0x93/0xc2 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186 memmove+0x20/0x60 mm/kasan/shadow.c:54 memmove include/linux/fortify-string.h:207 [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 fs/reiserfs/do_balan.c:1321 [inline] balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline] balance_leaf+0x8d17/0xd3d0 fs/reiserfs/do_balan.c:1452 do_balance+0x2ee/0x760 fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x63c/0x7b0 fs/reiserfs/stree.c:2138 reiserfs_add_entry+0x7fb/0xc50 fs/reiserfs/namei.c:566 reiserfs_mkdir+0x5a3/0x860 fs/reiserfs/namei.c:859 create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x412/0xa60 fs/reiserfs/xattr.c:1012 reiserfs_fill_super+0x1c5b/0x2680 fs/reiserfs/super.c:2177 mount_bdev+0x2cb/0x3b0 fs/super.c:1368 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:592 vfs_get_tree+0x7f/0x2c0 fs/super.c:1498 do_new_mount fs/namespace.c:2905 [inline] path_mount+0x7f3/0x1a40 fs/namespace.c:3235 do_mount fs/namespace.c:3248 [inline] __do_sys_mount fs/namespace.c:3456 [inline] __se_sys_mount fs/namespace.c:3433 [inline] __x64_sys_mount+0x1f5/0x260 fs/namespace.c:3433 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae 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:00007f6745857fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00000000004672ba RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f6745858000 RBP: 00007f6745858040 R08: 00007f6745858040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f6745858000 R15: 00000000200003c0 The buggy address belongs to the page: page:000000002f803526 refcount:2 mapcount:0 mapping:0000000046cca4e0 index:0x3d97 pfn:0x6abfe memcg:ffff888140184000 aops:def_blk_aops ino:700002 flags: 0xfff00000002032(referenced|lru|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002032 ffffea0001aafb08 ffffea0001ab0248 ffff8880169aa990 raw: 0000000000003d97 ffff8880675689f8 00000002ffffffff ffff888140184000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806abfee80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806abfef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806abfef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88806abff000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806abff080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================