syzbot


WARNING in close_fs_devices

Status: fixed on 2018/08/28 17:48
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+ceb2606025ec1cc3479c@syzkaller.appspotmail.com
Fix commit: 81ffd56b5745 btrfs: fix mount and ioctl device scan ioctl race
First crash: 2182d, last: 2139d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 4.18 000/197] 4.18.8-stable review 205 (205) 2018/09/17 04:57
WARNING in close_fs_devices 2 (6) 2018/06/19 17:42
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 1031d 1275d 20/26 fixed on 2021/11/10 00:50
linux-4.19 WARNING in close_fs_devices C done 105 1030d 1348d 1/1 fixed on 2021/08/30 09:32
upstream WARNING in close_fs_devices (2) btrfs C 23 1285d 1346d 15/26 fixed on 2020/11/20 14:54

Sample crash report:
WARNING: CPU: 0 PID: 4534 at fs/btrfs/volumes.c:1071 close_fs_devices+0xbf0/0xfd0 fs/btrfs/volumes.c:1071
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4534 Comm: syz-executor242 Not tainted 4.18.0-rc1+ #111
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:close_fs_devices+0xbf0/0xfd0 fs/btrfs/volumes.c:1071
Code: 4c af fe 0f 0b e8 90 4c af fe 0f 0b 48 89 f7 e8 c6 1e ed fe e9 de f5 ff ff e8 7c 4c af fe 0f 0b e9 fd fd ff ff e8 70 4c af fe <0f> 0b e9 a8 fd ff ff 48 8b bd 58 fd ff ff e8 5d 1f ed fe e9 35 fd 
RSP: 0018:ffff8801ad416530 EFLAGS: 00010293
RAX: ffff8801d97a85c0 RBX: 0000000000000001 RCX: ffffffff82ccc076
RDX: 0000000000000000 RSI: ffffffff82ccc2d0 RDI: 0000000000000007
RBP: ffff8801ad416830 R08: ffff8801d97a85c0 R09: 0000000000000006
R10: ffff8801d97a85c0 R11: 0000000000000000 R12: ffffed0035a82cc9
R13: 1ffff10035a82cb9 R14: ffff8801ad4165c8 R15: ffff8801a8ea7688
 btrfs_close_devices+0x29/0x150 fs/btrfs/volumes.c:1085
 open_ctree+0x592/0x78b6 fs/btrfs/disk-io.c:3358
 btrfs_fill_super fs/btrfs/super.c:1202 [inline]
 btrfs_mount_root+0x1702/0x1e90 fs/btrfs/super.c:1593
 mount_fs+0xae/0x328 fs/super.c:1277
 vfs_kern_mount.part.34+0xdc/0x4e0 fs/namespace.c:1037
 vfs_kern_mount+0x40/0x60 fs/namespace.c:1027
 btrfs_mount+0x4a9/0x215e fs/btrfs/super.c:1661
 mount_fs+0xae/0x328 fs/super.c:1277
 vfs_kern_mount.part.34+0xdc/0x4e0 fs/namespace.c:1037
 vfs_kern_mount fs/namespace.c:1027 [inline]
 do_new_mount fs/namespace.c:2518 [inline]
 do_mount+0x581/0x30e0 fs/namespace.c:2848
 ksys_mount+0x12d/0x140 fs/namespace.c:3064
 __do_sys_mount fs/namespace.c:3078 [inline]
 __se_sys_mount fs/namespace.c:3075 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3075
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446f5a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 1d aa 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 fa a9 fb ff c3 66 0f 1f 84 00 00 00 00 00 
RSP: 002b:00007ffd2dbae868 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd2dbae880 RCX: 0000000000446f5a
RDX: 00007ffd2dbae880 RSI: 00000000200000c0 RDI: 00007ffd2dbae8a0
RBP: 0000000000000001 R08: 00007ffd2dbae8e0 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000001
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (137):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/21 14:27 upstream 1abd8a8f39cd 095ef806 .config console log report syz C ci-upstream-kasan-gce-root
2018/06/21 07:31 upstream 1abd8a8f39cd 095ef806 .config console log report syz C ci-upstream-kasan-gce-root
2018/06/17 16:12 upstream ce397d215ccd 27c5f59f .config console log report syz C ci-upstream-kasan-gce-root
2018/06/10 21:24 upstream 3ca24ce9ff76 866118af .config console log report syz C ci-upstream-kasan-gce-root
2018/06/10 02:31 upstream a16afaf7928b 866118af .config console log report syz C ci-upstream-kasan-gce-root
2018/06/05 10:59 upstream 716a685fdb89 a316ff92 .config console log report syz C ci-upstream-kasan-gce-root
2018/07/18 17:01 upstream 3c53776e29f8 809256c3 .config console log report ci-upstream-kasan-gce-root
2018/07/18 14:39 upstream 3c53776e29f8 809256c3 .config console log report ci-upstream-kasan-gce-root
2018/07/18 13:26 upstream 3c53776e29f8 809256c3 .config console log report ci-upstream-kasan-gce-root
2018/07/17 20:49 upstream 30b06abfb92b 6d5bd5b5 .config console log report ci-upstream-kasan-gce-root
2018/07/16 16:59 upstream 9d3cce1e8b85 40cb0c9a .config console log report ci-upstream-kasan-gce-root
2018/07/16 11:00 upstream 9d3cce1e8b85 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/16 06:43 upstream 9d3cce1e8b85 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/16 03:11 upstream 9d3cce1e8b85 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/16 00:02 upstream 9d3cce1e8b85 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/14 09:24 upstream 2db39a2f491a 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/14 03:11 upstream 9d2e34897d8d 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/13 22:54 upstream 9d2e34897d8d 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/13 14:50 upstream 63f047771621 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/13 14:39 upstream 63f047771621 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/13 06:47 upstream 63f047771621 06c33b3a .config console log report ci-upstream-kasan-gce-root
2018/07/12 22:51 upstream c25c74b7476e 06c33b3a .config console log report ci-upstream-kasan-gce-root
2018/07/12 19:22 upstream c25c74b7476e 06c33b3a .config console log report ci-upstream-kasan-gce-root
2018/07/12 03:10 upstream c25c74b7476e 2e0e3130 .config console log report ci-upstream-kasan-gce-root
2018/07/11 23:36 upstream c25c74b7476e 2e0e3130 .config console log report ci-upstream-kasan-gce-root
2018/07/11 11:55 upstream 1e09177acae3 2e0e3130 .config console log report ci-upstream-kasan-gce-root
2018/07/11 05:39 upstream 30c2c32d7f70 2e0e3130 .config console log report ci-upstream-kasan-gce-root
2018/07/10 15:28 upstream 092150a25cb7 9fa03fa5 .config console log report ci-upstream-kasan-gce-root
2018/07/10 14:20 upstream 092150a25cb7 9fa03fa5 .config console log report ci-upstream-kasan-gce-root
2018/07/10 06:46 upstream 092150a25cb7 f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/10 00:21 upstream 1e4b044d2251 f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/09 23:14 upstream 1e4b044d2251 f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/09 20:15 upstream 1e4b044d2251 f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/09 06:05 upstream ca04b3cca11a f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/09 03:01 upstream ca04b3cca11a f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/09 00:55 upstream ca04b3cca11a f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/07/08 19:00 upstream b2d44d145d2a c9a7a4dc .config console log report ci-upstream-kasan-gce-root
2018/07/08 15:00 upstream b2d44d145d2a c9a7a4dc .config console log report ci-upstream-kasan-gce-root
2018/07/08 09:22 upstream b2d44d145d2a c9a7a4dc .config console log report ci-upstream-kasan-gce-root
2018/07/08 01:11 upstream 624434af256a ab89aea9 .config console log report ci-upstream-kasan-gce-root
2018/07/07 16:26 upstream 624434af256a ab89aea9 .config console log report ci-upstream-kasan-gce-root
2018/07/07 11:55 upstream 29119529d8de 6c0c0099 .config console log report ci-upstream-kasan-gce-root
2018/07/07 04:15 upstream 29119529d8de 6c0c0099 .config console log report ci-upstream-kasan-gce-root
2018/07/07 00:57 upstream b4d0562137c9 9636bc93 .config console log report ci-upstream-kasan-gce-root
2018/07/06 16:09 upstream c42c12a90545 9636bc93 .config console log report ci-upstream-kasan-gce-root
2018/07/06 11:35 upstream c42c12a90545 18403e65 .config console log report ci-upstream-kasan-gce-root
2018/07/06 07:30 upstream c42c12a90545 d3b2a0e2 .config console log report ci-upstream-kasan-gce-root
2018/07/05 20:33 upstream fc36def997cf d3b2a0e2 .config console log report ci-upstream-kasan-gce-root
2018/07/05 08:57 upstream fc36def997cf f525fd72 .config console log report ci-upstream-kasan-gce-root
2018/07/05 07:19 upstream fc36def997cf f525fd72 .config console log report ci-upstream-kasan-gce-root
2018/07/05 04:12 upstream fc36def997cf e1b966c6 .config console log report ci-upstream-kasan-gce-root
2018/06/05 09:49 upstream 716a685fdb89 a316ff92 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.