bisecting fixing commit since b09c34517e1ac4018e3bb75ed5c8610a8a1f486b building syzkaller on 1880b4a9f394370a7d1fcb5c1cfca0fa1127b463 testing commit b09c34517e1ac4018e3bb75ed5c8610a8a1f486b with gcc (GCC) 8.1.0 kernel signature: 5da034f385fa18ee45e94926774ba0495a68dc4fab1df3e52bc244b930f3ad78 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing current HEAD 3207316b3beec7e38e5dbe2f463df0cec71e0b97 testing commit 3207316b3beec7e38e5dbe2f463df0cec71e0b97 with gcc (GCC) 8.1.0 kernel signature: 5ff99255e2b7600f2f0864d1f52f78135c9a2b417620794616d97953d77ff95f run #0: crashed: KASAN: out-of-bounds Read in leaf_paste_entries run #1: crashed: KASAN: use-after-free Read in search_by_entry_key run #2: crashed: KASAN: out-of-bounds Read in leaf_paste_entries run #3: crashed: KASAN: out-of-bounds Read in leaf_paste_entries run #4: crashed: KASAN: use-after-free Read in search_by_entry_key run #5: crashed: KASAN: use-after-free Read in search_by_entry_key run #6: crashed: KASAN: out-of-bounds Read in leaf_paste_entries run #7: crashed: KASAN: out-of-bounds Read in leaf_paste_entries run #8: crashed: KASAN: out-of-bounds Read in leaf_paste_entries run #9: crashed: KASAN: out-of-bounds Read in leaf_paste_entries revisions tested: 2, total time: 25m37.873991064s (build: 19m20.5569838s, test: 5m39.86313394s) the crash still happens on HEAD commit msg: Linux 4.19.164 crash: KASAN: out-of-bounds Read in leaf_paste_entries REISERFS (device loop4): journal params: device loop4, size 15748, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 REISERFS (device loop4): checking transaction log (loop4) REISERFS (device loop5): Using r5 hash to sort names REISERFS (device loop5): using 3.5.x disk format ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/string.h:388 [inline] BUG: KASAN: out-of-bounds in leaf_paste_entries+0x3f7/0xa20 fs/reiserfs/lbalance.c:1378 Read of size 18446744073709473760 at addr ffff8881aa017fbf by task syz-executor.5/7474 CPU: 1 PID: 7474 Comm: syz-executor.5 Not tainted 4.19.164-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+0x17c/0x22a lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x307 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 memmove+0x23/0x50 mm/kasan/kasan.c:293 memmove include/linux/string.h:388 [inline] leaf_paste_entries+0x3f7/0xa20 fs/reiserfs/lbalance.c:1378 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1306 [inline] balance_leaf_finish_node_paste.isra.15+0x4af/0x12e0 fs/reiserfs/do_balan.c:1332 balance_leaf_finish_node fs/reiserfs/do_balan.c:1375 [inline] balance_leaf fs/reiserfs/do_balan.c:1463 [inline] do_balance+0x26d5/0x6d20 fs/reiserfs/do_balan.c:1899 reiserfs_paste_into_item+0x509/0x630 fs/reiserfs/stree.c:2142 reiserfs_add_entry+0x792/0xb50 fs/reiserfs/namei.c:566 reiserfs_mkdir+0x5a0/0x840 fs/reiserfs/namei.c:858 xattr_mkdir.constprop.6+0x91/0xc0 fs/reiserfs/xattr.c:76 create_privroot fs/reiserfs/xattr.c:880 [inline] reiserfs_xattr_init+0x399/0x845 fs/reiserfs/xattr.c:1002 reiserfs_fill_super+0x19ec/0x26b0 fs/reiserfs/super.c:2180 mount_bdev+0x26f/0x330 fs/super.c:1158 get_super_block+0x10/0x20 fs/reiserfs/super.c:2609 mount_fs+0x7f/0x2a2 fs/super.c:1261 vfs_kern_mount.part.11+0x58/0x3d0 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x376/0x2710 fs/namespace.c:2799 ksys_mount+0xba/0xe0 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xb9/0x150 fs/namespace.c:3026 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x46087a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f3449f1ea88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3449f1eb20 RCX: 000000000046087a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f3449f1eae0 RBP: 00007f3449f1eae0 R08: 00007f3449f1eb20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000140 R15: 0000000020000040 The buggy address belongs to the page: page:ffffea0006a805c0 count:2 mapcount:0 mapping:ffff8881f04e25e0 index:0x1429 flags: 0x17ffe0000001064(referenced|lru|active|private) raw: 017ffe0000001064 ffffea0006a80588 ffffea0006a934c8 ffff8881f04e25e0 raw: 0000000000001429 ffff8881b124f5e8 00000002ffffffff ffff8881f5222a40 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8881f5222a40 Memory state around the buggy address: ffff8881aa017e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881aa017f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881aa017f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8881aa018000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881aa018080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================