bisecting fixing commit since fb683b5e3f53a73e761952735736180939a313df building syzkaller on 101194ebf6834198300032f6fb438f2c4cdf0401 testing commit fb683b5e3f53a73e761952735736180939a313df with gcc (GCC) 8.1.0 kernel signature: 4f5b9178d72fde147036ef26c8d8341d4b10c5edf7c712ba73ad7699fc02f414 all runs: crashed: kernel BUG at fs/btrfs/volumes.c:LINE! testing current HEAD 14cfdbd39e316efd91ae6e403ef8211f0b022603 testing commit 14cfdbd39e316efd91ae6e403ef8211f0b022603 with gcc (GCC) 8.1.0 kernel signature: d11f0673785831d2a96acd619776a6a5ecb359a2c15fba1d7718be50b53abef6 all runs: crashed: kernel BUG at fs/btrfs/volumes.c:LINE! revisions tested: 2, total time: 27m34.283378267s (build: 19m23.300239762s, test: 6m46.193134348s) the crash still happens on HEAD commit msg: Linux 4.19.112 crash: kernel BUG at fs/btrfs/volumes.c:LINE! RDX: 00007f1ed0dc1ae0 RSI: 00000000200001c0 RDI: 00007f1ed0dc1b00 RBP: 000000000075bf20 R08: 00007f1ed0dc1b40 R09: 00007f1ed0dc1ae0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1ed0dc26d4 R13: 00000000004cac23 R14: 00000000004e4130 R15: 0000000000000003 ------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:1068! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7436 Comm: syz-executor.4 Not tainted 4.19.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1068 [inline] RIP: 0010:close_fs_devices.part.45+0x4eb/0x7a0 fs/btrfs/volumes.c:1092 Code: 0f 85 9e 01 00 00 48 8d 7a 30 4c 89 43 18 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 6a 01 00 00 48 83 6a 30 01 e9 45 fc ff ff <0f> 0b 0f 0b 4c 89 f7 e8 e9 24 e6 fe e9 a7 fb ff ff e8 df 24 e6 fe RSP: 0018:ffff88809560f6d8 EFLAGS: 00010202 RAX: fffffffffffffff4 RBX: ffff888090e58940 RCX: 0000000000000000 RDX: 1ffffffff10a40e9 RSI: 0000000000000000 RDI: 0000000000000286 RBP: ffff88809560f748 R08: ffffed1015d64733 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: dffffc0000000000 R13: ffff88809bacc918 R14: ffff888090e58960 R15: fffffffffffffff4 FS: 00007f1ed0dc2700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f44759bd110 CR3: 000000009fd1d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: close_fs_devices fs/btrfs/volumes.c:1124 [inline] btrfs_close_devices+0x80/0x1b0 fs/btrfs/volumes.c:1110 btrfs_mount_root+0xeb4/0x16f0 fs/btrfs/super.c:1619 mount_fs+0x7f/0x2a2 fs/super.c:1261 vfs_kern_mount.part.34+0x58/0x3d0 fs/namespace.c:961 vfs_kern_mount+0xe/0x20 fs/namespace.c:947 btrfs_mount+0x21a/0x12f5 fs/btrfs/super.c:1670 mount_fs+0x7f/0x2a2 fs/super.c:1261 vfs_kern_mount.part.34+0x58/0x3d0 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x36e/0x2410 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:0x45d29a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 4d 8c 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 2a 8c fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f1ed0dc1a68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f1ed0dc1c90 RCX: 000000000045d29a RDX: 00007f1ed0dc1ae0 RSI: 00000000200001c0 RDI: 00007f1ed0dc1b00 RBP: 000000000075bf20 R08: 00007f1ed0dc1b40 R09: 00007f1ed0dc1ae0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1ed0dc26d4 R13: 00000000004cac23 R14: 00000000004e4130 R15: 0000000000000003 Modules linked in: ---[ end trace 7f901bf43cc5a6d7 ]--- RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1068 [inline] RIP: 0010:close_fs_devices.part.45+0x4eb/0x7a0 fs/btrfs/volumes.c:1092 Code: 0f 85 9e 01 00 00 48 8d 7a 30 4c 89 43 18 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 6a 01 00 00 48 83 6a 30 01 e9 45 fc ff ff <0f> 0b 0f 0b 4c 89 f7 e8 e9 24 e6 fe e9 a7 fb ff ff e8 df 24 e6 fe RSP: 0018:ffff88809560f6d8 EFLAGS: 00010202 RAX: fffffffffffffff4 RBX: ffff888090e58940 RCX: 0000000000000000 RDX: 1ffffffff10a40e9 RSI: 0000000000000000 RDI: 0000000000000286 RBP: ffff88809560f748 R08: ffffed1015d64733 R09: ffffed1015d64732 R10: ffffed1015d64732 R11: ffff8880aeb23993 R12: dffffc0000000000 R13: ffff88809bacc918 R14: ffff888090e58960 R15: fffffffffffffff4 FS: 00007f1ed0dc2700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f44759bd110 CR3: 000000009fd1d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400