Open josefbacik opened 4 years ago
Hit this with btrfs/214 on my 4gib vm.
[ 7227.884209] BTRFS info (device dm-9): device fsid 09d478a2-45b6-4b8b-9a99-06f1f6012c6a devid 1 moved old:/dev/mapper/vg0-lv9 new:/dev/dm-9 [ 7227.890974] BTRFS info (device dm-9): device fsid 09d478a2-45b6-4b8b-9a99-06f1f6012c6a devid 1 moved old:/dev/dm-9 new:/dev/mapper/vg0-lv9 [ 7227.938908] ------------[ cut here ]------------ [ 7227.941625] BTRFS: Transaction aborted (error -12) [ 7227.944358] WARNING: CPU: 1 PID: 771011 at fs/btrfs/transaction.c:1641 create_pending_snapshot+0x8ad/0xca0 [ 7227.947089] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set rfkill nf_tables nfnetlink intel_rapl_msr intel_rapl_common kvm_intel kvm snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec iTCO_wdt iTCO_vendor_support snd_hwdep snd_hda_core snd_pcm snd_timer snd irqbypass i2c_i801 joydev i2c_smbus virtio_balloon lpc_ich soundcore virtio_net net_failover failover zram ip_tables xfs crct10dif_pclmul qxl crc32_pclmul crc32c_intel drm_ttm_helper ghash_clmulni_intel ttm drm_kms_helper serio_raw cec virtio_blk drm virtio_console qemu_fw_cfg [ 7227.983933] CPU: 1 PID: 771011 Comm: btrfs Tainted: G W 5.9.0-rc2+ #5 [ 7227.986743] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014 [ 7227.989636] RIP: 0010:create_pending_snapshot+0x8ad/0xca0 [ 7227.992609] Code: 89 c7 f0 48 0f ba aa c0 19 00 00 02 72 22 83 f8 fb 74 3f 83 f8 e2 74 3a 89 c6 48 c7 c7 58 79 5b b3 48 89 45 80 e8 57 ab be ff <0f> 0b 48 8b 45 80 89 c1 ba 69 06 00 00 48 c7 c6 30 35 26 b3 4c 89 [ 7228.009024] RSP: 0018:ffffb11940dafb30 EFLAGS: 00010286 [ 7228.011943] RAX: 0000000000000026 RBX: ffff93ab8fca1400 RCX: 0000000000000000 [ 7228.014814] RDX: ffff93abfbd27f60 RSI: ffff93abfbd19380 RDI: ffff93abfbd19380 [ 7228.025300] RBP: ffffb11940dafc00 R08: 0000000000000000 R09: 0000000000000000 [ 7228.034291] R10: 0000000000000000 R11: 0000000000000001 R12: ffff93abf8c0fd68 [ 7228.037706] R13: ffff93abf3b85600 R14: ffff93ab97ffb000 R15: 00000000fffffff4 [ 7228.050743] FS: 00007f960abbe8c0(0000) GS:ffff93abfbd00000(0000) knlGS:0000000000000000 [ 7228.053517] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7228.056266] CR2: 0000557583813388 CR3: 00000001745a2005 CR4: 0000000000370ee0 [ 7228.059008] Call Trace: [ 7228.067790] ? create_pending_snapshots+0xaa/0xd0 [ 7228.070564] create_pending_snapshots+0xaa/0xd0 [ 7228.085774] btrfs_commit_transaction+0x4db/0xb00 [ 7228.088457] ? start_transaction+0xd2/0x4f0 [ 7228.091850] btrfs_mksubvol+0x2aa/0x460 [ 7228.094499] btrfs_mksnapshot+0x7b/0xb0 [ 7228.097006] btrfs_ioctl_snap_create+0x16f/0x180 [ 7228.099528] btrfs_ioctl_snap_create_v2+0xb0/0xf0 [ 7228.111016] btrfs_ioctl+0x1639/0x2e20 [ 7228.113416] ? handle_mm_fault+0x101b/0x1a00 [ 7228.126756] ? do_user_addr_fault+0x128/0x430 [ 7228.129068] ? x64_sys_ioctl+0x83/0xb0 [ 7228.131427] x64_sys_ioctl+0x83/0xb0 [ 7228.133663] do_syscall_64+0x33/0x40 [ 7228.135868] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 7228.144023] RIP: 0033:0x7f960acb95cb [ 7228.146154] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d c8 0c 00 f7 d8 64 89 01 48 [ 7228.150860] RSP: 002b:00007ffcf2e10d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 7228.163729] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f960acb95cb [ 7228.166194] RDX: 00007ffcf2e10df0 RSI: 0000000050009417 RDI: 0000000000000003 [ 7228.168551] RBP: 00007f960abbe6a8 R08: 0000000000000010 R09: 0074696e695f7061 [ 7228.181738] R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcf2e10df0 [ 7228.184071] R13: 00005575838022a0 R14: 00005575838022d0 R15: 0000000000000000 [ 7228.186328] irq event stamp: 0 [ 7228.188610] hardirqs last enabled at (0): [<0000000000000000>] 0x0 [ 7228.190874] hardirqs last disabled at (0): [] copy_process+0x6ae/0x1b90 [ 7228.199489] softirqs last enabled at (0): [] copy_process+0x6ae/0x1b90 [ 7228.201729] softirqs last disabled at (0): [<0000000000000000>] 0x0 [ 7228.203823] ---[ end trace dd7a9f54f6e0e19f ]--- [ 7228.205870] BTRFS: error (device dm-9) in create_pending_snapshot:1641: errno=-12 Out of memory [ 7228.217794] BTRFS info (device dm-9): forced readonly [ 7228.219835] BTRFS warning (device dm-9): Skipping commit of aborted transaction. [ 7228.221806] BTRFS: error (device dm-9) in cleanup_transaction:1899: errno=-12 Out of memory [ 7228.244480] BUG: kernel NULL pointer dereference, address: 000000000000074c [ 7228.246405] #PF: supervisor write access in kernel mode [ 7228.252610] #PF: error_code(0x0002) - not-present page [ 7228.254678] PGD 0 P4D 0 [ 7228.256683] Oops: 0002 [#1] SMP PTI [ 7228.258677] CPU: 1 PID: 771011 Comm: btrfs Tainted: G W 5.9.0-rc2+ #5 [ 7228.260590] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014 [ 7228.265733] RIP: 0010:btrfs_mksubvol+0x423/0x460 [ 7228.267730] Code: ff bb ef ff ff ff e9 57 ff ff ff bb fe ff ff ff e9 4d ff ff ff 89 c3 e9 56 ff ff ff 49 8b 7c 24 20 48 85 ff 0f 84 ed fe ff ff 87 58 07 00 00 00 00 00 00 49 8b 7c 24 20 e9 d9 fe ff ff 89 c3 [ 7228.271900] RSP: 0018:ffffb11940dafcd8 EFLAGS: 00010282 [ 7228.273949] RAX: 00000000fffffff4 RBX: 00000000fffffff4 RCX: 00000000004aa920 [ 7228.276040] RDX: 00000000004aa91f RSI: 8c4d46c34272f1e4 RDI: fffffffffffffff4 [ 7228.278201] RBP: ffff93abf89b7888 R08: 0000000000000000 R09: 0000000000000000 [ 7228.284382] R10: 0000000000000000 R11: ffffb11940dafb78 R12: ffff93ab8fca1400 [ 7228.286433] R13: ffff93ab8fca1438 R14: ffff93abf8bb9750 R15: ffff93abf8bb9670 [ 7228.288474] FS: 00007f960abbe8c0(0000) GS:ffff93abfbd00000(0000) knlGS:0000000000000000 [ 7228.290730] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7228.292881] CR2: 000000000000074c CR3: 00000001745a2005 CR4: 0000000000370ee0 [ 7228.295062] Call Trace: [ 7228.297335] btrfs_mksnapshot+0x7b/0xb0 [ 7228.302627] btrfs_ioctl_snap_create+0x16f/0x180 [ 7228.304880] btrfs_ioctl_snap_create_v2+0xb0/0xf0 [ 7228.307060] btrfs_ioctl+0x1639/0x2e20 [ 7228.309987] ? handle_mm_fault+0x101b/0x1a00 [ 7228.312268] ? do_user_addr_fault+0x128/0x430 [ 7228.314428] ? x64_sys_ioctl+0x83/0xb0 [ 7228.316628] x64_sys_ioctl+0x83/0xb0 [ 7228.318802] do_syscall_64+0x33/0x40 [ 7228.320876] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 7228.322942] RIP: 0033:0x7f960acb95cb [ 7228.324980] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d c8 0c 00 f7 d8 64 89 01 48 [ 7228.329237] RSP: 002b:00007ffcf2e10d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 7228.331389] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f960acb95cb [ 7228.333543] RDX: 00007ffcf2e10df0 RSI: 0000000050009417 RDI: 0000000000000003 [ 7228.335732] RBP: 00007f960abbe6a8 R08: 0000000000000010 R09: 0074696e695f7061 [ 7228.337925] R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcf2e10df0 [ 7228.340166] R13: 00005575838022a0 R14: 00005575838022d0 R15: 0000000000000000 [ 7228.342347] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set rfkill nf_tables nfnetlink intel_rapl_msr intel_rapl_common kvm_intel kvm snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec iTCO_wdt iTCO_vendor_support snd_hwdep snd_hda_core snd_pcm snd_timer snd irqbypass i2c_i801 joydev i2c_smbus virtio_balloon lpc_ich soundcore virtio_net net_failover failover zram ip_tables xfs crct10dif_pclmul qxl crc32_pclmul crc32c_intel drm_ttm_helper ghash_clmulni_intel ttm drm_kms_helper serio_raw cec virtio_blk drm virtio_console qemu_fw_cfg [ 7228.359801] CR2: 000000000000074c [ 7228.362245] ---[ end trace dd7a9f54f6e0e1a0 ]--- [ 7228.364608] RIP: 0010:btrfs_mksubvol+0x423/0x460 [ 7228.367053] Code: ff bb ef ff ff ff e9 57 ff ff ff bb fe ff ff ff e9 4d ff ff ff 89 c3 e9 56 ff ff ff 49 8b 7c 24 20 48 85 ff 0f 84 ed fe ff ff 87 58 07 00 00 00 00 00 00 49 8b 7c 24 20 e9 d9 fe ff ff 89 c3 [ 7228.372049] RSP: 0018:ffffb11940dafcd8 EFLAGS: 00010282 [ 7228.374561] RAX: 00000000fffffff4 RBX: 00000000fffffff4 RCX: 00000000004aa920 [ 7228.377187] RDX: 00000000004aa91f RSI: 8c4d46c34272f1e4 RDI: fffffffffffffff4 [ 7228.379706] RBP: ffff93abf89b7888 R08: 0000000000000000 R09: 0000000000000000 [ 7228.385366] R10: 0000000000000000 R11: ffffb11940dafb78 R12: ffff93ab8fca1400 [ 7228.387865] R13: ffff93ab8fca1438 R14: ffff93abf8bb9750 R15: ffff93abf8bb9670 [ 7228.390419] FS: 00007f960abbe8c0(0000) GS:ffff93abfbd00000(0000) knlGS:0000000000000000 [ 7228.392870] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7228.395357] CR2: 000000000000074c CR3: 00000001745a2005 CR4: 0000000000370ee0 [ 7228.398022] BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49 [ 7228.400503] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 771011, name: btrfs [ 7228.402980] INFO: lockdep is turned off. [ 7228.405518] irq event stamp: 0 [ 7228.413040] hardirqs last enabled at (0): [<0000000000000000>] 0x0 [ 7228.415589] hardirqs last disabled at (0): [] copy_process+0x6ae/0x1b90 [ 7228.417962] softirqs last enabled at (0): [] copy_process+0x6ae/0x1b90 [ 7228.420438] softirqs last disabled at (0): [<0000000000000000>] 0x0 [ 7228.426904] CPU: 1 PID: 771011 Comm: btrfs Tainted: G D W 5.9.0-rc2+ #5 [ 7228.429456] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014 [ 7228.431901] Call Trace: [ 7228.434454] dump_stack+0x92/0xc8 [ 7228.440983] _might_sleep.cold+0xb6/0xc6 [ 7228.443487] exit_signals+0x1c/0x2d0 [ 7228.445935] do_exit+0xc5/0xbb0 [ 7228.448456] ? x64_sys_ioctl+0x83/0xb0 [ 7228.450907] ? __x64_sys_ioctl+0x83/0xb0 [ 7228.453431] rewind_stack_do_exit+0x17/0x20 [ 7228.455891] RIP: 0033:0x7f960acb95cb [ 7228.458381] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d c8 0c 00 f7 d8 64 89 01 48 [ 7228.463372] RSP: 002b:00007ffcf2e10d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 7228.465778] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f960acb95cb [ 7228.468291] RDX: 00007ffcf2e10df0 RSI: 0000000050009417 RDI: 0000000000000003 [ 7228.470746] RBP: 00007f960abbe6a8 R08: 0000000000000010 R09: 0074696e695f7061 [ 7228.473250] R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcf2e10df0 [ 7228.475590] R13: 00005575838022a0 R14: 00005575838022d0 R15: 0000000000000000
Hit this with btrfs/214 on my 4gib vm.
[ 7227.884209] BTRFS info (device dm-9): device fsid 09d478a2-45b6-4b8b-9a99-06f1f6012c6a devid 1 moved old:/dev/mapper/vg0-lv9 new:/dev/dm-9 [ 7227.890974] BTRFS info (device dm-9): device fsid 09d478a2-45b6-4b8b-9a99-06f1f6012c6a devid 1 moved old:/dev/dm-9 new:/dev/mapper/vg0-lv9 [ 7227.938908] ------------[ cut here ]------------ [ 7227.941625] BTRFS: Transaction aborted (error -12) [ 7227.944358] WARNING: CPU: 1 PID: 771011 at fs/btrfs/transaction.c:1641 create_pending_snapshot+0x8ad/0xca0 [ 7227.947089] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set rfkill nf_tables nfnetlink intel_rapl_msr intel_rapl_common kvm_intel kvm snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec iTCO_wdt iTCO_vendor_support snd_hwdep snd_hda_core snd_pcm snd_timer snd irqbypass i2c_i801 joydev i2c_smbus virtio_balloon lpc_ich soundcore virtio_net net_failover failover zram ip_tables xfs crct10dif_pclmul qxl crc32_pclmul crc32c_intel drm_ttm_helper ghash_clmulni_intel ttm drm_kms_helper serio_raw cec virtio_blk drm virtio_console qemu_fw_cfg [ 7227.983933] CPU: 1 PID: 771011 Comm: btrfs Tainted: G W 5.9.0-rc2+ #5 [ 7227.986743] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014 [ 7227.989636] RIP: 0010:create_pending_snapshot+0x8ad/0xca0 [ 7227.992609] Code: 89 c7 f0 48 0f ba aa c0 19 00 00 02 72 22 83 f8 fb 74 3f 83 f8 e2 74 3a 89 c6 48 c7 c7 58 79 5b b3 48 89 45 80 e8 57 ab be ff <0f> 0b 48 8b 45 80 89 c1 ba 69 06 00 00 48 c7 c6 30 35 26 b3 4c 89 [ 7228.009024] RSP: 0018:ffffb11940dafb30 EFLAGS: 00010286 [ 7228.011943] RAX: 0000000000000026 RBX: ffff93ab8fca1400 RCX: 0000000000000000 [ 7228.014814] RDX: ffff93abfbd27f60 RSI: ffff93abfbd19380 RDI: ffff93abfbd19380 [ 7228.025300] RBP: ffffb11940dafc00 R08: 0000000000000000 R09: 0000000000000000 [ 7228.034291] R10: 0000000000000000 R11: 0000000000000001 R12: ffff93abf8c0fd68 [ 7228.037706] R13: ffff93abf3b85600 R14: ffff93ab97ffb000 R15: 00000000fffffff4 [ 7228.050743] FS: 00007f960abbe8c0(0000) GS:ffff93abfbd00000(0000) knlGS:0000000000000000 [ 7228.053517] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7228.056266] CR2: 0000557583813388 CR3: 00000001745a2005 CR4: 0000000000370ee0 [ 7228.059008] Call Trace: [ 7228.067790] ? create_pending_snapshots+0xaa/0xd0 [ 7228.070564] create_pending_snapshots+0xaa/0xd0 [ 7228.085774] btrfs_commit_transaction+0x4db/0xb00 [ 7228.088457] ? start_transaction+0xd2/0x4f0 [ 7228.091850] btrfs_mksubvol+0x2aa/0x460 [ 7228.094499] btrfs_mksnapshot+0x7b/0xb0 [ 7228.097006] btrfs_ioctl_snap_create+0x16f/0x180 [ 7228.099528] btrfs_ioctl_snap_create_v2+0xb0/0xf0 [ 7228.111016] btrfs_ioctl+0x1639/0x2e20 [ 7228.113416] ? handle_mm_fault+0x101b/0x1a00 [ 7228.126756] ? do_user_addr_fault+0x128/0x430 [ 7228.129068] ? x64_sys_ioctl+0x83/0xb0 [ 7228.131427] x64_sys_ioctl+0x83/0xb0 [ 7228.133663] do_syscall_64+0x33/0x40 [ 7228.135868] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 7228.144023] RIP: 0033:0x7f960acb95cb [ 7228.146154] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d c8 0c 00 f7 d8 64 89 01 48 [ 7228.150860] RSP: 002b:00007ffcf2e10d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 7228.163729] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f960acb95cb [ 7228.166194] RDX: 00007ffcf2e10df0 RSI: 0000000050009417 RDI: 0000000000000003 [ 7228.168551] RBP: 00007f960abbe6a8 R08: 0000000000000010 R09: 0074696e695f7061 [ 7228.181738] R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcf2e10df0 [ 7228.184071] R13: 00005575838022a0 R14: 00005575838022d0 R15: 0000000000000000 [ 7228.186328] irq event stamp: 0 [ 7228.188610] hardirqs last enabled at (0): [<0000000000000000>] 0x0 [ 7228.190874] hardirqs last disabled at (0): [] copy_process+0x6ae/0x1b90
[ 7228.199489] softirqs last enabled at (0): [] copy_process+0x6ae/0x1b90
[ 7228.201729] softirqs last disabled at (0): [<0000000000000000>] 0x0
[ 7228.203823] ---[ end trace dd7a9f54f6e0e19f ]---
[ 7228.205870] BTRFS: error (device dm-9) in create_pending_snapshot:1641: errno=-12 Out of memory
[ 7228.217794] BTRFS info (device dm-9): forced readonly
[ 7228.219835] BTRFS warning (device dm-9): Skipping commit of aborted transaction.
[ 7228.221806] BTRFS: error (device dm-9) in cleanup_transaction:1899: errno=-12 Out of memory
[ 7228.244480] BUG: kernel NULL pointer dereference, address: 000000000000074c
[ 7228.246405] #PF: supervisor write access in kernel mode
[ 7228.252610] #PF: error_code(0x0002) - not-present page
[ 7228.254678] PGD 0 P4D 0
[ 7228.256683] Oops: 0002 [#1] SMP PTI
[ 7228.258677] CPU: 1 PID: 771011 Comm: btrfs Tainted: G W 5.9.0-rc2+ #5
[ 7228.260590] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[ 7228.265733] RIP: 0010:btrfs_mksubvol+0x423/0x460
[ 7228.267730] Code: ff bb ef ff ff ff e9 57 ff ff ff bb fe ff ff ff e9 4d ff ff ff 89 c3 e9 56 ff ff ff 49 8b 7c 24 20 48 85 ff 0f 84 ed fe ff ff 87 58 07 00 00 00 00 00 00 49 8b 7c 24 20 e9 d9 fe ff ff 89 c3
[ 7228.271900] RSP: 0018:ffffb11940dafcd8 EFLAGS: 00010282
[ 7228.273949] RAX: 00000000fffffff4 RBX: 00000000fffffff4 RCX: 00000000004aa920
[ 7228.276040] RDX: 00000000004aa91f RSI: 8c4d46c34272f1e4 RDI: fffffffffffffff4
[ 7228.278201] RBP: ffff93abf89b7888 R08: 0000000000000000 R09: 0000000000000000
[ 7228.284382] R10: 0000000000000000 R11: ffffb11940dafb78 R12: ffff93ab8fca1400
[ 7228.286433] R13: ffff93ab8fca1438 R14: ffff93abf8bb9750 R15: ffff93abf8bb9670
[ 7228.288474] FS: 00007f960abbe8c0(0000) GS:ffff93abfbd00000(0000) knlGS:0000000000000000
[ 7228.290730] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7228.292881] CR2: 000000000000074c CR3: 00000001745a2005 CR4: 0000000000370ee0
[ 7228.295062] Call Trace:
[ 7228.297335] btrfs_mksnapshot+0x7b/0xb0
[ 7228.302627] btrfs_ioctl_snap_create+0x16f/0x180
[ 7228.304880] btrfs_ioctl_snap_create_v2+0xb0/0xf0
[ 7228.307060] btrfs_ioctl+0x1639/0x2e20
[ 7228.309987] ? handle_mm_fault+0x101b/0x1a00
[ 7228.312268] ? do_user_addr_fault+0x128/0x430
[ 7228.314428] ? x64_sys_ioctl+0x83/0xb0
[ 7228.316628] x64_sys_ioctl+0x83/0xb0
[ 7228.318802] do_syscall_64+0x33/0x40
[ 7228.320876] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 7228.322942] RIP: 0033:0x7f960acb95cb
[ 7228.324980] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d c8 0c 00 f7 d8 64 89 01 48
[ 7228.329237] RSP: 002b:00007ffcf2e10d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 7228.331389] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f960acb95cb
[ 7228.333543] RDX: 00007ffcf2e10df0 RSI: 0000000050009417 RDI: 0000000000000003
[ 7228.335732] RBP: 00007f960abbe6a8 R08: 0000000000000010 R09: 0074696e695f7061
[ 7228.337925] R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcf2e10df0
[ 7228.340166] R13: 00005575838022a0 R14: 00005575838022d0 R15: 0000000000000000
[ 7228.342347] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set rfkill nf_tables nfnetlink intel_rapl_msr intel_rapl_common kvm_intel kvm snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec iTCO_wdt iTCO_vendor_support snd_hwdep snd_hda_core snd_pcm snd_timer snd irqbypass i2c_i801 joydev i2c_smbus virtio_balloon lpc_ich soundcore virtio_net net_failover failover zram ip_tables xfs crct10dif_pclmul qxl crc32_pclmul crc32c_intel drm_ttm_helper ghash_clmulni_intel ttm drm_kms_helper serio_raw cec virtio_blk drm virtio_console qemu_fw_cfg
[ 7228.359801] CR2: 000000000000074c
[ 7228.362245] ---[ end trace dd7a9f54f6e0e1a0 ]---
[ 7228.364608] RIP: 0010:btrfs_mksubvol+0x423/0x460
[ 7228.367053] Code: ff bb ef ff ff ff e9 57 ff ff ff bb fe ff ff ff e9 4d ff ff ff 89 c3 e9 56 ff ff ff 49 8b 7c 24 20 48 85 ff 0f 84 ed fe ff ff 87 58 07 00 00 00 00 00 00 49 8b 7c 24 20 e9 d9 fe ff ff 89 c3
[ 7228.372049] RSP: 0018:ffffb11940dafcd8 EFLAGS: 00010282
[ 7228.374561] RAX: 00000000fffffff4 RBX: 00000000fffffff4 RCX: 00000000004aa920
[ 7228.377187] RDX: 00000000004aa91f RSI: 8c4d46c34272f1e4 RDI: fffffffffffffff4
[ 7228.379706] RBP: ffff93abf89b7888 R08: 0000000000000000 R09: 0000000000000000
[ 7228.385366] R10: 0000000000000000 R11: ffffb11940dafb78 R12: ffff93ab8fca1400
[ 7228.387865] R13: ffff93ab8fca1438 R14: ffff93abf8bb9750 R15: ffff93abf8bb9670
[ 7228.390419] FS: 00007f960abbe8c0(0000) GS:ffff93abfbd00000(0000) knlGS:0000000000000000
[ 7228.392870] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7228.395357] CR2: 000000000000074c CR3: 00000001745a2005 CR4: 0000000000370ee0
[ 7228.398022] BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49
[ 7228.400503] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 771011, name: btrfs
[ 7228.402980] INFO: lockdep is turned off.
[ 7228.405518] irq event stamp: 0
[ 7228.413040] hardirqs last enabled at (0): [<0000000000000000>] 0x0
[ 7228.415589] hardirqs last disabled at (0): [] copy_process+0x6ae/0x1b90
[ 7228.417962] softirqs last enabled at (0): [] copy_process+0x6ae/0x1b90
[ 7228.420438] softirqs last disabled at (0): [<0000000000000000>] 0x0
[ 7228.426904] CPU: 1 PID: 771011 Comm: btrfs Tainted: G D W 5.9.0-rc2+ #5
[ 7228.429456] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[ 7228.431901] Call Trace:
[ 7228.434454] dump_stack+0x92/0xc8
[ 7228.440983] _might_sleep.cold+0xb6/0xc6
[ 7228.443487] exit_signals+0x1c/0x2d0
[ 7228.445935] do_exit+0xc5/0xbb0
[ 7228.448456] ? x64_sys_ioctl+0x83/0xb0
[ 7228.450907] ? __x64_sys_ioctl+0x83/0xb0
[ 7228.453431] rewind_stack_do_exit+0x17/0x20
[ 7228.455891] RIP: 0033:0x7f960acb95cb
[ 7228.458381] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d c8 0c 00 f7 d8 64 89 01 48
[ 7228.463372] RSP: 002b:00007ffcf2e10d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 7228.465778] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f960acb95cb
[ 7228.468291] RDX: 00007ffcf2e10df0 RSI: 0000000050009417 RDI: 0000000000000003
[ 7228.470746] RBP: 00007f960abbe6a8 R08: 0000000000000010 R09: 0074696e695f7061
[ 7228.473250] R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcf2e10df0
[ 7228.475590] R13: 00005575838022a0 R14: 00005575838022d0 R15: 0000000000000000