bisecting fixing commit since a1b977b49b66c75e6c51a515f6700371ae720217 building syzkaller on d32b0bbf2f8cfe548553c4012e2c0f79040d999f testing commit a1b977b49b66c75e6c51a515f6700371ae720217 with gcc (GCC) 8.1.0 kernel signature: 37094f88aea9685a969c8007fab1c0d0846af3724d35ec078cb03b7689c14d32 all runs: crashed: kernel BUG at fs/f2fs/inode.c:LINE! testing current HEAD 31acccdc877486a649a86d37725a15175fcd5ed6 testing commit 31acccdc877486a649a86d37725a15175fcd5ed6 with gcc (GCC) 8.1.0 kernel signature: 1ef9e05a575fcaee7341238f8dbd011bcc9c338a3be722b45c10152059a48006 all runs: crashed: kernel BUG at fs/f2fs/inode.c:LINE! revisions tested: 2, total time: 24m5.224092114s (build: 17m57.817041569s, test: 5m29.475544764s) the crash still happens on HEAD commit msg: Linux 4.19.157 crash: kernel BUG at fs/f2fs/inode.c:LINE! F2FS-fs (loop1): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop3): f2fs_check_nid_range: out-of-range nid=1, run fsck to fix. IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 ------------[ cut here ]------------ kernel BUG at fs/f2fs/inode.c:706! ------------[ cut here ]------------ IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready kernel BUG at fs/f2fs/inode.c:706! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8094 Comm: syz-executor.1 Not tainted 4.19.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ieee80211 phy12: Selected rate control algorithm 'minstrel_ht' RIP: 0010:f2fs_evict_inode+0xd06/0x1000 fs/f2fs/inode.c:706 Code: e9 df f8 ff ff 48 8b 7d a0 e8 e6 8a a3 fe e9 a3 f3 ff ff 85 c0 0f 84 8b fc ff ff eb 9a 4c 89 e7 e8 1f 41 03 00 e9 94 f6 ff ff <0f> 0b e8 e3 8a a3 fe e9 1c f8 ff ff 4c 89 f7 e8 d6 8a a3 fe e9 2f RSP: 0018:ffff8880a1177910 EFLAGS: 00010202 RAX: 0000000000000142 RBX: ffff88809ea98f00 RCX: 0000000000000001 RDX: 1ffff11010000eba RSI: 0000000000000001 RDI: ffff88809e82c784 RBP: ffff8880a1177988 R08: 0000000000000000 R09: ffffed101748473a R10: ffffed101748473a R11: ffff8880ba4239d3 R12: ffff888080007200 R13: ffff88809e82c700 R14: dffffc0000000000 R15: ffff88809ea994b8 FS: 00007fd496497700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055dabe796160 CR3: 00000000a4e1d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ------------[ cut here ]------------ Call Trace: kernel BUG at fs/f2fs/inode.c:706! IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready evict+0x29c/0x590 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x378/0x6b0 fs/inode.c:1581 f2fs_fill_super+0x4b52/0x70c0 fs/f2fs/super.c:3064 ieee80211 phy13: Selected rate control algorithm 'minstrel_ht' mount_bdev+0x26f/0x330 fs/super.c:1158 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 f2fs_mount+0x10/0x20 fs/f2fs/super.c:3234 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 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 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 Bluetooth: hci2: command 0x0419 tx timeout do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4608aa 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:00007fd496496a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd496496b20 RCX: 00000000004608aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd496496ae0 RBP: 00007fd496496ae0 R08: 00007fd496496b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 00000000200015c0 Modules linked in: ---[ end trace 5dfb5c0569445550 ]--- wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 RIP: 0010:f2fs_evict_inode+0xd06/0x1000 fs/f2fs/inode.c:706 ------------[ cut here ]------------ Code: e9 df f8 ff ff 48 8b 7d a0 e8 e6 8a a3 fe e9 a3 f3 ff ff 85 c0 0f 84 8b fc ff ff eb 9a 4c 89 e7 e8 1f 41 03 00 e9 94 f6 ff ff <0f> 0b e8 e3 8a a3 fe e9 1c f8 ff ff 4c 89 f7 e8 d6 8a a3 fe e9 2f kernel BUG at fs/f2fs/inode.c:706! invalid opcode: 0000 [#2] PREEMPT SMP KASAN RSP: 0018:ffff8880a1177910 EFLAGS: 00010202 CPU: 1 PID: 8070 Comm: syz-executor.3 Tainted: G D 4.19.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:f2fs_evict_inode+0xd06/0x1000 fs/f2fs/inode.c:706 Code: e9 df f8 ff ff 48 8b 7d a0 e8 e6 8a a3 fe e9 a3 f3 ff ff 85 c0 0f 84 8b fc ff ff eb 9a 4c 89 e7 e8 1f 41 03 00 e9 94 f6 ff ff <0f> 0b e8 e3 8a a3 fe e9 1c f8 ff ff 4c 89 f7 e8 d6 8a a3 fe e9 2f RSP: 0018:ffff88809fde7910 EFLAGS: 00010202 RAX: 0000000000000142 RBX: ffff8880a0d08e80 RCX: 0000000000000001 RDX: 1ffff1101000c4da RSI: 0000000000000001 RDI: ffff888097d9ad84 RBP: ffff88809fde7988 R08: 0000000000000000 R09: fffff940004ef85e R10: fffff940004ef85e R11: ffffea000277c2f7 R12: ffff888080062300 R13: ffff888097d9ad00 R14: dffffc0000000000 R15: ffff8880a0d09438 FS: 00007fac3697a700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f94d3069020 CR3: 00000000aa271000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: evict+0x29c/0x590 fs/inode.c:559 RAX: 0000000000000142 RBX: ffff88809ea98f00 RCX: 0000000000000001 iput_final fs/inode.c:1555 [inline] iput+0x378/0x6b0 fs/inode.c:1581 f2fs_fill_super+0x4b52/0x70c0 fs/f2fs/super.c:3064 RDX: 1ffff11010000eba RSI: 0000000000000001 RDI: ffff88809e82c784 mount_bdev+0x26f/0x330 fs/super.c:1158 f2fs_mount+0x10/0x20 fs/f2fs/super.c:3234 mount_fs+0x7f/0x2a2 fs/super.c:1261 vfs_kern_mount.part.11+0x58/0x3d0 fs/namespace.c:961 RBP: ffff8880a1177988 R08: 0000000000000000 R09: ffffed101748473a vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x376/0x2710 fs/namespace.c:2799 R10: ffffed101748473a R11: ffff8880ba4239d3 R12: ffff888080007200 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:0x4608aa R13: ffff88809e82c700 R14: dffffc0000000000 R15: ffff88809ea994b8 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:00007fac36979a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fac36979b20 RCX: 00000000004608aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fac36979ae0 RBP: 00007fac36979ae0 R08: 00007fac36979b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 00000000200015c0 Modules linked in: FS: 00007fd496497700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 invalid opcode: 0000 [#3] PREEMPT SMP KASAN CR2: 000055dabe796160 CR3: 00000000a4e1d000 CR4: 00000000001406f0 CPU: 1 PID: 8088 Comm: syz-executor.4 Tainted: G D 4.19.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:f2fs_evict_inode+0xd06/0x1000 fs/f2fs/inode.c:706 Code: e9 df f8 ff ff 48 8b 7d a0 e8 e6 8a a3 fe e9 a3 f3 ff ff 85 c0 0f 84 8b fc ff ff eb 9a 4c 89 e7 e8 1f 41 03 00 e9 94 f6 ff ff <0f> 0b e8 e3 8a a3 fe e9 1c f8 ff ff 4c 89 f7 e8 d6 8a a3 fe e9 2f RSP: 0018:ffff8880aabdf910 EFLAGS: 00010202 RAX: 0000000000000142 RBX: ffff88809ee4cec0 RCX: 0000000000000001 RDX: 1ffff1101000bcca RSI: 0000000000000001 RDI: ffff88809e438204 RBP: ffff8880aabdf988 R08: 0000000000000000 R09: fffff940004ef936 R10: fffff940004ef936 R11: ffffea000277c9b7 R12: ffff88808005e280 R13: ffff88809e438180 R14: dffffc0000000000 R15: ffff88809ee4d478 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 FS: 00007fe66b91d700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055dabe796160 CR3: 00000000a15c4000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: evict+0x29c/0x590 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x378/0x6b0 fs/inode.c:1581 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 f2fs_fill_super+0x4b52/0x70c0 fs/f2fs/super.c:3064