Package: src:linux
Version: 4.19.16-1
Severity: normal
Dear Maintainer,
While removing a lot of files, (dirvish-cronjob -> dirvish-expire -> rm), BTRFS
bugs out. The relevant section of dmesg follows. The only taint is nvidia.
I don't think dirvish is relevant except that dirvish-expire runs rm on a lot
of hardlinked files. It looks like dirvish-expire calls multiple rm -rf jobs in
parallel, or at least there were multiple rm's left running after the bug. It's
possible due to ctrl-c interrupting dirvish-expire and then restarting it
multiple rm -rf were running *for the same files*. I smell a race condition.
CPU is i7-3770K so 8 processors.
The filesystem was left in a usable state, though read-only. btrfs-check
revealed:
Opening filesystem to check...
Checking filesystem on /dev/mapper/backups3
UUID: 2b571560-1b7c-42af-8dd8-c1bd33de3b76
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
unresolved ref dir 154198790 index 75995 namelen 84 name
api.launchpad.net,1.0,bugs,1201429-application,json,621249424e663ff813b146a2a20a1bC3
filetype 0 errors 3, no dir item, no dir index
unresolved ref dir 154198790 index 75995 namelen 84 name
api.launchpad.net,1.0,bugs,1201429-application,json,621249424e663ff813b146a2a20a1bc3
filetype 1 errors 4, no inode ref
ERROR: errors found in fs roots
found 1684332290048 bytes used, error(s) found
total csum bytes: 1602195336
total tree bytes: 43169284096
total fs tree bytes: 39250362368
total extent tree bytes: 1959067648
btree space waste bytes: 9671228983
file data blocks allocated: 1641163005952
referenced 2764812832768
[ 1782.723094] BTRFS info (device dm-8): failed to delete reference to
api.launchpad.net,1.0,bugs,1201429-application,json,621249424e663ff813b146a2a20a1bc3,
inode 6868044 parent 154198790
[ 1782.723097] [ cut here ]
[ 1782.723098] BTRFS: Transaction aborted (error -2)
[ 1782.723143] WARNING: CPU: 7 PID: 13532 at fs/btrfs/inode.c:3976
__btrfs_unlink_inode.cold.87+0x57/0x146 [btrfs]
[ 1782.723144] Modules linked in: ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs
fuse tun snd_hrtimer nf_tables snd_seq nvidia_uvm(POE) nfnetlink snd_seq_device
binfmt_misc nls_ascii nls_cp437 vfat fat ext4 crc16 mbcache jbd2 fscrypto ecb
snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp
snd_hda_codec_via snd_hda_codec_generic kvm_intel snd_hda_intel kvm irqbypass
snd_hda_codec intel_cstate intel_uncore snd_hda_core intel_rapl_perf efi_pstore
snd_hwdep snd_pcm snd_timer mei_me pcspkr iTCO_wdt serio_raw efivars sg
iTCO_vendor_support snd mei soundcore ie31200_edac evdev pcc_cpufreq
nvidia_drm(POE) drm_kms_helper drm nvidia_modeset(POE) nvidia(POE) ipmi_devintf
ipmi_msghandler msr it87 hwmon_vid coretemp loop parport_pc ppdev lp parport
efivarfs ip_tables x_tables autofs4 btrfs zstd_decompress
[ 1782.723177] zstd_compress xxhash algif_skcipher af_alg ses enclosure
scsi_transport_sas dm_crypt dm_mod raid10 raid456 async_raid6_recov
async_memcpy async_pq async_xor async_tx xor uas usb_storage raid6_pq libcrc32c
crc32c_generic raid0 multipath linear hid_logitech_hidpp hid_logitech_dj
hid_generic usbhid hid raid1 md_mod sr_mod cdrom sd_mod crct10dif_pclmul
crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc xhci_pci mxm_wmi aesni_intel
ehci_pci xhci_hcd ahci libahci ehci_hcd aes_x86_64 crypto_simd libata cryptd
scsi_mod i2c_i801 glue_helper usbcore alx lpc_ich mdio usb_common fan thermal
video wmi button
[ 1782.723206] CPU: 7 PID: 13532 Comm: rm Tainted: P OE
4.19.0-2-amd64 #1 Debian 4.19.16-1
[ 1782.723207] Hardware name: Gigabyte Technology Co., Ltd. To be filled by
O.E.M./Z77X-UD3H, BIOS F17 08/22/2012
[ 1782.723223] RIP: 0010:__btrfs_unlink_inode.cold.87+0x57/0x146 [btrfs]
[ 1782.723224] Code: ba a8 08 17 00 00 02 44 8b 5d 80 72 23 41 83 fb fb 0f 84
d1 00 00 00 44 89 de 48 c7 c7 98 55 53 c0 44 89 5d a4 e8 0f fc 55 e4 <0f> 0b 44
8b 5d a4 48 8b 7d a8 44 89 d9 ba 88 0f 00 00 44 89 5d a4
[ 1782.723226] RSP: 0018:ad4d0e9bfdb0 EFLAGS: 00010282
[ 1782.723228] RAX: RBX: 920f9d4e7430 RCX:
0006
[ 1782.723229] RDX: 0007 RSI: 0096 RDI:
9212febd66a0
[ 1782.723230] RBP: ad4d0e9bfe30 R08: 0444 R09:
0007
[ 1782.723231] R10: R11: 0001 R12:
920f807e35a0
[ 1782.723232] R13: 920f2cdbc850 R14: 9212f1321000 R15:
0930e306
[ 1782.723234] FS: 7f22df820540() GS:9212febc()
knlGS:
[ 1782.723235] CS: 0010 DS: ES: CR0: 80050033
[ 1782.723237] CR2: 55b57a8b49a8 CR3: 000317498002 CR4:
001606e0
[ 1782.723238] Call Trace:
[ 1782.723256] btrfs_unlink_inode+0x17/0x50 [btrfs]
[ 1782.723270] btrfs_unlink+0x8c/0xd0 [btrfs]
[ 1782.723275] vfs_unlink+0x109/0x1a0
[ 1782.723277] do_unlinkat+0x239/0x320
[ 1782.723280] do_syscall_64+0x53/0x100
[ 1782.723283] entry_SYSCALL_64_after_hwfram