syzbot


invalid opcode in close_fs_devices

Status: auto-closed as invalid on 2019/10/25 08:41
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+cabf977d00d3db1fdc37@syzkaller.appspotmail.com
First crash: 1947d, last: 1791d
Discussions (2)
Title Replies (including bot) Last reply
Reminder: 3 open syzbot bugs in "fs/btrfs" subsystem 1 (1) 2019/07/24 02:42
invalid opcode in close_fs_devices 1 (2) 2018/11/30 05:59

Sample crash report:
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 19969 Comm: syz-executor.3 Not tainted 5.1.0-rc7+ #97
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1276 [inline]
RIP: 0010:close_fs_devices.part.0+0x5bf/0x790 fs/btrfs/volumes.c:1300
Code: 3c 03 0f 8e 44 01 00 00 48 8b 45 c0 c7 80 30 01 00 00 00 00 00 00 48 83 c4 48 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 11 ad c6 fe <0f> 0b e8 0a ad c6 fe 0f 0b e8 03 ad c6 fe 0f 0b e9 16 ff ff ff e8
RSP: 0018:ffff8880536b7770 EFLAGS: 00010216
RAX: 0000000000040000 RBX: ffff88805196a2c0 RCX: ffffc90005b39000
RDX: 0000000000016778 RSI: ffffffff82a9df9f RDI: 0000000000000007
RBP: ffff8880536b77e0 R08: ffff8880948ca5c0 R09: ffff8880948cae88
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8880a0259200 R15: fffffffffffffff4
FS:  00007f517ac10700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f261aacedb8 CR3: 000000008de3c000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 close_fs_devices fs/btrfs/volumes.c:1332 [inline]
 btrfs_close_devices+0xa0/0x200 fs/btrfs/volumes.c:1318
 btrfs_mount_root+0xf0c/0x1220 fs/btrfs/super.c:1569
 legacy_get_tree+0xf2/0x200 fs/fs_context.c:584
 vfs_get_tree+0x123/0x450 fs/super.c:1481
 fc_mount+0x17/0xc0 fs/namespace.c:982
 vfs_kern_mount.part.0+0xd8/0xf0 fs/namespace.c:1012
 vfs_kern_mount+0x40/0x60 fs/namespace.c:999
 btrfs_mount+0x2b4/0x15e2 fs/btrfs/super.c:1620
 legacy_get_tree+0xf2/0x200 fs/fs_context.c:584
 vfs_get_tree+0x123/0x450 fs/super.c:1481
 do_new_mount fs/namespace.c:2622 [inline]
 do_mount+0x1436/0x2c40 fs/namespace.c:2942
 ksys_mount+0xdb/0x150 fs/namespace.c:3151
 __do_sys_mount fs/namespace.c:3165 [inline]
 __se_sys_mount fs/namespace.c:3162 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3162
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b81a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 2d 8e 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 0a 8e fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f517ac0fa88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f517ac0fb40 RCX: 000000000045b81a
RDX: 00007f517ac0fae0 RSI: 0000000020000040 RDI: 00007f517ac0fb00
RBP: 0000000000000001 R08: 00007f517ac0fb40 R09: 00007f517ac0fae0
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000004
R13: 00000000004c7853 R14: 00000000004dd868 R15: 0000000000000003
Modules linked in:
---[ end trace 6cc21990f86f8d09 ]---
RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1276 [inline]
RIP: 0010:close_fs_devices.part.0+0x5bf/0x790 fs/btrfs/volumes.c:1300
Code: 3c 03 0f 8e 44 01 00 00 48 8b 45 c0 c7 80 30 01 00 00 00 00 00 00 48 83 c4 48 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 11 ad c6 fe <0f> 0b e8 0a ad c6 fe 0f 0b e8 03 ad c6 fe 0f 0b e9 16 ff ff ff e8
RSP: 0018:ffff8880536b7770 EFLAGS: 00010216
RAX: 0000000000040000 RBX: ffff88805196a2c0 RCX: ffffc90005b39000
RDX: 0000000000016778 RSI: ffffffff82a9df9f RDI: 0000000000000007
RBP: ffff8880536b77e0 R08: ffff8880948ca5c0 R09: ffff8880948cae88
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8880a0259200 R15: fffffffffffffff4
FS:  00007f517ac10700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000738000 CR3: 000000008de3c000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/03 05:24 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/03 01:59 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/03 01:57 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/02 13:05 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-smack-root
2019/05/02 11:48 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-smack-root
2019/05/02 07:51 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/01 17:21 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/11 04:06 upstream 065b6c4c913d 12365b99 .config console log report ci-upstream-kasan-gce-selinux-root
2019/02/01 13:47 upstream 5b4746a03199 0c07abcf .config console log report ci-upstream-kasan-gce-root
2019/01/09 20:34 upstream a88cc8da0279 45c0c1b1 .config console log report ci-upstream-kasan-gce-root
2019/01/06 09:10 upstream f1c2f8857c5a 53be0a37 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/04 14:22 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-root
2018/12/01 00:43 upstream 94f371cb7394 ade12e91 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/28 01:33 upstream ef78e5ec9214 4b6d14f2 .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.