R13: 00000000004c8dca R14: 00000000004e0358 R15: 0000000000000005 ------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:890! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 21961 Comm: syz-executor.5 Not tainted 4.14.149 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888047046740 task.stack: ffff888056eb0000 RIP: 0010:btrfs_prepare_close_one_device fs/btrfs/volumes.c:890 [inline] RIP: 0010:__btrfs_close_devices+0x7d8/0xa90 fs/btrfs/volumes.c:915 RSP: 0018:ffff888056eb7700 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888092e92dc0 RCX: ffffc90005e3d000 RDX: 0000000000040000 RSI: ffffffff82659188 RDI: 0000000000000286 RBP: ffff888056eb77c8 R08: ffff888047046740 R09: ffff888047047008 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888077d07500 R13: ffff888092e92e88 R14: fffffffffffffff4 R15: dffffc0000000000 FS: 00007f39d7d88700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000007136b4 CR3: 0000000099ead000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_close_devices+0x29/0x140 fs/btrfs/volumes.c:948 btrfs_mount+0x1fd9/0x2b28 fs/btrfs/super.c:1642 mount_fs+0x97/0x2a1 fs/super.c:1237 vfs_kern_mount.part.0+0x5e/0x3d0 fs/namespace.c:1046 vfs_kern_mount+0x40/0x60 fs/namespace.c:1036 mount_subvol fs/btrfs/super.c:1392 [inline] btrfs_mount+0x3ce/0x2b28 fs/btrfs/super.c:1563 mount_fs+0x97/0x2a1 fs/super.c:1237 vfs_kern_mount.part.0+0x5e/0x3d0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0x417/0x27d0 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xab/0x120 fs/namespace.c:3072 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c4aa RSP: 002b:00007f39d7d87a88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 kobject: 'loop5' (ffff8880a4ab73e0): kobject_uevent_env RAX: ffffffffffffffda RBX: 00007f39d7d87b40 RCX: 000000000045c4aa RDX: 00007f39d7d87ae0 RSI: 0000000020000100 RDI: 00007f39d7d87b00 RBP: 0000000000000001 R08: 00007f39d7d87b40 R09: 00007f39d7d87ae0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000006 R13: 00000000004c8dca R14: 00000000004e0358 R15: 0000000000000005 Code: kobject: 'loop5' (ffff8880a4ab73e0): fill_kobj_path: path = '/devices/virtual/block/loop5' c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 59 02 00 00 48 8b 45 80 c7 80 10 01 00 00 00 00 00 00 e9 e2 f8 ff ff e8 18 63 f7 fe <0f> 0b e8 11 63 f7 fe 0f 0b 48 89 f7 e8 97 16 21 ff e9 ad f8 ff RIP: btrfs_prepare_close_one_device fs/btrfs/volumes.c:890 [inline] RSP: ffff888056eb7700 RIP: __btrfs_close_devices+0x7d8/0xa90 fs/btrfs/volumes.c:915 RSP: ffff888056eb7700 kobject: 'sit0' (ffff88805d320630): kobject_cleanup, parent (null) kobject: 'sit0' (ffff88805d320630): calling ktype release kobject: 'sit0': free name kobject: 'rx-0' (ffff8880a98f7790): kobject_cleanup, parent ffff88809fc85a48 kobject: 'rx-0' (ffff8880a98f7790): auto cleanup 'remove' event kobject: 'rx-0' (ffff8880a98f7790): kobject_uevent_env kobject: 'loop2' (ffff8880a49ce160): kobject_uevent_env kobject: 'rx-0' (ffff8880a98f7790): kobject_uevent_env: uevent_suppress caused the event to drop! kobject: 'loop2' (ffff8880a49ce160): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'rx-0' (ffff8880a98f7790): auto cleanup kobject_del FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 kobject: 'loop2' (ffff8880a49ce160): kobject_uevent_env kobject: 'rx-0' (ffff8880a98f7790): calling ktype release kobject: 'rx-0': free name kobject: 'loop2' (ffff8880a49ce160): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'tx-0' (ffff8880a5d6b558): kobject_cleanup, parent ffff88809fc85a48 kobject: 'tx-0' (ffff8880a5d6b558): auto cleanup 'remove' event CPU: 0 PID: 21977 Comm: syz-executor.1 Tainted: G D 4.14.149 #0 BFS-fs: bfs_fill_super(): loop2 is unclean, continuing Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x197 lib/dump_stack.c:53 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x2f0/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] rw_copy_check_uvector+0x1d8/0x290 fs/read_write.c:776 import_iovec+0xa2/0x370 lib/iov_iter.c:1411 kobject: 'tx-0' (ffff8880a5d6b558): kobject_uevent_env vfs_readv+0xb3/0x130 fs/read_write.c:979 kobject: 'tx-0' (ffff8880a5d6b558): kobject_uevent_env: uevent_suppress caused the event to drop! kobject: 'tx-0' (ffff8880a5d6b558): auto cleanup kobject_del do_readv+0x10a/0x2d0 fs/read_write.c:1014 kobject: 'tx-0' (ffff8880a5d6b558): calling ktype release SYSC_readv fs/read_write.c:1101 [inline] SyS_readv+0x28/0x30 fs/read_write.c:1098 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 kobject: 'tx-0': free name entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459a59 RSP: 002b:00007f31ccd5fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 00007f31ccd5fc90 RCX: 0000000000459a59 RDX: 0000000000000286 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f31ccd606d4 R13: 00000000004c6fe7 R14: 00000000004dcba8 R15: 0000000000000004 kobject: 'queues' (ffff88809fc85a48): kobject_cleanup, parent (null) kobject: 'queues' (ffff88809fc85a48): calling ktype release kobject: 'loop2' (ffff8880a49ce160): kobject_uevent_env kobject: 'queues' (ffff88809fc85a48): kset_release kobject: 'loop2' (ffff8880a49ce160): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'queues': free name kobject: 'loop4' (ffff8880a4a5eae0): kobject_uevent_env kobject: 'ip6_vti0' (ffff88805d2e50b0): kobject_uevent_env kobject: 'loop4' (ffff8880a4a5eae0): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'ip6_vti0' (ffff88805d2e50b0): kobject_uevent_env: uevent_suppress caused the event to drop! kobject: 'loop2' (ffff8880a49ce160): kobject_uevent_env kobject: 'loop2' (ffff8880a49ce160): fill_kobj_path: path = '/devices/virtual/block/loop2' BFS-fs: bfs_fill_super(): loop2 is unclean, continuing ---[ end trace b293f5947031cf43 ]---