syzbot


kernel BUG at fs/btrfs/volumes.c:LINE!

Status: upstream: reported C repro on 2019/04/16 14:20
Reported-by: syzbot+7d658208ac6421b935b9@syzkaller.appspotmail.com
First crash: 1836d, last: 727d
Fix bisection the fix commit could be any of (bisect log):
  e0f8b8a65a47 Linux 4.14.170
  4139fb08c05f Linux 4.14.187
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG at fs/btrfs/volumes.c:LINE! C error 126 580d 1822d 0/1 upstream: reported C repro on 2019/04/29 16:42
upstream kernel BUG at fs/btrfs/volumes.c:LINE! btrfs 130 1611d 2149d 15/26 fixed on 2020/03/11 20:34
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/02/27 04:32 11m retest repro linux-4.14.y report log
2022/11/08 18:30 10m retest repro linux-4.14.y report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2020/07/01 13:56 30m (2) bisect fix linux-4.14.y job log (2)
2020/05/20 16:46 24m bisect fix linux-4.14.y job log (0) log
2020/03/23 05:16 25m bisect fix linux-4.14.y job log (0) log

Sample crash report:
RDX: 00007ffe893baa50 RSI: 00000000200001c0 RDI: 00007ffe893baa70
RBP: 0000000000000000 R08: 00007ffe893baab0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00000000004060a0 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
kernel BUG at fs/btrfs/volumes.c:895!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7523 Comm: syz-executor722 Not tainted 4.14.170-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888077ee8200 task.stack: ffff888079168000
RIP: 0010:btrfs_prepare_close_one_device fs/btrfs/volumes.c:895 [inline]
RIP: 0010:__btrfs_close_devices+0x7df/0xa90 fs/btrfs/volumes.c:915
RSP: 0018:ffff88807916f700 EFLAGS: 00010297
RAX: ffff888077ee8200 RBX: ffff8880981d9240 RCX: ffff888077ee8a80
RDX: 0000000000000000 RSI: ffffffff87f84e60 RDI: 0000000000000286
RBP: ffff88807916f7c8 R08: ffff888077ee8200 R09: ffff888077ee8ac8
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a10917d0
R13: 0000000000000000 R14: ffff8880981d8dc0 R15: dffffc0000000000
FS:  0000000000e58940(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000008ed020 CR3: 0000000093374000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 btrfs_close_devices+0x29/0x140 fs/btrfs/volumes.c:948
 btrfs_mount+0x1fd9/0x2b28 fs/btrfs/super.c:1642
 mount_fs+0x97/0x2a1 fs/super.c:1237
 vfs_kern_mount.part.0+0x5e/0x3d0 fs/namespace.c:1046
 vfs_kern_mount+0x40/0x60 fs/namespace.c:1036
 mount_subvol fs/btrfs/super.c:1392 [inline]
 btrfs_mount+0x3ce/0x2b28 fs/btrfs/super.c:1563
 mount_fs+0x97/0x2a1 fs/super.c:1237
 vfs_kern_mount.part.0+0x5e/0x3d0 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2549 [inline]
 do_mount+0x417/0x27d0 fs/namespace.c:2879
 SYSC_mount fs/namespace.c:3095 [inline]
 SyS_mount+0xab/0x120 fs/namespace.c:3072
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x44b9ca
RSP: 002b:00007ffe893baa08 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000044b9ca
RDX: 00007ffe893baa50 RSI: 00000000200001c0 RDI: 00007ffe893baa70
RBP: 0000000000000000 R08: 00007ffe893baab0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00000000004060a0 R14: 0000000000000000 R15: 0000000000000000
Code: 84 c0 74 08 3c 03 0f 8e 59 02 00 00 48 8b 45 80 c7 80 10 01 00 00 00 00 00 00 e9 e2 f8 ff ff e8 08 e1 c2 fe 0f 0b e8 01 e1 c2 fe <0f> 0b 48 89 f7 e8 d7 70 ed fe e9 ad f8 ff ff e8 ed e0 c2 fe 0f 
RIP: btrfs_prepare_close_one_device fs/btrfs/volumes.c:895 [inline] RSP: ffff88807916f700
RIP: __btrfs_close_devices+0x7df/0xa90 fs/btrfs/volumes.c:915 RSP: ffff88807916f700
---[ end trace 1c2cdd46ce6dae39 ]---

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/08 14:49 linux-4.14.y e0f8b8a65a47 06150bf1 .config console log report syz C ci2-linux-4-14
2022/04/29 12:26 linux-4.14.y e3a56aaade89 e9076525 .config console log report info ci2-linux-4-14 kernel BUG in __btrfs_close_devices
2022/01/19 13:12 linux-4.14.y 4ba8e26127c3 0620189b .config console log report info ci2-linux-4-14 kernel BUG in __btrfs_close_devices
2021/03/08 11:31 linux-4.14.y 1d177c0872ab 09fbf400 .config console log report info ci2-linux-4-14 kernel BUG in __btrfs_close_devices
2021/01/06 13:16 linux-4.14.y 1752938529c6 fff20c29 .config console log report info ci2-linux-4-14
2021/01/05 00:01 linux-4.14.y 1752938529c6 2a28ff1f .config console log report info ci2-linux-4-14
2020/12/03 02:44 linux-4.14.y c196b3a9c83a 8c9190ef .config console log report info ci2-linux-4-14
2020/11/24 18:20 linux-4.14.y 87335852c5d9 e34b696c .config console log report info ci2-linux-4-14
2020/07/04 04:38 linux-4.14.y b850307b279c 51095195 .config console log report ci2-linux-4-14
2020/06/01 10:25 linux-4.14.y 4f68020fef1c a0331e89 .config console log report ci2-linux-4-14
2020/05/25 20:46 linux-4.14.y a41ba30d9df2 73964a9b .config console log report ci2-linux-4-14
2020/04/20 16:45 linux-4.14.y c10b57a567e4 347a5dc3 .config console log report ci2-linux-4-14
2020/02/22 05:16 linux-4.14.y 98db2bf27b9e 2ffa6679 .config console log report ci2-linux-4-14
2020/02/18 21:57 linux-4.14.y 98db2bf27b9e 012fbc32 .config console log report ci2-linux-4-14
2020/02/13 23:01 linux-4.14.y e0f8b8a65a47 e6247653 .config console log report ci2-linux-4-14
2020/02/13 02:48 linux-4.14.y e0f8b8a65a47 84f4fc8a .config console log report ci2-linux-4-14
2020/02/08 14:29 linux-4.14.y e0f8b8a65a47 06150bf1 .config console log report ci2-linux-4-14
2019/11/24 04:41 linux-4.14.y f56f3d0e65ad 598ca6c8 .config console log report ci2-linux-4-14
2019/11/19 14:34 linux-4.14.y 775d01b65b5d 432c7650 .config console log report ci2-linux-4-14
2019/11/17 17:54 linux-4.14.y 775d01b65b5d d5696d51 .config console log report ci2-linux-4-14
2019/11/06 07:07 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/10/31 17:20 linux-4.14.y ddef1e8e3f6e a41ca8fa .config console log report ci2-linux-4-14
2019/10/23 21:30 linux-4.14.y b98aebd29824 b602d64b .config console log report ci2-linux-4-14
2019/10/17 14:49 linux-4.14.y e132c8d7b58d 8c88c9c1 .config console log report ci2-linux-4-14
2019/09/27 05:30 linux-4.14.y f6e27dbb1afa 2f1548bc .config console log report ci2-linux-4-14
2019/09/03 03:45 linux-4.14.y 01fd1694b93c 14544a56 .config console log report ci2-linux-4-14
2019/09/02 15:18 linux-4.14.y 01fd1694b93c db7c31ca .config console log report ci2-linux-4-14
2019/08/30 18:30 linux-4.14.y 01fd1694b93c 9adfa876 .config console log report ci2-linux-4-14
2019/08/29 21:57 linux-4.14.y 01fd1694b93c cd626f3b .config console log report ci2-linux-4-14
2019/08/29 21:25 linux-4.14.y 01fd1694b93c cd626f3b .config console log report ci2-linux-4-14
2019/08/28 05:55 linux-4.14.y b5260801526c fd37b39e .config console log report ci2-linux-4-14
2019/08/20 23:27 linux-4.14.y 45f092f9e9cb 6b8391d0 .config console log report ci2-linux-4-14
2019/08/20 12:03 linux-4.14.y 45f092f9e9cb cfc9868f .config console log report ci2-linux-4-14
2019/07/28 11:16 linux-4.14.y ff33472c282e c85e1c5b .config console log report ci2-linux-4-14
2019/07/24 07:41 linux-4.14.y ff33472c282e de453f34 .config console log report ci2-linux-4-14
2019/07/11 19:08 linux-4.14.y aea8526edf59 186a30b9 .config console log report ci2-linux-4-14
2019/07/07 12:57 linux-4.14.y e3c1b27308ae f62e1e85 .config console log report ci2-linux-4-14
2019/06/11 19:33 linux-4.14.y 2bf3258a12af 5b5826d0 .config console log report ci2-linux-4-14
2019/04/24 18:54 linux-4.14.y 68d7a45eec10 8e3c52b1 .config console log report ci2-linux-4-14
2019/04/16 13:19 linux-4.14.y 1ec8f1f0bffe 505ab413 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.