Description of problem: This crash occurred during normal use. The btrfs filesystem is shared over NFS, and I am copying a number of files into the filesystem using rsync. The rsync appears to have hung, but other activity seems to be okay at the moment. Is there any other information I can provide that would be helpful? Additional info: kernel BUG at fs/btrfs/ctree.c:2950! invalid opcode: 0000 [#1] SMP Modules linked in: iptable_raw xt_CT nf_conntrack bridge stp llc f71882fg hwmon_vid snd_hda_codec_realtek snd_hda_intel snd_hda_codec vhost_net tun macvtap macvlan snd_hwdep kvm_amd snd_seq snd_seq_device snd_pcm snd_page_alloc snd_timer nfsd auth_rpcgss kvm nfs_acl snd edac_core sp5100_tco serio_raw ppdev i2c_piix4 parport_pc shpchp parport microcode edac_mce_amd k10temp lockd soundcore uinput binfmt_misc radeon i2c_algo_bit btrfs ata_generic drm_kms_helper ttm libcrc32c pata_acpi zlib_deflate drm pata_atiixp i2c_core wmi r8169 mii sunrpc CPU 1 Pid: 1687, comm: nfsd Not tainted 3.7.2-204.fc18.x86_64 #1 MICRO-STAR INTERNATIONAL CO.,LTD MS-7596/880GM-E43 (MS-7596) RIP: 0010:[<ffffffffa011b1e1>] [<ffffffffa011b1e1>] btrfs_set_item_key_safe+0x141/0x150 [btrfs] RSP: 0018:ffff880354f4b4c8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000077000 RDX: 0000000000000000 RSI: ffff880354f4b5f6 RDI: ffff880354f4b4a7 RBP: ffff880354f4b528 R08: 0000000000000f19 R09: ffff880354f4b4e8 R10: 0000000000084000 R11: 0000000000000000 R12: ffff880354f4b4e7 R13: ffff88040852d870 R14: ffff880354f4b5f6 R15: ffff880403f5a000 FS: 00007f6a34111740(0000) GS:ffff88041fc40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fbcef1a3680 CR3: 0000000350eac000 CR4: 00000000000007e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process nfsd (pid: 1687, threadinfo ffff880354f4a000, task ffff880354f50000) Stack: ffff880354f4b4f8 ffff8801cc379000 ffff880403f5a000 c2ff88040645f000 6c00000000000c35 0000000000077000 ffff880354f4b528 ffff880403f5a000 ffff88040852d870 0000000000000ee4 0000000000000000 0000000000076000 Call Trace: [<ffffffffa014e750>] __btrfs_drop_extents+0x460/0xbd0 [btrfs] [<ffffffff812f78ec>] ? list_sort+0x19c/0x230 [<ffffffffa016f845>] btrfs_log_changed_extents+0x625/0x6a0 [btrfs] [<ffffffffa0172e93>] btrfs_log_inode+0x533/0x5e0 [btrfs] [<ffffffff81634006>] ? __schedule+0x3c6/0x7a0 [<ffffffffa0173bcc>] btrfs_log_inode_parent+0x17c/0x450 [btrfs] [<ffffffffa0173ee7>] btrfs_log_dentry_safe+0x47/0x70 [btrfs] [<ffffffffa014c3fa>] btrfs_sync_file+0x15a/0x220 [btrfs] [<ffffffff811c298d>] generic_write_sync+0x4d/0x60 [<ffffffffa014d9c6>] btrfs_file_aio_write+0x2d6/0x4a0 [btrfs] [<ffffffff81592446>] ? inet_sendmsg+0x66/0xb0 [<ffffffff8109ae23>] ? update_sd_lb_stats+0x133/0x610 [<ffffffffa014d6f0>] ? __btrfs_buffered_write+0x350/0x350 [btrfs] [<ffffffff81195693>] do_sync_readv_writev+0xa3/0xe0 [<ffffffff81195974>] do_readv_writev+0xd4/0x1e0 [<ffffffff8126d1af>] ? exportfs_decode_fh+0xaf/0x310 [<ffffffff8117fe01>] ? kmem_cache_alloc+0x31/0x160 [<ffffffff81195ab5>] vfs_writev+0x35/0x60 [<ffffffffa035bad4>] nfsd_vfs_write.isra.12+0xe4/0x3f0 [nfsd] [<ffffffffa0375c19>] ? find_confirmed_client+0xa9/0xf0 [nfsd] [<ffffffffa0375d4e>] ? nfsd4_lookup_stateid+0xee/0x140 [nfsd] [<ffffffffa035e1c2>] nfsd_write+0xa2/0x110 [nfsd] [<ffffffffa0369200>] nfsd4_write+0x110/0x130 [nfsd] [<ffffffffa0369e0f>] nfsd4_proc_compound+0x56f/0x780 [nfsd] [<ffffffffa0357b4b>] nfsd_dispatch+0xeb/0x230 [nfsd] [<ffffffffa000f578>] svc_process_common+0x328/0x6d0 [sunrpc] [<ffffffffa0357060>] ? nfsd_get_default_max_blksize+0x60/0x60 [nfsd] [<ffffffffa000fc72>] svc_process+0x102/0x150 [sunrpc] [<ffffffffa035710f>] nfsd+0xaf/0x150 [nfsd] [<ffffffff81081c80>] kthread+0xc0/0xd0 [<ffffffff81010000>] ? ftrace_raw_event_xen_mmu_flush_tlb_others+0x50/0xe0 [<ffffffff81081bc0>] ? kthread_create_on_node+0x120/0x120 [<ffffffff8163de2c>] ret_from_fork+0x7c/0xb0 [<ffffffff81081bc0>] ? kthread_create_on_node+0x120/0x120 Code: 00 00 4c 89 e6 4c 89 ff 48 98 48 8d 04 80 48 8d 54 80 65 e8 a2 f7 03 00 4c 89 f6 4c 89 e7 e8 27 f2 ff ff 85 c0 0f 8f 5e ff ff ff <0f> 0b 0f 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 55 RIP [<ffffffffa011b1e1>] btrfs_set_item_key_safe+0x141/0x150 [btrfs] RSP <ffff880354f4b4c8>
Same error here. BTRFS partition shared via nfs for RHEV VM storage. [ 802.660711] ------------[ cut here ]------------ [ 802.660723] kernel BUG at fs/btrfs/ctree.c:2950! [ 802.660729] invalid opcode: 0000 [#1] SMP [ 802.660747] Modules linked in: nfsd tcp_lp fuse ebtable_nat nfsv3 nfs_acl nfsv4 auth_rpcgss nfs lockd dns_resolver fscache nf_conntrack_netbios_ns nf_conntrack_broadcast ipt_MASQUERADE ip6table_mangle ip6t_REJECT nf_conntrack_ipv6 be2iscsi nf_defrag_ipv6 iscsi_boot_sysfs bnx2i iptable_nat nf_nat_ipv4 nf_nat iptable_mangle cnic uio cxgb4i cxgb4 bnep cxgb3i bluetooth cxgb3 mdio libcxgbi nf_conntrack_ipv4 ib_iser nf_defrag_ipv4 rdma_cm xt_conntrack ib_addr nf_conntrack iw_cm ib_cm ib_sa ib_mad ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ebtable_filter ebtables ip6table_filter ip6_tables arc4 iwldvm mac80211 iTCO_wdt iTCO_vendor_support snd_hda_codec_hdmi dell_wmi ppdev sparse_keymap uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media dell_laptop dcdbas coretemp [ 802.660882] microcode snd_hda_codec_idt joydev vboxnetadp(OF) snd_hda_intel i2c_i801 vboxnetflt(OF) snd_hda_codec nvidia(POF) snd_hwdep iwlwifi snd_seq vboxdrv(OF) snd_seq_device cfg80211 lpc_ich snd_pcm mfd_core snd_page_alloc vhost_net snd_timer tun rfkill snd macvtap macvlan mei i2c_core soundcore kvm_intel kvm parport_pc parport uinput btrfs libcrc32c zlib_deflate crc32c_intel ghash_clmulni_intel firewire_ohci sdhci_pci sdhci firewire_core mmc_core e1000e crc_itu_t wmi video usb_storage sunrpc [ 802.660994] CPU 6 [ 802.661003] Pid: 2466, comm: nfsd Tainted: PF C O 3.7.7-201.fc18.x86_64 #1 Dell Inc. Precision M4600/08V9YG [ 802.661008] RIP: 0010:[<ffffffffa01571e1>] [<ffffffffa01571e1>] btrfs_set_item_key_safe+0x141/0x150 [btrfs] [ 802.661067] RSP: 0018:ffff8803e861d508 EFLAGS: 00010286 [ 802.661071] RAX: 00000000ffffffff RBX: 0000000000000007 RCX: 00000000279a2000 [ 802.661077] RDX: 00000000ffffffff RSI: ffff8803e861d636 RDI: ffff8803e861d4e7 [ 802.661082] RBP: ffff8803e861d568 R08: 0000000000000001 R09: ffff8803e861d528 [ 802.661088] R10: 00000000279a4000 R11: 00000000ffffffff R12: ffff8803e861d527 [ 802.661104] R13: ffff88040fa8dd80 R14: ffff8803e861d636 R15: ffff8803e3be02b0 [ 802.661113] FS: 0000000000000000(0000) GS:ffff88042dcc0000(0000) knlGS:0000000000000000 [ 802.661119] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 802.661125] CR2: 00007f308ca8a000 CR3: 0000000001c0b000 CR4: 00000000000427e0 [ 802.661142] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 802.661149] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 802.661157] Process nfsd (pid: 2466, threadinfo ffff8803e861c000, task ffff8803e60adc80) [ 802.661161] Stack: [ 802.661166] ffff8803e861d568 ffff8803fd4c5800 ffff880314488000 d200000000000000 [ 802.661190] 6c00000000000315 00000000279a1000 ffff8803e861d568 ffff8803e3be02b0 [ 802.661202] ffff88040fa8dd80 0000000000000e00 0000000000000000 000000002799e000 [ 802.661225] Call Trace: [ 802.661288] [<ffffffffa018a750>] __btrfs_drop_extents+0x460/0xbd0 [btrfs] [ 802.661311] [<ffffffff812f7c4c>] ? list_sort+0x19c/0x230 [ 802.661357] [<ffffffffa0170790>] ? verify_parent_transid+0x170/0x170 [btrfs] [ 802.661410] [<ffffffffa01ab845>] btrfs_log_changed_extents+0x625/0x6a0 [btrfs] [ 802.661468] [<ffffffffa01aee93>] btrfs_log_inode+0x533/0x5e0 [btrfs] [ 802.661479] [<ffffffff81635aa6>] ? __schedule+0x3c6/0x7a0 [ 802.661528] [<ffffffffa018ea19>] ? btrfs_put_ordered_extent+0x59/0xb0 [btrfs] [ 802.661584] [<ffffffffa01afbcc>] btrfs_log_inode_parent+0x17c/0x450 [btrfs] [ 802.661628] [<ffffffffa01afee7>] btrfs_log_dentry_safe+0x47/0x70 [btrfs] [ 802.661674] [<ffffffffa01883fa>] btrfs_sync_file+0x15a/0x220 [btrfs] [ 802.661684] [<ffffffff811c2ccd>] generic_write_sync+0x4d/0x60 [ 802.661730] [<ffffffffa01899c6>] btrfs_file_aio_write+0x2d6/0x4a0 [btrfs] [ 802.661751] [<ffffffff811ae728>] ? iget5_locked+0x98/0x1e0 [ 802.661795] [<ffffffffa01896f0>] ? __btrfs_buffered_write+0x350/0x350 [btrfs] [ 802.661803] [<ffffffff811959d3>] do_sync_readv_writev+0xa3/0xe0 [ 802.661811] [<ffffffff81195cb4>] do_readv_writev+0xd4/0x1e0 [ 802.661832] [<ffffffff8128bd0a>] ? inode_has_perm.isra.31.constprop.61+0x2a/0x30 [ 802.661839] [<ffffffff81195df5>] vfs_writev+0x35/0x60 [ 802.661866] [<ffffffffa1334ad4>] nfsd_vfs_write.isra.12+0xe4/0x3f0 [nfsd] [ 802.661876] [<ffffffff811939af>] ? dentry_open+0x5f/0xf0 [ 802.661890] [<ffffffffa1335aec>] ? nfsd_open+0x11c/0x1b0 [nfsd] [ 802.661915] [<ffffffffa1337218>] nfsd_write+0xf8/0x110 [nfsd] [ 802.661943] [<ffffffffa133e56c>] nfsd3_proc_write+0xbc/0x150 [nfsd] [ 802.661960] [<ffffffffa1330b4b>] nfsd_dispatch+0xeb/0x230 [nfsd] [ 802.662030] [<ffffffffa000f578>] svc_process_common+0x328/0x6d0 [sunrpc] [ 802.662042] [<ffffffffa1330060>] ? nfsd_get_default_max_blksize+0x60/0x60 [nfsd] [ 802.662084] [<ffffffffa000fc72>] svc_process+0x102/0x150 [sunrpc] [ 802.662107] [<ffffffffa133010f>] nfsd+0xaf/0x150 [nfsd] [ 802.662117] [<ffffffff81081e30>] kthread+0xc0/0xd0 [ 802.662127] [<ffffffff81010000>] ? ftrace_raw_event_xen_mmu_flush_tlb_others+0x50/0xe0 [ 802.662147] [<ffffffff81081d70>] ? kthread_create_on_node+0x120/0x120 [ 802.662157] [<ffffffff8163f8ec>] ret_from_fork+0x7c/0xb0 [ 802.662164] [<ffffffff81081d70>] ? kthread_create_on_node+0x120/0x120 [ 802.662168] Code: 00 00 4c 89 e6 4c 89 ff 48 98 48 8d 04 80 48 8d 54 80 65 e8 a2 f7 03 00 4c 89 f6 4c 89 e7 e8 27 f2 ff ff 85 c0 0f 8f 5e ff ff ff <0f> 0b 0f 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 55 [ 802.662274] RIP [<ffffffffa01571e1>] btrfs_set_item_key_safe+0x141/0x150 [btrfs] [ 802.662310] RSP <ffff8803e861d508> [ 802.662366] ---[ end trace 1ca18dbc903e416b ]---
If you can reproduce on a recent kernel please file a bug at bugzilla.kernel.org and set the component to btrfs.