syzbot


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

Status: fixed on 2020/03/11 20:34
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+5b658d997a83984507a6@syzkaller.appspotmail.com
Fix commit: 321f69f86a0f btrfs: reset device back to allocation state when removing
First crash: 2362d, last: 1823d
Discussions (2)
Title Replies (including bot) Last reply
kernel BUG at fs/btrfs/volumes.c:LINE! 13 (15) 2019/12/10 15:11
Reminder: 3 open syzbot bugs in "fs/btrfs" subsystem 1 (1) 2019/07/24 02:42
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG at fs/btrfs/volumes.c:LINE! C inconclusive 40 939d 2048d 0/1 upstream: reported C repro on 2019/04/16 14:20
linux-4.19 kernel BUG at fs/btrfs/volumes.c:LINE! C error 126 792d 2035d 0/1 upstream: reported C repro on 2019/04/29 16:42

Sample crash report:
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000004
R13: 00000000004ca033 R14: 00000000004e1fb8 R15: 0000000000000003
------------[ cut here ]------------
kernel BUG at fs/btrfs/volumes.c:1086!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 24106 Comm: syz-executor.2 Not tainted 5.4.0-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:1086 [inline]
RIP: 0010:close_fs_devices+0x895/0x8a0 fs/btrfs/volumes.c:1111
Code: 48 8b 7d a0 e8 2c 92 f8 fe 48 8b 5d c0 e9 79 ff ff ff 89 d9 80 e1 07 38 c1 7c 90 48 89 df e8 d2 91 f8 fe eb 86 e8 3b 90 be fe <0f> 0b e8 34 90 be fe 0f 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffff8880573af9a0 EFLAGS: 00010246
RAX: ffffffff82b5acd5 RBX: ffff88808dee8858 RCX: 0000000000040000
RDX: ffffc9000a38f000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff8880573afa30 R08: ffffffff82b67c98 R09: ffffed1015d66bbd
R10: ffffed1015d66bbd R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88808dee8860 R14: ffff88808dee8800 R15: ffff888061b70c00
FS:  00007f7c15d85700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe59b18f88 CR3: 000000009a38e000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 btrfs_close_devices+0x33/0x130 fs/btrfs/volumes.c:1129
 btrfs_mount_root+0xb03/0x1030 fs/btrfs/super.c:1574
 legacy_get_tree+0xf9/0x1a0 fs/fs_context.c:647
 vfs_get_tree+0x8b/0x2a0 fs/super.c:1545
 fc_mount fs/namespace.c:962 [inline]
 vfs_kern_mount+0xc2/0x160 fs/namespace.c:992
 btrfs_mount+0x34f/0x18e0 fs/btrfs/super.c:1621
 legacy_get_tree+0xf9/0x1a0 fs/fs_context.c:647
 vfs_get_tree+0x8b/0x2a0 fs/super.c:1545
 do_new_mount fs/namespace.c:2822 [inline]
 do_mount+0x16c0/0x2510 fs/namespace.c:3142
 ksys_mount+0xcc/0x100 fs/namespace.c:3351
 __do_sys_mount fs/namespace.c:3365 [inline]
 __se_sys_mount fs/namespace.c:3362 [inline]
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3362
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d09a
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:00007f7c15d84a88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f7c15d84b40 RCX: 000000000045d09a
RDX: 00007f7c15d84ae0 RSI: 0000000020000100 RDI: 00007f7c15d84b00
RBP: 0000000000000001 R08: 00007f7c15d84b40 R09: 00007f7c15d84ae0
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000004
R13: 00000000004ca033 R14: 00000000004e1fb8 R15: 0000000000000003
Modules linked in:
---[ end trace 783e348d3b9de8bd ]---
RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1086 [inline]
RIP: 0010:close_fs_devices+0x895/0x8a0 fs/btrfs/volumes.c:1111
Code: 48 8b 7d a0 e8 2c 92 f8 fe 48 8b 5d c0 e9 79 ff ff ff 89 d9 80 e1 07 38 c1 7c 90 48 89 df e8 d2 91 f8 fe eb 86 e8 3b 90 be fe <0f> 0b e8 34 90 be fe 0f 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffff8880573af9a0 EFLAGS: 00010246
RAX: ffffffff82b5acd5 RBX: ffff88808dee8858 RCX: 0000000000040000
RDX: ffffc9000a38f000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff8880573afa30 R08: ffffffff82b67c98 R09: ffffed1015d66bbd
R10: ffffed1015d66bbd R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88808dee8860 R14: ffff88808dee8800 R15: ffff888061b70c00
FS:  00007f7c15d85700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe59b18f88 CR3: 000000009a38e000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (130):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/27 04:03 upstream be2eca94d144 1048481f .config console log report ci-upstream-kasan-gce-smack-root
2019/11/24 16:52 upstream 6b8a79467876 598ca6c8 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/24 11:06 upstream 6b8a79467876 598ca6c8 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/18 01:02 upstream cbb104f91dfe d5696d51 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/17 16:56 upstream fe30021c36fb d5696d51 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/13 05:58 upstream 100d46bd72ec 048f2d49 .config console log report ci-upstream-kasan-gce-smack-root
2019/11/12 02:45 upstream 31f4f5b495a6 048f2d49 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/27 02:14 upstream f877bee5ea0b 25bb509e .config console log report ci-upstream-kasan-gce-smack-root
2019/10/14 03:08 upstream da94001239cc 2f661ec4 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/09 05:23 upstream eda57a0e4299 b1ebbfef .config console log report ci-upstream-kasan-gce-smack-root
2019/10/05 20:45 upstream 4ea655343ce4 f3f7d9c8 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/05 19:02 upstream 4ea655343ce4 f3f7d9c8 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/03 19:02 upstream 0f1a7b3fac05 fc17ba49 .config console log report ci-upstream-kasan-gce-smack-root
2019/10/01 11:59 upstream 54ecb8f7028c c7a4fb99 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/21 07:02 upstream f97c81dc6ca5 d96e88f3 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/07 14:27 upstream 1e3778cb223e a60cb4cd .config console log report ci-upstream-kasan-gce-smack-root
2019/09/05 13:18 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/02 15:10 upstream 9f159ae07f07 db7c31ca .config console log report ci-upstream-kasan-gce-smack-root
2019/08/30 00:39 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-smack-root
2019/08/29 21:57 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-smack-root
2019/08/29 02:41 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-smack-root
2019/08/27 19:37 upstream a55aa89aab90 d21c5d9d .config console log report ci-upstream-kasan-gce-root
2019/08/26 20:38 upstream a55aa89aab90 d21c5d9d .config console log report ci-upstream-kasan-gce-smack-root
2019/08/25 09:11 upstream 361469211f87 d21c5d9d .config console log report ci-upstream-kasan-gce-selinux-root
2019/08/23 01:07 upstream 20eabc8966f5 d003d6d0 .config console log report ci-upstream-kasan-gce-selinux-root
2019/08/22 06:54 upstream bb7ba8069de9 984250d5 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/20 02:09 upstream 06821504fd47 ee12860b .config console log report ci-upstream-kasan-gce-smack-root
2019/08/17 22:33 upstream 6e625a1a3f47 55bf8926 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/14 06:16 upstream ee1c7bd33e66 ef801a3e .config console log report ci-upstream-kasan-gce-smack-root
2019/08/13 11:52 upstream d45331b00ddb 8620c2c2 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/07 14:17 upstream f4eb1423e433 cdde7486 .config console log report ci-upstream-kasan-gce-smack-root
2019/07/30 15:05 upstream 2a11c76e5301 f28bf2a5 .config console log report ci-upstream-kasan-gce-root
2019/07/26 22:25 upstream 6789f873ed37 3e5d1beb .config console log report ci-upstream-kasan-gce-root
2019/07/21 14:14 upstream c6dd78fcb8ee 1656845f .config console log report ci-upstream-kasan-gce-root
2019/07/03 16:14 upstream eca94432934f 55565fa0 .config console log report ci-upstream-kasan-gce-smack-root
2019/07/02 06:56 upstream 6fbc7275c7a9 cccc4302 .config console log report ci-upstream-kasan-gce-selinux-root
2019/07/01 07:59 upstream 6fbc7275c7a9 699d6448 .config console log report ci-upstream-kasan-gce-smack-root
2019/06/26 03:28 upstream 249155c20f9b 0a8d1a96 .config console log report ci-upstream-kasan-gce-root
2019/06/09 08:33 upstream 8d72e5bd86cb 0159583c .config console log report ci-upstream-kasan-gce-root
2019/06/06 11:42 upstream 156c05917e09 a547defc .config console log report ci-upstream-kasan-gce-root
2019/05/02 14:44 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 08:14 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-selinux-root
2019/04/29 14:21 upstream 37624b58542f b617407b .config console log report ci-upstream-kasan-gce-root
2019/04/27 12:45 upstream baf76f0c58ae b617407b .config console log report ci-upstream-kasan-gce-smack-root
2019/04/23 15:13 upstream 085b7755808a 53199d6e .config console log report ci-upstream-kasan-gce-smack-root
2019/04/19 23:12 upstream 3ecafda911f4 b0e8efcb .config console log report ci-upstream-kasan-gce-selinux-root
2019/04/17 10:56 upstream 444fe9913539 b0e8efcb .config console log report ci-upstream-kasan-gce-root
2019/04/16 13:43 upstream 618d919cae2f 505ab413 .config console log report ci-upstream-kasan-gce-root
2019/03/27 09:18 upstream 65ae689329c5 55684ce1 .config console log report ci-upstream-kasan-gce-selinux-root
2018/06/06 09:20 upstream af6c5d5e01ad 41f9540d .config console log report ci-upstream-kasan-gce-root
2019/08/31 10:05 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/04 02:41 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/03 23:08 linux-next 3c09c1950c84 63bf051f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/03/26 04:55 linux-next 9e864317704b 55684ce1 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.