bisecting fixing commit since 811218eceeaa7618652e1b8d11caeff67ab42072 building syzkaller on 624dad51316f9973e1349b6c71e789737d1e00d9 testing commit 811218eceeaa7618652e1b8d11caeff67ab42072 with gcc (GCC) 8.4.1 20210217 kernel signature: 15f5b6dee04b31bc08dd997c1aaf96b3b61b26b05b82a9e866093c1d23717768 run #0: crashed: kernel BUG in iput run #1: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop4] run #2: crashed: kernel BUG in iput run #3: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop3] run #4: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop0] run #5: crashed: kernel BUG in iput run #6: crashed: kernel BUG in iput run #7: crashed: kernel BUG in iput run #8: crashed: kernel BUG in corrupted run #9: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop5] run #10: crashed: kernel BUG in iput run #11: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop5] run #12: crashed: kernel BUG in iput run #13: crashed: kernel BUG in iput run #14: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop0] run #15: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop5] run #16: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop5] run #17: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop1] run #18: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop1] run #19: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop3] testing current HEAD 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 testing commit 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 with gcc (GCC) 8.4.1 20210217 kernel signature: 97732c23762f065b050ac11cd043c98061e556c7e3f638d91d474410d5fffcef run #0: crashed: kernel BUG in iput run #1: crashed: kernel BUG in iput run #2: crashed: kernel BUG in iput run #3: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop0] run #4: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop4] run #5: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop2] run #6: crashed: kernel BUG in iput run #7: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop5] run #8: crashed: BUG: Dentry ADDR{i=0,n=/} still in use (-128) [unmount of erofs loop1] run #9: crashed: kernel BUG in corrupted revisions tested: 2, total time: 21m34.607000142s (build: 14m36.510806297s, test: 6m37.052617055s) the crash still happens on HEAD commit msg: Linux 4.19.189 crash: kernel BUG in corrupted R13: 0000000020000100 R14: 00007f66d64a7000 R15: 0000000020000140 CPU: 1 PID: 9982 Comm: syz-executor.4 Not tainted 4.19.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ------------[ cut here ]------------ Call Trace: kernel BUG at fs/inode.c:1571! __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 invalid opcode: 0000 [#1] PREEMPT SMP KASAN fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.2+0x5/0xa lib/fault-inject.c:149 CPU: 0 PID: 9956 Comm: syz-executor.3 Not tainted 4.19.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:iput+0x536/0x6b0 fs/inode.c:1571 Code: 48 b8 00 00 00 00 00 fc ff df 48 8b 55 c8 48 c1 ea 03 80 3c 02 00 0f 84 ac fd ff ff 48 8b 7d c8 e8 9f aa f0 ff e9 9e fd ff ff <0f> 0b 48 89 df e8 60 f9 ff ff 48 8b 7d d0 e8 97 5b 09 06 e9 2a fe should_fail_alloc_page mm/page_alloc.c:3088 [inline] prepare_alloc_pages mm/page_alloc.c:4346 [inline] __alloc_pages_nodemask+0x23c/0x25a0 mm/page_alloc.c:4393 RSP: 0018:ffff88809ef8fa18 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88808126b998 RCX: 1ffff110168ef9d5 RDX: 1ffff1101024d74d RSI: ffff8880b477ce88 RDI: ffff88808126b998 RBP: ffff88809ef8fa60 R08: ffff8880b477cea8 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88808126b998 R13: ffff88808dbb48c0 R14: 0000000000000000 R15: ffff88808dbb4928 FS: 00007f66d64a7700(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f848b793000 CR3: 00000000976c2000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 __alloc_pages include/linux/gfp.h:496 [inline] __alloc_pages_node include/linux/gfp.h:509 [inline] kmem_getpages mm/slab.c:1412 [inline] cache_grow_begin+0xa5/0x8b0 mm/slab.c:2682 Call Trace: cache_alloc_refill+0x2ac/0x380 mm/slab.c:3049 erofs_read_super drivers/staging/erofs/super.c:439 [inline] erofs_fill_super+0x10b4/0x1168 drivers/staging/erofs/super.c:499 ____cache_alloc mm/slab.c:3132 [inline] __do_cache_alloc mm/slab.c:3354 [inline] slab_alloc mm/slab.c:3389 [inline] kmem_cache_alloc+0x361/0x390 mm/slab.c:3557 alloc_inode+0x16/0x40 drivers/staging/erofs/super.c:49 alloc_inode+0x56/0x150 fs/inode.c:211 mount_bdev+0x26f/0x330 fs/super.c:1158 new_inode_pseudo+0xc/0xd0 fs/inode.c:911 new_inode+0x14/0x30 fs/inode.c:940 erofs_mount+0x6a/0x90 drivers/staging/erofs/super.c:512 erofs_init_managed_cache drivers/staging/erofs/super.c:317 [inline] erofs_read_super drivers/staging/erofs/super.c:386 [inline] erofs_fill_super+0xd02/0x1168 drivers/staging/erofs/super.c:499 mount_fs+0x7f/0x2b0 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 mount_bdev+0x26f/0x330 fs/super.c:1158 erofs_mount+0x6a/0x90 drivers/staging/erofs/super.c:512 mount_fs+0x7f/0x2b0 fs/super.c:1261 ksys_mount+0xb1/0xd0 fs/namespace.c:3015 vfs_kern_mount.part.11+0x58/0x3d0 fs/namespace.c:961 __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 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x376/0x2710 fs/namespace.c:2799 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x46702a 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:00007f66d64a6fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 ksys_mount+0xb1/0xd0 fs/namespace.c:3015 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 000000000046702a __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 RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f66d64a7000 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 RBP: 00007f66d64a7040 R08: 00007f66d64a7040 R09: 0000000020000000 entry_SYSCALL_64_after_hwframe+0x49/0xbe R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 RIP: 0033:0x46702a R13: 0000000020000100 R14: 00007f66d64a7000 R15: 0000000020000140 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 Modules linked in: RSP: 002b:00007f3119294fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 ---[ end trace 76d8c2c6ab65d282 ]--- RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 000000000046702a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f3119295000 RBP: 00007f3119295040 R08: 00007f3119295040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f3119295000 R15: 0000000020000140 CPU: 1 PID: 9989 Comm: syz-executor.2 Tainted: G D 4.19.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:iput+0x536/0x6b0 fs/inode.c:1571 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.2+0x5/0xa lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x20 mm/slab_common.c:1588 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc+0x28e/0x390 mm/slab.c:3557 alloc_inode+0x16/0x40 drivers/staging/erofs/super.c:49 alloc_inode+0x56/0x150 fs/inode.c:211 iget_locked+0x147/0x3f0 fs/inode.c:1176 erofs_iget+0x1b/0x1f70 drivers/staging/erofs/inode.c:244 Code: 48 b8 00 00 00 00 00 fc ff df 48 8b 55 c8 48 c1 ea 03 80 3c 02 00 0f 84 ac fd ff ff 48 8b 7d c8 e8 9f aa f0 ff e9 9e fd ff ff <0f> 0b 48 89 df e8 60 f9 ff ff 48 8b 7d d0 e8 97 5b 09 06 e9 2a fe erofs_read_super drivers/staging/erofs/super.c:394 [inline] erofs_fill_super+0xe6c/0x1168 drivers/staging/erofs/super.c:499 RSP: 0018:ffff88809ef8fa18 EFLAGS: 00010202 mount_bdev+0x26f/0x330 fs/super.c:1158 RAX: dffffc0000000000 RBX: ffff88808126b998 RCX: 1ffff110168ef9d5 erofs_mount+0x6a/0x90 drivers/staging/erofs/super.c:512 mount_fs+0x7f/0x2b0 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 RDX: 1ffff1101024d74d RSI: ffff8880b477ce88 RDI: ffff88808126b998 RBP: ffff88809ef8fa60 R08: ffff8880b477cea8 R09: 0000000000000000 ksys_mount+0xb1/0xd0 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 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88808126b998 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x46702a 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:00007fb28ba23fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 000000000046702a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fb28ba24000 RBP: 00007fb28ba24040 R08: 00007fb28ba24040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fb28ba24000 R15: 0000000020000140 erofs: read_super, device -> /dev/loop5 erofs: read_super, device -> /dev/loop1 erofs: options -> acl,user_xattr, R13: ffff88808dbb48c0 R14: 0000000000000000 R15: ffff88808dbb4928 erofs: root inode @ nid 36 FS: 00007f66d64a7700(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 erofs: read_super, device -> /dev/loop0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 erofs: options -> acl,user_xattr, CR2: 00007f2918e20000 CR3: 00000000976c2000 CR4: 00000000001406f0 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 erofs: root inode @ nid 36 erofs: options -> acl,user_xattr, CPU: 1 PID: 9993 Comm: syz-executor.5 Tainted: G D 4.19.189-syzkaller #0 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.2+0x5/0xa lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x20 mm/slab_common.c:1588 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc+0x28e/0x390 mm/slab.c:3557 __d_alloc+0x28/0xa30 fs/dcache.c:1612 d_alloc_anon fs/dcache.c:1715 [inline] d_make_root+0x38/0x70 fs/dcache.c:1909 erofs_read_super drivers/staging/erofs/super.c:407 [inline] erofs_fill_super+0xf02/0x1168 drivers/staging/erofs/super.c:499