syzbot


WARNING in close_fs_devices

Status: fixed on 2021/08/30 09:32
Reported-by: syzbot+4a14057eb57a04e47261@syzkaller.appspotmail.com
Fix commit: 4c97ed4332be ocfs2: fix zero out valid data
First crash: 1289d, last: 971d
Fix bisection: fixed by (bisect log) :
commit 4c97ed4332beba3ed26b2f14461d3cc469c7f27e
Author: Junxiao Bi <junxiao.bi@oracle.com>
Date: Thu Jul 29 21:53:38 2021 +0000

  ocfs2: fix zero out valid data

  
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 971d 1215d 20/26 fixed on 2021/11/10 00:50
upstream WARNING in close_fs_devices btrfs C 137 2079d 2123d 8/26 fixed on 2018/08/28 17:48
upstream WARNING in close_fs_devices (2) btrfs C 23 1225d 1287d 15/26 fixed on 2020/11/20 14:54

Sample crash report:
BTRFS info (device loop3): has skinny extents
BTRFS error (device loop3): bad tree block start, want 5242880 have 0
BTRFS warning (device loop3): failed to read tree root
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8647 at fs/btrfs/volumes.c:1086 close_fs_devices.part.0.cold+0x11/0x30 fs/btrfs/volumes.c:1086
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8647 Comm: syz-executor444 Not tainted 4.19.163-syzkaller #0
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+0x1fc/0x2fe lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x61 kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:close_fs_devices.part.0.cold+0x11/0x30 fs/btrfs/volumes.c:1086
Code: c7 c7 a0 f4 a4 88 e8 7a b1 56 fe 0f 0b 49 c7 c4 ea ff ff ff e9 d7 06 ff ff e8 d8 b7 6b fe 48 c7 c7 a0 f4 a4 88 e8 5b b1 56 fe <0f> 0b e9 b4 0e ff ff e8 c0 b7 6b fe 48 c7 c7 a0 f4 a4 88 e8 43 b1
RSP: 0018:ffff8880a249f600 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814fdbb1 RDI: ffffed1014493eb2
RBP: ffff8880aa2fe000 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880a9aa2580 R14: ffff88809003ede0 R15: ffff8880b4dc7b00
 close_fs_devices fs/btrfs/volumes.c:1113 [inline]
 btrfs_close_devices+0x95/0x1f0 fs/btrfs/volumes.c:1099
 open_ctree+0x26b/0x61e0 fs/btrfs/disk-io.c:3326
 btrfs_fill_super fs/btrfs/super.c:1209 [inline]
 btrfs_mount_root+0x12e5/0x1830 fs/btrfs/super.c:1613
 mount_fs+0xa3/0x30c fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount+0x3c/0x60 fs/namespace.c:951
 btrfs_mount+0x23a/0xa93 fs/btrfs/super.c:1681
 mount_fs+0xa3/0x30c fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x113c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44deba
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad a0 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 8a a0 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f1a2472abc8 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000044deba
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f1a2472ac10
RBP: 00007f1a2472b6d0 R08: 00007f1a2472ac50 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00007f1a2472ac50
R13: 00007f1a2472ac10 R14: 0000000000000003 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (105):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/20 14:48 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report syz C ci2-linux-4-19
2020/11/27 03:25 linux-4.19.y 0c88e405c97e 5018c946 .config console log report syz C ci2-linux-4-19
2021/07/31 00:03 linux-4.19.y a89b48fe9308 6c236867 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/30 01:17 linux-4.19.y a89b48fe9308 8a799410 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/28 14:10 linux-4.19.y a89b48fe9308 17d6ab15 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/26 03:32 linux-4.19.y 4938296e03bd 4d1b57d4 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/25 21:07 linux-4.19.y 4938296e03bd 4d1b57d4 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/25 01:02 linux-4.19.y 4938296e03bd 4d1b57d4 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/23 06:02 linux-4.19.y 4938296e03bd bc5f1d88 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/14 06:38 linux-4.19.y fcfbdfe9626e 484502bd .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/13 22:13 linux-4.19.y fcfbdfe9626e 70168d5c .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/07 00:21 linux-4.19.y 9f84340f012e cca78469 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/03 09:00 linux-4.19.y 9f84340f012e 55aa55c2 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/07/01 07:38 linux-4.19.y 9f84340f012e 38a885d1 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/29 22:18 linux-4.19.y eb575cd5d7f6 a4fccb01 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/27 22:12 linux-4.19.y eb575cd5d7f6 9d2ab5df .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/19 09:54 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/19 02:10 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/17 21:08 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/17 16:04 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/17 02:39 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/16 03:56 linux-4.19.y 9a2dc0e6c531 990d3cbe .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/12 07:26 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/10 12:05 linux-4.19.y 1722257b8ece 1ba81399 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/06 08:16 linux-4.19.y 1722257b8ece 500c2339 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/06/03 17:42 linux-4.19.y 1722257b8ece 0740de69 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/29 21:23 linux-4.19.y 6b7b0056defc 325a8dab .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/29 09:11 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/27 08:15 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/22 06:24 linux-4.19.y 3c8c23092588 3c7fef33 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/22 02:20 linux-4.19.y 3c8c23092588 3c7fef33 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/19 15:19 linux-4.19.y 3c8c23092588 a343ba6b .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/18 16:24 linux-4.19.y 3c8c23092588 a343ba6b .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/16 05:17 linux-4.19.y 3c8c23092588 f54a5c09 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/16 00:30 linux-4.19.y 3c8c23092588 93f844de .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/11 12:49 linux-4.19.y 3c8c23092588 ca873091 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/11 11:08 linux-4.19.y 3c8c23092588 ca873091 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/09 21:02 linux-4.19.y 3c8c23092588 bc5434be .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/05/06 15:30 linux-4.19.y 97a8651cadce 06585184 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/26 20:18 linux-4.19.y 2965db2e004c e60b7df1 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/26 14:50 linux-4.19.y 2965db2e004c e60b7df1 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/23 22:04 linux-4.19.y 2965db2e004c 17f0b706 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/20 19:34 linux-4.19.y 2965db2e004c c0ced557 .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/17 17:27 linux-4.19.y 2965db2e004c 7e2b734b .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/12 13:35 linux-4.19.y 830a059cbba6 6a81331a .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/09 06:01 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/04/07 21:30 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/03/31 07:30 linux-4.19.y 2034d6f0838e 6a81331a .config console log report info ci2-linux-4-19 WARNING in close_fs_devices
2021/01/07 01:37 linux-4.19.y 4143d798313f c104d4a3 .config console log report info ci2-linux-4-19
2020/09/16 05:38 linux-4.19.y a87f96283793 18d7d030 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.