[Bug 786750] New: btrfs_drop_extents() BUG_ON during clone
https://bugzilla.novell.com/show_bug.cgi?id=786750 https://bugzilla.novell.com/show_bug.cgi?id=786750#c0 Summary: btrfs_drop_extents() BUG_ON during clone Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: Other Status: NEEDINFO Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: ddiss@suse.com QAContact: qa-bugs@suse.de InfoProvider: ddiss@suse.com Found By: --- Blocker: --- I'm currently hitting the following BUG_ON after issuing a BTRFS_IOC_CLONE_RANGE request: 716 /* 717 * | ---- range to drop ----- | 718 * | -------- extent -------- | 719 */ 720 if (start > key.offset && end >= extent_end) { 721 BUG_ON(del_nr > 0);
722 BUG_ON(extent_type == BTRFS_FILE_EXTENT_INLINE); 723 724 btrfs_set_file_extent_num_bytes(leaf, fi, 725 start - key.offset);
Oct 25 16:41:14 plati kernel: ------------[ cut here ]------------ Oct 25 16:41:14 plati kernel: kernel BUG at /home/abuild/rpmbuild/BUILD/kernel-desktop-3.4.11/linux-3.4/fs/btrfs/file.c:722! Oct 25 16:41:14 plati kernel: invalid opcode: 0000 [#1] PREEMPT SMP Oct 25 16:41:14 plati kernel: CPU 1 Oct 25 16:41:14 plati kernel: Modules linked in: ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack tun ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp bridge stp btrfs zlib_deflate libcrc32c loop fuse ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables rfcomm bnep af_packet cpufreq_conservative cpufreq_userspace cpufreq_powersave snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss kvm_intel kvm arc4 snd_pcm uvcvideo videobuf2_core videodev videobuf2_vmalloc videobuf2_memops snd_seq nvidia(PO) snd_timer snd_seq_device iwlwifi snd_mixer_oss mac80211 cfg80211 btusb bluetooth dell_laptop snd rfkill ppdev parport_pc sg dell_wmi sparse_keymap parport wmi soundcore snd_page_alloc intel_ips sr_mod cdrom iTCO_wdt sdhci_pci sdhci mmc_core iTCO_vendor_support i2c_i801 acpi_cpufreq firewire_ohci mperf firewire_core coretemp pcspkr crc_itu_t mei(C) e1000e joydev video container crc32c_intel ghash_clmulni_intel aesni_intel battery button ac cryptd dcdbas aes_x86_64 edd microcode autofs4 scsi_dh_alua scsi_dh_emc scsi_dh_rdac scsi_dh_hp_sw scsi_dh fan processor thermal thermal_sys Oct 25 16:41:14 plati kernel: Oct 25 16:41:14 plati kernel: Pid: 23521, comm: smbd Tainted: P WC O 3.4.11-2.16-desktop #1 Dell Inc. Latitude E6410/0K42JR Oct 25 16:41:14 plati kernel: RIP: 0010:[<ffffffffa10ab6de>] [<ffffffffa10ab6de>] btrfs_drop_extents+0x97e/0x990 [btrfs] Oct 25 16:41:14 plati kernel: RSP: 0018:ffff8800c8dd1bc8 EFLAGS: 00010246 Oct 25 16:41:14 plati kernel: RAX: 0000000000000000 RBX: ffff880076669870 RCX: ffff88011fd33000 Oct 25 16:41:14 plati kernel: RDX: 0000000000000000 RSI: 0000000000000dcc RDI: 0000000000000000 Oct 25 16:41:14 plati kernel: RBP: ffff8801128b9880 R08: 0000000000000dd4 R09: ffff8800c8dd1b88 Oct 25 16:41:14 plati kernel: R10: 000000000000001b R11: 00000000ffffffff R12: 0000000000000dc4 Oct 25 16:41:14 plati kernel: R13: 0000000000000101 R14: 0000000000000000 R15: 000000000000006c Oct 25 16:41:14 plati kernel: FS: 00007f1ad4e817c0(0000) GS:ffff880127c40000(0000) knlGS:0000000000000000 Oct 25 16:41:14 plati kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Oct 25 16:41:14 plati kernel: CR2: 00007f1ad1421fc4 CR3: 0000000037864000 CR4: 00000000000027e0 Oct 25 16:41:14 plati kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Oct 25 16:41:14 plati kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Oct 25 16:41:14 plati kernel: Process smbd (pid: 23521, threadinfo ffff8800c8dd0000, task ffff880005262380) Oct 25 16:41:14 plati kernel: Stack: Oct 25 16:41:14 plati kernel: 0000000000001000 ffff880076669c78 ffff8800c8d43000 ffffffffa10d0e78 Oct 25 16:41:14 plati kernel: 0000000000000000 000000000000000b 000000000000000b 0000000000000000 Oct 25 16:41:14 plati kernel: 0000000000001000 0000000000000101 ffff880114fff800 ffff8800766669d0 Oct 25 16:41:14 plati kernel: Call Trace: Oct 25 16:41:14 plati kernel: [<ffffffffa10cce85>] btrfs_ioctl_clone+0xa65/0xcc0 [btrfs] Oct 25 16:41:14 plati kernel: [<ffffffffa10d010f>] btrfs_ioctl+0xd4f/0x11e0 [btrfs] Oct 25 16:41:14 plati kernel: [<ffffffff8116f3f5>] do_vfs_ioctl+0x455/0x530 Oct 25 16:41:14 plati kernel: [<ffffffff8116f568>] sys_ioctl+0x98/0xa0 Oct 25 16:41:14 plati kernel: [<ffffffff8159437d>] system_call_fastpath+0x1a/0x1f Oct 25 16:41:14 plati kernel: [<00007f1ad259b7f7>] 0x7f1ad259b7f6 Oct 25 16:41:14 plati kernel: Code: be f4 ff ff ff e9 fb fc ff ff 0f 0b 0f 0b 0f 0b 0f 0b 48 8d 8c 24 9e 00 00 00 45 31 f6 48 89 4c 24 30 e9 1f fa ff ff 0f 0b 0f 0b <0f> 0b 0f 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 41 57 41 Oct 25 16:41:14 plati kernel: RIP [<ffffffffa10ab6de>] btrfs_drop_extents+0x97e/0x990 [btrfs] Oct 25 16:41:14 plati kernel: RSP <ffff8800c8dd1bc8> Oct 25 16:41:14 plati kernel: ---[ end trace d1673adb20fa5ff6 ]--- The clone-range src and dest files are on different subvolumes. Setting NEEDINFO to me for the moment. The bug is quite easy to reproduce using Samba + a windows client, so I'll write a standalone test script/binary. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=786750
https://bugzilla.novell.com/show_bug.cgi?id=786750#c
David Sterba
participants (1)
-
bugzilla_noreply@novell.com