[ 0.000000] Linux version 5.2.0-rc7+ (vladimir@home.thecybershadow.net) (gcc version 9.1.0 (GCC)) #1 SMP Sat Jul 6 10:18:09 UTC 2019 [root@archlinux ~]# btrfs device delete 2 /mnt [ 151.682975] BTRFS info (device sdc): relocating block group 1998263943168 flags metadata|raid1 [ 932.863942] kauditd_printk_skb: 2 callbacks suppressed [ 932.863944] audit: type=1130 audit(1562409944.751:17): pid=1 uid=0 auid=4294967295 ses=4294967295 sub' [ 932.872374] audit: type=1131 audit(1562409944.751:18): pid=1 uid=0 auid=4294967295 ses=4294967295 sub' [ 1541.321662] kworker/dying (199) used greatest stack depth: 12648 bytes left [ 2045.130061] kworker/dying (7) used greatest stack depth: 12536 bytes left [ 4839.603729] ------------[ cut here ]------------ [ 4839.604569] WARNING: CPU: 0 PID: 208 at fs/btrfs/extent-tree.c:2907 btrfs_run_delayed_refs.part.0+0x10 [ 4839.605544] Modules linked in: [ 4839.605544] CPU: 0 PID: 208 Comm: kworker/u2:5 Not tainted 5.2.0-rc7+ #1 [ 4839.605544] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol4 [ 4839.605544] Workqueue: events_unbound btrfs_async_reclaim_metadata_space [ 4839.605544] RIP: 0010:btrfs_run_delayed_refs.part.0+0x11c/0x130 [ 4839.605544] Code: d8 0c 00 00 02 0f 92 c2 83 f8 fb 0f 84 13 54 00 00 84 d2 0f 85 0b 54 00 00 89 c6 483 [ 4839.605544] RSP: 0018:ffffafe080243d20 EFLAGS: 00010282 [ 4839.605544] RAX: 0000000000000000 RBX: ffffa41ebd7ea600 RCX: 0000000000000006 [ 4839.605544] RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffffa41ebea164d0 [ 4839.605544] RBP: ffffa41ebda5d888 R08: 0000000000000001 R09: 00000000000001cc [ 4839.605544] R10: ffffffff9275b868 R11: 0000000000000007 R12: ffffa41ebc807600 [ 4839.605544] R13: 0000000000454f2a R14: ffffa41ebda5d888 R15: ffffa41ebd7ea758 [ 4839.605544] FS: 0000000000000000(0000) GS:ffffa41ebea00000(0000) knlGS:0000000000000000 [ 4839.605544] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4839.605544] CR2: 00007fa78ad86a70 CR3: 000000003d748000 CR4: 00000000000006f0 [ 4839.605544] Call Trace: [ 4839.605544] flush_space+0x69/0x6e0 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] ? __switch_to_asm+0x40/0x70 [ 4839.605544] ? __switch_to_asm+0x34/0x70 [ 4839.605544] btrfs_async_reclaim_metadata_space+0x10b/0x2b0 [ 4839.605544] process_one_work+0x1ca/0x3b0 [ 4839.605544] worker_thread+0x45/0x3c0 [ 4839.605544] kthread+0xf6/0x130 [ 4839.605544] ? trace_event_raw_event_workqueue_execute_start+0xb0/0xb0 [ 4839.605544] ? kthread_park+0x80/0x80 [ 4839.605544] ret_from_fork+0x35/0x40 [ 4839.605544] ---[ end trace b9a03b30fe25a880 ]--- [ 4839.644415] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 4839.645924] BTRFS info (device sdc): forced readonly [ 4839.647017] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 4839.723783] ------------[ cut here ]------------ [ 4839.724529] kernel BUG at fs/btrfs/relocation.c:2515! [ 4839.725649] invalid opcode: 0000 [#1] SMP PTI [ 4839.726456] CPU: 0 PID: 198 Comm: btrfs Tainted: G W 5.2.0-rc7+ #1 [ 4839.726626] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol4 [ 4839.726626] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 4839.726626] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c8 [ 4839.726626] RSP: 0018:ffffafe08049bb28 EFLAGS: 00010282 [ 4839.726626] RAX: ffffa41ebb55e580 RBX: ffffa41eaaf2b398 RCX: 0000000000000000 [ 4839.726626] RDX: ffffa41ebaa23d40 RSI: 0000000000000000 RDI: ffffa41eba9197b8 [ 4839.726626] RBP: ffffafe08049bb30 R08: 0000000000000001 R09: 0000000000d52b5d [ 4839.726626] R10: ffffa41ebea28bc0 R11: 000000000000000d R12: ffffa41ebc80dd90 [ 4839.726626] R13: ffffa41eba919000 R14: ffffa41ebc80d800 R15: ffffa41eba9197b8 [ 4839.726626] FS: 00007f01ae4118c0(0000) GS:ffffa41ebea00000(0000) knlGS:0000000000000000 [ 4839.726626] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4839.726626] CR2: 00007f20c79d5010 CR3: 0000000034be6000 CR4: 00000000000006f0 [ 4839.726626] Call Trace: [ 4839.726626] relocate_block_group+0x37a/0x600 [ 4839.726626] btrfs_relocate_block_group+0x151/0x2e0 [ 4839.726626] btrfs_relocate_chunk+0x2c/0xa0 [ 4839.726626] btrfs_shrink_device+0x225/0x520 [ 4839.726626] btrfs_rm_device+0x128/0x55a [ 4839.726626] ? __kmalloc_track_caller+0x54/0x1a0 [ 4839.726626] btrfs_ioctl+0x1eb1/0x2d90 [ 4839.726626] ? alloc_set_pte+0xd9/0x2f0 [ 4839.726626] ? filemap_map_pages+0x186/0x2e0 [ 4839.726626] ? do_vfs_ioctl+0x3f0/0x650 [ 4839.726626] ? btrfs_ioctl_get_supported_features+0x20/0x20 [ 4839.726626] do_vfs_ioctl+0x3f0/0x650 [ 4839.726626] ksys_ioctl+0x59/0x90 [ 4839.726626] __x64_sys_ioctl+0x11/0x20 [ 4839.726626] do_syscall_64+0x43/0x110 [ 4839.726626] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 4839.726626] RIP: 0033:0x7f01ae505cbb [ 4839.726626] Code: Bad RIP value. [ 4839.726626] RSP: 002b:00007ffcfc481218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 4839.726626] RAX: ffffffffffffffda RBX: 00007ffcfc4833c0 RCX: 00007f01ae505cbb [ 4839.726626] RDX: 00007ffcfc482240 RSI: 000000005000943a RDI: 0000000000000003 [ 4839.726626] RBP: 00007ffcfc482240 R08: 00007ffcfc483e28 R09: 0000000000000000 [ 4839.726626] R10: 00007f01ae583ae0 R11: 0000000000000246 R12: 0000000000000001 [ 4839.726626] R13: 0000000000000000 R14: 0000000000000003 R15: 00007ffcfc4833c8 [ 4839.726626] Modules linked in: [ 4839.770949] ---[ end trace b9a03b30fe25a881 ]--- [ 4839.771822] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 4839.772719] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c8 [ 4839.777138] RSP: 0018:ffffafe08049bb28 EFLAGS: 00010282 [ 4839.778135] RAX: ffffa41ebb55e580 RBX: ffffa41eaaf2b398 RCX: 0000000000000000 [ 4839.779445] RDX: ffffa41ebaa23d40 RSI: 0000000000000000 RDI: ffffa41eba9197b8 [ 4839.781282] RBP: ffffafe08049bb30 R08: 0000000000000001 R09: 0000000000d52b5d [ 4839.782583] R10: ffffa41ebea28bc0 R11: 000000000000000d R12: ffffa41ebc80dd90 [ 4839.783913] R13: ffffa41eba919000 R14: ffffa41ebc80d800 R15: ffffa41eba9197b8 [ 4839.785260] FS: 00007f01ae4118c0(0000) GS:ffffa41ebea00000(0000) knlGS:0000000000000000 [ 4839.786728] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4839.787809] CR2: 00007f01ae505c91 CR3: 0000000034be6000 CR4: 00000000000006f0 [ 4839.854712] btrfs (198) used greatest stack depth: 11128 bytes left Segmentation fault [root@archlinux ~]# btrfs balance start -mdevid=2 /mnt [ 1107.182159] BTRFS info (device sdc): balance: start -mdevid=2 -sdevid=2 [ 1107.186483] BTRFS info (device sdc): relocating block group 48011691425792 flags metadata|raid1 [ 1974.164356] BTRFS info (device sdc): found 18685 extents [ 2021.325802] BTRFS info (device sdc): relocating block group 48010617683968 f1 [ 3044.028668] BTRFS info (device sdc): found 19149 extents [ 3056.702323] BTRFS info (device sdc): relocating block group 1998263943168 flags metadata|raid1 [ 4781.889879] ------------[ cut here ]------------ [ 4781.890740] WARNING: CPU: 0 PID: 220 at fs/btrfs/extent-tree.c:2907 btrfs_run_delayed_refs.part.0+0x11c/0x130 [ 4781.891706] Modules linked in: [ 4781.891706] CPU: 0 PID: 220 Comm: kworker/u2:6 Not tainted 5.2.0-rc7+ #1 [ 4781.891706] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 4781.891706] Workqueue: events_unbound btrfs_async_reclaim_metadata_space [ 4781.891706] RIP: 0010:btrfs_run_delayed_refs.part.0+0x11c/0x130 [ 4781.891706] Code: d8 0c 00 00 02 0f 92 c2 83 f8 fb 0f 84 13 54 00 00 84 d2 0f 85 0b 54 00 00 89 c6 48 c7 c7 a8 71 c3 97 89 04 24 e8 bb 3a d2 ff <0f> 0b 8b 04 24 e3 [ 4781.891706] RSP: 0018:ffffaa38c0717d20 EFLAGS: 00010282 [ 4781.891706] RAX: 0000000000000000 RBX: ffff8ecf7c307a00 RCX: 0000000000000006 [ 4781.891706] RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff8ecf7da164d0 [ 4781.891706] RBP: ffff8ecf7ca6b7b8 R08: 0000000000000001 R09: 00000000000001d2 [ 4781.891706] R10: ffffffff9855bb30 R11: 0000000000000007 R12: ffff8ecf7c2f3600 [ 4781.891706] R13: 00000000008460d4 R14: ffff8ecf7ca6b7b8 R15: ffff8ecf7c307b58 [ 4781.891706] FS: 0000000000000000(0000) GS:ffff8ecf7da00000(0000) knlGS:0000000000000000 [ 4781.891706] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4781.891706] CR2: 00007fd39756e760 CR3: 000000003c40a000 CR4: 00000000000006f0 [ 4781.891706] Call Trace: [ 4781.891706] flush_space+0x69/0x6e0 [ 4781.891706] ? __switch_to_asm+0x40/0x70 [ 4781.891706] ? apic_timer_interrupt+0xa/0x20 [ 4781.891706] ? __btrfs_end_transaction+0x134/0x1b0 [ 4781.891706] btrfs_async_reclaim_metadata_space+0x10b/0x2b0 [ 4781.891706] process_one_work+0x1ca/0x3b0 [ 4781.891706] worker_thread+0x45/0x3c0 [ 4781.891706] kthread+0xf6/0x130 [ 4781.891706] ? trace_event_raw_event_workqueue_execute_start+0xb0/0xb0 [ 4781.891706] ? kthread_park+0x80/0x80 [ 4781.891706] ret_from_fork+0x35/0x40 [ 4781.891706] ---[ end trace 66ce5540f9378ebf ]--- [ 4781.924763] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 4781.926622] BTRFS info (device sdc): forced readonly [ 4781.930382] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 4782.006431] ------------[ cut here ]------------ [ 4782.007168] kernel BUG at fs/btrfs/relocation.c:2515! [ 4782.008155] invalid opcode: 0000 [#1] SMP PTI [ 4782.008881] CPU: 0 PID: 206 Comm: btrfs Tainted: G W 5.2.0-rc7+ #1 [ 4782.009143] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 4782.009143] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 4782.009143] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c 24 10 48 89 2b 48 89 53 08 48 89 1a eb 8f <0f> 0b e8 21 22 c8 [ 4782.009143] RSP: 0018:ffffaa38c0687af0 EFLAGS: 00010282 [ 4782.009143] RAX: ffff8ecf615b8080 RBX: ffff8ecf1e35db98 RCX: 0000000000000000 [ 4782.009143] RDX: ffff8ecf7cd0b100 RSI: 0000000000000000 RDI: ffff8ecf7a3da7b8 [ 4782.009143] RBP: ffffaa38c0687af8 R08: 0000000000000001 R09: 0000000000ce558e [ 4782.009143] R10: ffff8ecf7da28bc0 R11: 000000000000000c R12: ffff8ecf6b100590 [ 4782.009143] R13: ffff8ecf7a3da000 R14: ffff8ecf6b100000 R15: ffff8ecf7a3da7b8 [ 4782.009143] FS: 00007ff68f61d8c0(0000) GS:ffff8ecf7da00000(0000) knlGS:0000000000000000 [ 4782.009143] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4782.009143] CR2: 00007efe15c7c010 CR3: 0000000030260000 CR4: 00000000000006f0 [ 4782.009143] Call Trace: [ 4782.009143] relocate_block_group+0x37a/0x600 [ 4782.009143] btrfs_relocate_block_group+0x151/0x2e0 [ 4782.009143] btrfs_relocate_chunk+0x2c/0xa0 [ 4782.009143] btrfs_balance+0x669/0xe70 [ 4782.009143] btrfs_ioctl_balance+0x284/0x330 [ 4782.009143] btrfs_ioctl+0x598/0x2d90 [ 4782.009143] ? __alloc_pages_nodemask+0x167/0x2b0 [ 4782.009143] ? do_vfs_ioctl+0x3f0/0x650 [ 4782.009143] ? btrfs_ioctl_get_supported_features+0x20/0x20 [ 4782.009143] do_vfs_ioctl+0x3f0/0x650 [ 4782.009143] ksys_ioctl+0x59/0x90 [ 4782.009143] __x64_sys_ioctl+0x11/0x20 [ 4782.009143] do_syscall_64+0x43/0x110 [ 4782.009143] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 4782.009143] RIP: 0033:0x7ff68f711cbb [ 4782.009143] Code: Bad RIP value. [ 4782.009143] RSP: 002b:00007ffc0f3fcf68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 4782.009143] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff68f711cbb [ 4782.009143] RDX: 00007ffc0f3fd000 RSI: 00000000c4009420 RDI: 0000000000000003 [ 4782.009143] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000003 [ 4782.009143] R10: 00005596018e7010 R11: 0000000000000246 R12: 00007ffc0f3fd998 [ 4782.009143] R13: 0000000000000001 R14: 00007ffc0f3fd000 R15: 00007ffc0f3fde29 [ 4782.009143] Modules linked in: [ 4782.049572] ---[ end trace 66ce5540f9378ec0 ]--- [ 4782.050370] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 4782.051213] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c 24 10 48 89 2b 48 89 53 08 48 89 1a eb 8f <0f> 0b e8 21 22 c8 [ 4782.054449] RSP: 0018:ffffaa38c0687af0 EFLAGS: 00010282 [ 4782.055362] RAX: ffff8ecf615b8080 RBX: ffff8ecf1e35db98 RCX: 0000000000000000 [ 4782.056566] RDX: ffff8ecf7cd0b100 RSI: 0000000000000000 RDI: ffff8ecf7a3da7b8 [ 4782.057785] RBP: ffffaa38c0687af8 R08: 0000000000000001 R09: 0000000000ce558e [ 4782.058981] R10: ffff8ecf7da28bc0 R11: 000000000000000c R12: ffff8ecf6b100590 [ 4782.060184] R13: ffff8ecf7a3da000 R14: ffff8ecf6b100000 R15: ffff8ecf7a3da7b8 [ 4782.061413] FS: 00007ff68f61d8c0(0000) GS:ffff8ecf7da00000(0000) knlGS:0000000000000000 [ 4782.062780] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4782.063766] CR2: 00007ff68f711c91 CR3: 0000000030260000 CR4: 00000000000006f0 Segmentation fault [root@archlinux ~]# btrfs balance start -mvrange=1998263943168..1998263943169 /mnt [ 253.039325] BTRFS info (device sdc): balance: start -mvrange=1998263943168..1998263943169 -svrange=1998263943168..1998263943169 [ 253.047611] BTRFS info (device sdc): relocating block group 1998263943168 flags metadata|raid1 [ 934.387157] audit: type=1130 audit(1562422104.430:17): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-t' [ 934.393791] audit: type=1131 audit(1562422104.430:18): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-t' [ 1887.761551] ------------[ cut here ]------------ [ 1887.762380] WARNING: CPU: 0 PID: 21 at fs/btrfs/extent-tree.c:2907 btrfs_run_delayed_refs.part.0+0x11c/0x130 [ 1887.763354] Modules linked in: [ 1887.763354] CPU: 0 PID: 21 Comm: kworker/u2:1 Not tainted 5.2.0-rc7+ #1 [ 1887.763354] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 1887.763354] Workqueue: events_unbound btrfs_async_reclaim_metadata_space [ 1887.763354] RIP: 0010:btrfs_run_delayed_refs.part.0+0x11c/0x130 [ 1887.763354] Code: d8 0c 00 00 02 0f 92 c2 83 f8 fb 0f 84 13 54 00 00 84 d2 0f 85 0b 54 00 00 89 c6 48 c7 c7 a8 71 63 a3 89 04 24 3 [ 1887.763354] RSP: 0018:ffff9a12403cbd20 EFLAGS: 00010282 [ 1887.763354] RAX: 0000000000000000 RBX: ffff8a94fc238000 RCX: 0000000000000006 [ 1887.763354] RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff8a94fda164d0 [ 1887.763354] RBP: ffff8a94fa962c30 R08: 0000000000000001 R09: 00000000000001d2 [ 1887.763354] R10: ffffffffa3f5bb40 R11: 0000000000000007 R12: ffff8a94fc2ac400 [ 1887.763354] R13: 000000000096d3b2 R14: ffff8a94fa962c30 R15: ffff8a94fc238158 [ 1887.763354] FS: 0000000000000000(0000) GS:ffff8a94fda00000(0000) knlGS:0000000000000000 [ 1887.763354] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1887.763354] CR2: 00007fa4aefa9a74 CR3: 0000000024c0a000 CR4: 00000000000006f0 [ 1887.763354] Call Trace: [ 1887.763354] flush_space+0x69/0x6e0 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] ? __switch_to_asm+0x40/0x70 [ 1887.763354] ? __switch_to_asm+0x34/0x70 [ 1887.763354] btrfs_async_reclaim_metadata_space+0x10b/0x2b0 [ 1887.763354] process_one_work+0x1ca/0x3b0 [ 1887.763354] worker_thread+0x45/0x3c0 [ 1887.763354] kthread+0xf6/0x130 [ 1887.763354] ? trace_event_raw_event_workqueue_execute_start+0xb0/0xb0 [ 1887.763354] ? kthread_park+0x80/0x80 [ 1887.763354] ret_from_fork+0x35/0x40 [ 1887.763354] ---[ end trace a2b6f340f44ab89e ]--- [ 1887.799959] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 1887.801374] BTRFS info (device sdc): forced readonly [ 1887.802475] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 1887.804711] BTRFS: error (device sdc) in btrfs_create_pending_block_groups:10494: errno=-28 No space left [ 1887.807642] BTRFS: error (device sdc) in btrfs_create_pending_block_groups:10497: errno=-28 No space left [ 1887.875973] ------------[ cut here ]------------ [ 1887.876749] kernel BUG at fs/btrfs/relocation.c:2515! [ 1887.877649] invalid opcode: 0000 [#1] SMP PTI [ 1887.878377] CPU: 0 PID: 202 Comm: btrfs Tainted: G W 5.2.0-rc7+ #1 [ 1887.878638] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 1887.878638] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 1887.878638] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c 24 10 48 89 2b 48 89 53 08 8 [ 1887.878638] RSP: 0018:ffff9a124067baf0 EFLAGS: 00010282 [ 1887.878638] RAX: ffff8a94d7683840 RBX: ffff8a94a1f80b98 RCX: 0000000000000000 [ 1887.878638] RDX: ffff8a94fccfd5c0 RSI: 0000000000000000 RDI: ffff8a94f98d27b8 [ 1887.878638] RBP: ffff9a124067baf8 R08: 0000000000000001 R09: 0000000000abffe0 [ 1887.878638] R10: ffff8a94fda28bc0 R11: 000000000000000a R12: ffff8a94e8ee4d90 [ 1887.878638] R13: ffff8a94f98d2000 R14: ffff8a94e8ee4800 R15: ffff8a94f98d27b8 [ 1887.878638] FS: 00007f56daeee8c0(0000) GS:ffff8a94fda00000(0000) knlGS:0000000000000000 [ 1887.878638] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1887.878638] CR2: 00007f738fd57010 CR3: 0000000068f30000 CR4: 00000000000006f0 [ 1887.878638] Call Trace: [ 1887.878638] relocate_block_group+0x37a/0x600 [ 1887.878638] btrfs_relocate_block_group+0x151/0x2e0 [ 1887.878638] btrfs_relocate_chunk+0x2c/0xa0 [ 1887.878638] btrfs_balance+0x669/0xe70 [ 1887.878638] btrfs_ioctl_balance+0x284/0x330 [ 1887.878638] btrfs_ioctl+0x598/0x2d90 [ 1887.878638] ? __alloc_pages_nodemask+0x167/0x2b0 [ 1887.878638] ? do_vfs_ioctl+0x3f0/0x650 [ 1887.878638] ? btrfs_ioctl_get_supported_features+0x20/0x20 [ 1887.878638] do_vfs_ioctl+0x3f0/0x650 [ 1887.878638] ksys_ioctl+0x59/0x90 [ 1887.878638] __x64_sys_ioctl+0x11/0x20 [ 1887.878638] do_syscall_64+0x43/0x110 [ 1887.878638] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 1887.878638] RIP: 0033:0x7f56dafe2cbb [ 1887.878638] Code: Bad RIP value. [ 1887.878638] RSP: 002b:00007ffc8e438628 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 1887.878638] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f56dafe2cbb [ 1887.878638] RDX: 00007ffc8e4386c0 RSI: 00000000c4009420 RDI: 0000000000000003 [ 1887.878638] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000003 [ 1887.878638] R10: 00005647f770e010 R11: 0000000000000246 R12: 00007ffc8e439058 [ 1887.878638] R13: 0000000000000001 R14: 00007ffc8e4386c0 R15: 00007ffc8e439e29 [ 1887.878638] Modules linked in: [ 1887.916011] ---[ end trace a2b6f340f44ab89f ]--- [ 1887.916808] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 1887.917629] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c 24 10 48 89 2b 48 89 53 08 8 [ 1887.920850] RSP: 0018:ffff9a124067baf0 EFLAGS: 00010282 [ 1887.921742] RAX: ffff8a94d7683840 RBX: ffff8a94a1f80b98 RCX: 0000000000000000 [ 1887.922932] RDX: ffff8a94fccfd5c0 RSI: 0000000000000000 RDI: ffff8a94f98d27b8 [ 1887.924144] RBP: ffff9a124067baf8 R08: 0000000000000001 R09: 0000000000abffe0 [ 1887.925332] R10: ffff8a94fda28bc0 R11: 000000000000000a R12: ffff8a94e8ee4d90 [ 1887.926532] R13: ffff8a94f98d2000 R14: ffff8a94e8ee4800 R15: ffff8a94f98d27b8 [ 1887.927717] FS: 00007f56daeee8c0(0000) GS:ffff8a94fda00000(0000) knlGS:0000000000000000 [ 1887.929055] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1887.930037] CR2: 00007f56dafe2c91 CR3: 0000000068f30000 CR4: 00000000000006f0 [ 1887.986999] btrfs (202) used greatest stack depth: 11064 bytes left Segmentation fault /mntt@archlinux ~]# btrfs balance start -mvrange=48009543942144..48009543942145 [ 110.918452] BTRFS info (device sdc): balance: start -mvrange=48009543942144..48009543942145 -svrange=48009543942144..4800954394215 [ 110.926663] BTRFS info (device sdc): relocating block group 48009543942144 flags metadata|raid1 [ 920.757624] audit: type=1130 audit(1562424073.569:17): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-t' [ 920.763158] audit: type=1131 audit(1562424073.569:18): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-t' [ 1917.158200] ------------[ cut here ]------------ [ 1917.159064] WARNING: CPU: 0 PID: 89 at fs/btrfs/extent-tree.c:2157 __btrfs_inc_extent_ref.isra.0+0x1f0/0x240 [ 1917.159180] Modules linked in: [ 1917.159180] CPU: 0 PID: 89 Comm: kworker/u2:4 Not tainted 5.2.0-rc7+ #1 [ 1917.159180] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 1917.159180] Workqueue: events_unbound btrfs_async_reclaim_metadata_space [ 1917.159180] RIP: 0010:__btrfs_inc_extent_ref.isra.0+0x1f0/0x240 [ 1917.159180] Code: d8 0c 00 00 02 0f 92 c2 83 f8 fb 0f 84 1d cc 00 00 84 d2 0f 85 15 cc 00 00 89 c6 48 c7 c7 a8 71 63 aa 89 04 24 9 [ 1917.159180] RSP: 0018:ffffb00f4052fb98 EFLAGS: 00010282 [ 1917.159180] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000006 [ 1917.159180] RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff9a987da164d0 [ 1917.159180] RBP: ffff9a987898f9c0 R08: 0000000000000001 R09: 00000000000001d2 [ 1917.159180] R10: ffffffffaaf5bb30 R11: 0000000000000007 R12: 00002ba3ad06c000 [ 1917.159180] R13: 00002baeab224000 R14: 0000000000001ba8 R15: ffff9a9812f85070 [ 1917.159180] FS: 0000000000000000(0000) GS:ffff9a987da00000(0000) knlGS:0000000000000000 [ 1917.159180] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1917.159180] CR2: 00007fbdfe62e7b0 CR3: 000000007b60a000 CR4: 00000000000006f0 [ 1917.159180] Call Trace: [ 1917.159180] __btrfs_run_delayed_refs+0x592/0xf10 [ 1917.159180] btrfs_run_delayed_refs.part.0+0xb0/0x130 [ 1917.159180] flush_space+0x69/0x6e0 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] ? __switch_to_asm+0x40/0x70 [ 1917.159180] ? __switch_to_asm+0x34/0x70 [ 1917.159180] btrfs_async_reclaim_metadata_space+0x10b/0x2b0 [ 1917.159180] process_one_work+0x1ca/0x3b0 [ 1917.159180] worker_thread+0x45/0x3c0 [ 1917.159180] kthread+0xf6/0x130 [ 1917.159180] ? trace_event_raw_event_workqueue_execute_start+0xb0/0xb0 [ 1917.159180] ? kthread_park+0x80/0x80 [ 1917.159180] ret_from_fork+0x35/0x40 [ 1917.159180] ---[ end trace 07cac56c4abfcf71 ]--- [ 1917.199409] BTRFS: error (device sdc) in __btrfs_inc_extent_ref:2157: errno=-28 No space left [ 1917.200870] BTRFS info (device sdc): forced readonly [ 1917.201735] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 1917.203490] BTRFS: error (device sdc) in btrfs_run_delayed_refs:2907: errno=-28 No space left [ 1917.278436] ------------[ cut here ]------------ [ 1917.279178] kernel BUG at fs/btrfs/relocation.c:2515! [ 1917.280125] invalid opcode: 0000 [#1] SMP PTI [ 1917.280860] CPU: 0 PID: 202 Comm: btrfs Tainted: G W 5.2.0-rc7+ #1 [ 1917.281113] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181126_142135-anatol 04/01/2014 [ 1917.281113] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 1917.281113] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c 24 10 48 89 2b 48 89 53 08 8 [ 1917.281113] RSP: 0018:ffffb00f4067faf0 EFLAGS: 00010282 [ 1917.281113] RAX: ffff9a9863a91e40 RBX: ffff9a9817241398 RCX: 0000000000000000 [ 1917.281113] RDX: ffff9a987ccfbd40 RSI: 0000000000000000 RDI: ffff9a98782da7b8 [ 1917.281113] RBP: ffffb00f4067faf8 R08: 0000000000000001 R09: 0000000000b8239b [ 1917.281113] R10: ffff9a987da28bc0 R11: 000000000000000a R12: ffff9a986bb7b590 [ 1917.281113] R13: ffff9a98782da000 R14: ffff9a986bb7b000 R15: ffff9a98782da7b8 [ 1917.281113] FS: 00007fb1cb00f8c0(0000) GS:ffff9a987da00000(0000) knlGS:0000000000000000 [ 1917.281113] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1917.281113] CR2: 00007f9adf448010 CR3: 000000006b8e4000 CR4: 00000000000006f0 [ 1917.281113] Call Trace: [ 1917.281113] relocate_block_group+0x37a/0x600 [ 1917.281113] btrfs_relocate_block_group+0x151/0x2e0 [ 1917.281113] btrfs_relocate_chunk+0x2c/0xa0 [ 1917.281113] btrfs_balance+0x669/0xe70 [ 1917.281113] btrfs_ioctl_balance+0x284/0x330 [ 1917.281113] btrfs_ioctl+0x598/0x2d90 [ 1917.281113] ? __alloc_pages_nodemask+0x167/0x2b0 [ 1917.281113] ? do_vfs_ioctl+0x3f0/0x650 [ 1917.281113] ? btrfs_ioctl_get_supported_features+0x20/0x20 [ 1917.281113] do_vfs_ioctl+0x3f0/0x650 [ 1917.281113] ksys_ioctl+0x59/0x90 [ 1917.281113] __x64_sys_ioctl+0x11/0x20 [ 1917.281113] do_syscall_64+0x43/0x110 [ 1917.281113] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 1917.281113] RIP: 0033:0x7fb1cb103cbb [ 1917.281113] Code: Bad RIP value. [ 1917.281113] RSP: 002b:00007ffda03ed878 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 1917.281113] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fb1cb103cbb [ 1917.281113] RDX: 00007ffda03ed910 RSI: 00000000c4009420 RDI: 0000000000000003 [ 1917.281113] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000003 [ 1917.281113] R10: 0000560433261010 R11: 0000000000000246 R12: 00007ffda03ee2a8 [ 1917.281113] R13: 0000000000000001 R14: 00007ffda03ed910 R15: 00007ffda03eee29 [ 1917.281113] Modules linked in: [ 1917.317532] ---[ end trace 07cac56c4abfcf72 ]--- [ 1917.318337] RIP: 0010:merge_reloc_roots+0x1b8/0x1c0 [ 1917.319167] Code: 00 00 00 75 27 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 8b 54 24 10 48 89 5c 24 10 48 89 2b 48 89 53 08 8 [ 1917.322288] RSP: 0018:ffffb00f4067faf0 EFLAGS: 00010282 [ 1917.323177] RAX: ffff9a9863a91e40 RBX: ffff9a9817241398 RCX: 0000000000000000 [ 1917.324396] RDX: ffff9a987ccfbd40 RSI: 0000000000000000 RDI: ffff9a98782da7b8 [ 1917.325659] RBP: ffffb00f4067faf8 R08: 0000000000000001 R09: 0000000000b8239b [ 1917.326988] R10: ffff9a987da28bc0 R11: 000000000000000a R12: ffff9a986bb7b590 [ 1917.328207] R13: ffff9a98782da000 R14: ffff9a986bb7b000 R15: ffff9a98782da7b8 [ 1917.329412] FS: 00007fb1cb00f8c0(0000) GS:ffff9a987da00000(0000) knlGS:0000000000000000 [ 1917.330760] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1917.331734] CR2: 00007fb1cb103c91 CR3: 000000006b8e4000 CR4: 00000000000006f0 [ 1917.387267] btrfs (202) used greatest stack depth: 11064 bytes left Segmentation fault