syzbot


WARNING in close_fs_devices (2)

Status: fixed on 2020/11/20 14:54
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+4cfe71a4da060be47502@syzkaller.appspotmail.com
Fix commit: cf89af146b7e btrfs: dev-replace: fail mount if we don't have replace item with target device
First crash: 1544d, last: 1479d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 5.9 000/255] 5.9.9-rc1 review 264 (264) 2020/11/19 12:14
[PATCH 4.19 000/101] 4.19.158-rc1 review 109 (109) 2020/11/18 22:17
[PATCH 5.4 000/151] 5.4.78-rc1 review 155 (155) 2020/11/18 15:24
WARNING in close_fs_devices (2) 8 (11) 2020/10/30 18:36
[PATCH v2 add prerequisite-patch-id] btrfs: fix devid 0 without a replace item by failing the mount 2 (2) 2020/10/12 05:36
Re: WARNING in close_fs_devices (2) 1 (1) 2020/09/21 08:02
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in close_fs_devices (3) btrfs C done 98 1225d 1469d 20/28 fixed on 2021/11/10 00:50
upstream WARNING in close_fs_devices btrfs C 137 2333d 2376d 8/28 fixed on 2018/08/28 17:48
linux-4.19 WARNING in close_fs_devices C done 105 1225d 1542d 1/1 fixed on 2021/08/30 09:32
Last patch testing requests (1)
Created Duration User Patch Repo Result
2020/09/21 17:02 11m dsterba@suse.cz git://github.com/kdave/btrfs-devel.git misc-5.9 report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6972 at fs/btrfs/volumes.c:1172 close_fs_devices+0x715/0x930 fs/btrfs/volumes.c:1172
Modules linked in:
CPU: 1 PID: 6972 Comm: syz-executor044 Not tainted 5.9.0-rc5-next-20200918-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:close_fs_devices+0x715/0x930 fs/btrfs/volumes.c:1172
Code: e8 00 b8 4c fe 85 db 0f 85 65 f9 ff ff e8 93 bb 4c fe 0f 0b e9 59 f9 ff ff e8 87 bb 4c fe 0f 0b e9 c0 fe ff ff e8 7b bb 4c fe <0f> 0b e9 f9 fe ff ff 48 c7 c7 fc a1 8f 8b e8 e8 0b 8e fe e9 19 f9
RSP: 0018:ffffc900061b7758 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffffffffffffff RCX: ffffffff83285c2c
RDX: ffff8880a6bbe4c0 RSI: ffffffff83285d35 RDI: 0000000000000007
RBP: dffffc0000000000 R08: 0000000000000000 R09: ffff8880a2be1133
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a2be1130
R13: ffff8880a2be11ec R14: ffff888093ab0508 R15: ffff8880a2be1050
FS:  000000000208a880(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004babec CR3: 00000000a7bc7000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 btrfs_close_devices+0x8e/0x4b0 fs/btrfs/volumes.c:1184
 open_ctree+0x492a/0x49cf fs/btrfs/disk-io.c:3381
 btrfs_fill_super fs/btrfs/super.c:1316 [inline]
 btrfs_mount_root.cold+0x14/0x165 fs/btrfs/super.c:1672
 legacy_get_tree+0x105/0x220 fs/fs_context.c:592
 vfs_get_tree+0x89/0x2f0 fs/super.c:1547
 fc_mount fs/namespace.c:983 [inline]
 vfs_kern_mount.part.0+0xd3/0x170 fs/namespace.c:1013
 vfs_kern_mount+0x3c/0x60 fs/namespace.c:1000
 btrfs_mount+0x234/0xaa0 fs/btrfs/super.c:1732
 legacy_get_tree+0x105/0x220 fs/fs_context.c:592
 vfs_get_tree+0x89/0x2f0 fs/super.c:1547
 do_new_mount fs/namespace.c:2896 [inline]
 path_mount+0x12ae/0x1e70 fs/namespace.c:3216
 do_mount fs/namespace.c:3229 [inline]
 __do_sys_mount fs/namespace.c:3437 [inline]
 __se_sys_mount fs/namespace.c:3414 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3414
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x44851a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 cd a2 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 aa a2 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffcb26bce08 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000044851a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffcb26bce50
RBP: 00007ffcb26bce90 R08: 00007ffcb26bce90 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 00007ffcb26bce50 R14: 0000000000000003 R15: 0000000000000001

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/20 22:41 linux-next b652d2a5f2a4 9564d2e9 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/11/18 17:32 upstream 0fa8ee0d9ab9 09323409 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/11/17 05:13 upstream 9c87c9f41245 1bf9a662 .config console log report info ci-upstream-kasan-gce-root
2020/11/14 00:10 upstream 585e5b17b92d e1140d25 .config console log report info ci-upstream-kasan-gce-root
2020/11/11 16:18 upstream eccc87672492 cca87986 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/07 08:27 upstream bf3e76289cd2 64069d48 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/11/06 00:31 upstream 521b619acdc8 64069d48 .config console log report info ci-upstream-kasan-gce-smack-root
2020/10/04 21:27 upstream 22fbc037cd32 5ef9c291 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/04 18:54 upstream 22fbc037cd32 5ef9c291 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/04 10:48 upstream 22fbc037cd32 5ef9c291 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/02 05:33 upstream fcadab740480 9602ddf4 .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/25 13:38 upstream 171d4ff79f96 4a006f63 .config console log report info ci-qemu-upstream
2020/09/21 09:25 upstream ba4f184e126b 9564d2e9 .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/21 09:18 upstream ba4f184e126b 9564d2e9 .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/21 03:37 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce-root
2020/09/19 11:14 upstream eb5f95f1593f 53ce8104 .config console log report info ci-upstream-kasan-gce-root
2020/09/14 11:12 upstream e4c26faa426c 2d3cdd63 .config console log report ci-upstream-kasan-gce-root
2020/09/18 02:28 upstream 10b82d517648 8247808b .config console log report info ci-qemu-upstream-386
2020/11/13 05:07 linux-next 6dd65e60af98 16fca0c8 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/10/04 18:56 linux-next 2172e358cd17 5ef9c291 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/09/25 20:51 linux-next d1d2220c7f39 4a006f63 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/09/20 15:01 linux-next b652d2a5f2a4 9564d2e9 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/09/16 07:52 linux-next 6b02addb1d17 18d7d030 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.