GPF when removing lots of files from hfsplus partition

Bug #1646565 reported by Mikael Kanstrup
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I get a general protection fault when removing a lot of files from an hfsplus partition. Most of the times a reboot solves the problem but with one directory I now get the error all the time.

sudo rm -rf myrepos/
Segmentation fault (core dumped)

Looking at the kernel logs I find the following:

Dec 1 18:30:58 mediabox kernel: [ 349.051902] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.051911] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.071836] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.098296] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.098307] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.099487] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.102019] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.102051] hfsplus: walked past end of dir
Dec 1 18:30:58 mediabox kernel: [ 349.104487] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446031] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446059] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446067] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446088] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446103] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446108] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446139] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446145] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446157] hfsplus: walked past end of dir
Dec 1 18:31:13 mediabox kernel: [ 364.446162] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040354] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040375] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040381] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040397] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040410] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040415] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040425] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040430] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040440] hfsplus: walked past end of dir
Dec 1 18:31:17 mediabox kernel: [ 368.040445] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435299] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435335] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435346] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435376] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435402] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435411] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435433] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435442] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435462] hfsplus: walked past end of dir
Dec 1 18:31:18 mediabox kernel: [ 369.435470] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672261] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672289] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672293] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672308] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672315] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672318] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672328] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672330] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672337] hfsplus: walked past end of dir
Dec 1 18:31:20 mediabox kernel: [ 370.672340] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.922309] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.922352] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.922366] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.924899] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.925021] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.925054] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.926903] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.926913] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.926933] hfsplus: walked past end of dir
Dec 1 18:31:23 mediabox kernel: [ 373.926938] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356546] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356567] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356573] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356589] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356602] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356607] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356628] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356632] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356646] hfsplus: walked past end of dir
Dec 1 18:31:26 mediabox kernel: [ 377.356650] hfsplus: walked past end of dir
Dec 1 18:32:32 mediabox kernel: [ 442.748981] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749003] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749022] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749040] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749058] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749077] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749096] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749114] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749132] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749150] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749168] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749186] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749204] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749222] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749239] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749257] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749276] hfsplus: trying to free free bnode 0(1)
Dec 1 18:32:32 mediabox kernel: [ 442.749298] general protection fault: 0000 [#1] SMP
Dec 1 18:32:32 mediabox kernel: [ 442.749324] Modules linked in: joydev hidp nls_utf8 hfsplus rfcomm cmac bnep nls_iso8859_1 intel_rapl x86_pkg_temp_thermal coretemp kvm_intel kvm btusb irqbypass btrtl crct10dif_pclmul crc32_pclmul ghash_clmulni_intel wl(POE) btbcm btintel snd_hda_codec_hdmi snd_hda_codec_cirrus snd_hda_codec_generic bluetooth snd_hda_intel snd_hda_codec aesni_intel aes_x86_64 lrw applesmc input_polldev input_leds glue_helper snd_hda_core ablk_helper cryptd intel_cstate snd_hwdep snd_pcm intel_rapl_perf snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer cfg80211 snd mei_me mei thunderbolt soundcore apple_gmux shpchp apple_bl lpc_ich mac_hid parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic hid_appleir usbhid hid uas usb_storage i915 i2c_algo_bit drm_kms_helper ahci firewire_ohci sdhci_pci syscopyarea libahci tg3 sdhci sysfillrect sysimgblt firewire_core fb_sys_fops ptp drm crc_itu_t pps_core video fjes
Dec 1 18:32:32 mediabox kernel: [ 442.749760] CPU: 3 PID: 2688 Comm: rm Tainted: P OE 4.8.0-28-generic #30-Ubuntu
Dec 1 18:32:32 mediabox kernel: [ 442.749789] Hardware name: Apple Inc. Macmini6,1/Mac-031AEE4D24BFF0B1, BIOS MM61.88Z.0106.B0A.1509111654 09/11/2015
Dec 1 18:32:32 mediabox kernel: [ 442.749825] task: ffff975e1fe92ac0 task.stack: ffff975dc3118000
Dec 1 18:32:32 mediabox kernel: [ 442.749847] RIP: 0010:[<ffffffffc0f988dd>] [<ffffffffc0f988dd>] hfsplus_bnode_write+0x10d/0x150 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.749887] RSP: 0018:ffff975dc311bbe8 EFLAGS: 00010202
Dec 1 18:32:32 mediabox kernel: [ 442.749907] RAX: fff322bcb4d00000 RBX: 0000000000000002 RCX: 0000000000000002
Dec 1 18:32:32 mediabox kernel: [ 442.749932] RDX: 00000000000000ff RSI: ffff975dc311bc2e RDI: ffff975dfaa27540
Dec 1 18:32:32 mediabox kernel: [ 442.749957] RBP: ffff975dc311bc18 R08: ffff975dc311bbfc R09: 0000000000000000
Dec 1 18:32:32 mediabox kernel: [ 442.749982] R10: 0000000000000014 R11: 00000000000004da R12: 0000000000000002
Dec 1 18:32:32 mediabox kernel: [ 442.750007] R13: ffff975dfaa275a0 R14: ffff975dc311bc2e R15: 0000000000000002
Dec 1 18:32:32 mediabox kernel: [ 442.750032] FS: 00007f01dda28700(0000) GS:ffff975e2f2c0000(0000) knlGS:0000000000000000
Dec 1 18:32:32 mediabox kernel: [ 442.750060] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Dec 1 18:32:32 mediabox kernel: [ 442.750081] CR2: 00000000008bb0b8 CR3: 00000002327e9000 CR4: 00000000001406e0
Dec 1 18:32:32 mediabox kernel: [ 442.750106] Stack:
Dec 1 18:32:32 mediabox kernel: [ 442.750115] ffffb82d83d34000 ffff975dc311bcc8 000000000000000e 0000000000001f2e
Dec 1 18:32:32 mediabox kernel: [ 442.750147] ffff975dfaa27540 0000000000001ffc ffff975dc311bc38 ffffffffc0f98954
Dec 1 18:32:32 mediabox kernel: [ 442.750179] d4ff000000002000 0000000085061981 ffff975dc311bc78 ffffffffc0f9ae1b
Dec 1 18:32:32 mediabox kernel: [ 442.750212] Call Trace:
Dec 1 18:32:32 mediabox kernel: [ 442.750225] [<ffffffffc0f98954>] hfsplus_bnode_write_u16+0x34/0x50 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750252] [<ffffffffc0f9ae1b>] hfsplus_brec_remove+0x11b/0x170 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750279] [<ffffffffc0f9d2f0>] __hfsplus_delete_attr+0xb0/0xf0 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750305] [<ffffffffc0f9d87b>] hfsplus_delete_all_attrs+0x5b/0xd0 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750333] [<ffffffffc0f96609>] hfsplus_delete_cat+0x219/0x340 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750359] [<ffffffffc0f96ecd>] hfsplus_unlink+0x7d/0x1c0 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750385] [<ffffffff83c3dec4>] ? inode_permission+0x14/0x50
Dec 1 18:32:32 mediabox kernel: [ 442.750406] [<ffffffff83c40688>] vfs_unlink+0x108/0x1a0
Dec 1 18:32:32 mediabox kernel: [ 442.750426] [<ffffffff83c44221>] do_unlinkat+0x291/0x310
Dec 1 18:32:32 mediabox kernel: [ 442.750446] [<ffffffff83c44deb>] SyS_unlinkat+0x1b/0x30
Dec 1 18:32:32 mediabox kernel: [ 442.750468] [<ffffffff8429a036>] entry_SYSCALL_64_fastpath+0x1e/0xa8
Dec 1 18:32:32 mediabox kernel: [ 442.750491] Code: 4c 63 fb 48 c1 f8 06 48 c1 e0 0c 48 03 05 3c 2a 8a c3 49 83 ff 08 73 81 41 f6 c7 04 75 3a 4d 85 ff 74 a2 41 0f b6 16 41 f6 c7 02 <88> 10 74 96 43 0f b7 54 3e fe 66 42 89 54 38 fe 49 8b 7d 00 e8
Dec 1 18:32:32 mediabox kernel: [ 442.750664] RIP [<ffffffffc0f988dd>] hfsplus_bnode_write+0x10d/0x150 [hfsplus]
Dec 1 18:32:32 mediabox kernel: [ 442.750693] RSP <ffff975dc311bbe8>
Dec 1 18:32:32 mediabox kernel: [ 442.759498] ---[ end trace 981c31958cf3b62e ]---

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: linux-image-4.8.0-28-generic 4.8.0-28.30
ProcVersionSignature: Ubuntu 4.8.0-28.30-generic 4.8.6
Uname: Linux 4.8.0-28-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mikael 1887 F.... pulseaudio
CurrentDesktop: Unity
Date: Thu Dec 1 18:48:29 2016
HibernationDevice: RESUME=UUID=aaaade4e-4fe4-42d5-8d48-7948aa130fa3
InstallationDate: Installed on 2016-11-24 (6 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
MachineType: Apple Inc. Macmini6,1
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-28-generic.efi.signed root=UUID=90d056b3-18d6-4338-a856-8940073c6409 ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.8.0-28-generic N/A
 linux-backports-modules-4.8.0-28-generic N/A
 linux-firmware 1.161
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/11/2015
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MM61.88Z.0106.B0A.1509111654
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-031AEE4D24BFF0B1
dmi.board.vendor: Apple Inc.
dmi.board.version: Macmini6,1
dmi.chassis.type: 16
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-031AEE4D24BFF0B1
dmi.modalias: dmi:bvnAppleInc.:bvrMM61.88Z.0106.B0A.1509111654:bd09/11/2015:svnAppleInc.:pnMacmini6,1:pvr1.0:rvnAppleInc.:rnMac-031AEE4D24BFF0B1:rvrMacmini6,1:cvnAppleInc.:ct16:cvrMac-031AEE4D24BFF0B1:
dmi.product.name: Macmini6,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Mikael Kanstrup (kanstrup) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.9 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc7

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Mikael Kanstrup (kanstrup) wrote :

I have not been running Ubuntu on this machine so can't say if it works on any earlier version.

I verified that the problem is still there with mainline kernel v4.9-rc7.

After this problem happens it is not possible to unmount the drive so I am not able to reboot the machine properly. After a power button forced reboot running fsck reports errors like this:

fsck från util-linux 2.28.2
** /dev/sdc2
 Using cacheBlockSize=32K cacheTotalBlock=1024 cacheSize=32768K.
** Checking HFS Plus volume.
** Detected a case-sensitive catalog.
** Checking Extents Overflow file.
** Checking Catalog file.
** Checking Catalog hierarchy.
   Invalid directory item count
   (It should be 0 instead of 80)
   Invalid directory item count
   (It should be 1 instead of 11)
   Invalid directory item count
   (It should be 8 instead of 12)
** Checking Extended Attributes file.
   Invalid sibling link
(8, 65)
** Volume check failed.
volume check failed with error 7
 volume type is pure HFS+
 primary MDB is at block 0 0x00
 alternate MDB is at block 0 0x00
 primary VHB is at block 2 0x02
 alternate VHB is at block 5859651494 0x15d432fa6
 sector size = 512 0x200
 VolumeObject flags = 0x07
 total sectors for volume = 5859651496 0x15d432fa8
 total sectors for embedded volume = 0 0x00

Don't know if it's caused by this reported bug or by the power button shutdown.

I repaired the disk with Mac OS disk utility and verified that fsck in Ubuntu finds it OK again. Then ran the "test" once again. The problem happened again so crash is not because of existing file system errors.

Revision history for this message
Lukas Wirz (l-wirz) wrote :
Download full text (5.4 KiB)

Hi,

for me this problem persists in 4.9.0 (compiled myself, on debian8). It's reproducible: create new empty filesystem, add files, delete files --> leading to a segfault and unrecoverable corruption of the filesystem. I tried this on two different hard drives, so I would exclude the possibility of a hardware failure.

see attached part of kern.log.

cheers, lukas

Jan 9 14:33:00 debianPro kernel: [ 338.991315] hfsplus: trying to free free bnode 0(1)
Jan 9 14:33:00 debianPro kernel: [ 338.991320] hfsplus: trying to free free bnode 0(1)
Jan 9 14:33:00 debianPro kernel: [ 338.991329] hfsplus: trying to free free bnode 0(1)
Jan 9 14:33:00 debianPro kernel: [ 338.991349] general protection fault: 0000 [#1] SMP
Jan 9 14:33:00 debianPro kernel: [ 338.991374] Modules linked in: bnep binfmt_misc dm_crypt af_alg nls_iso8859_1 nls_cp437 vfat fat btusb btrtl btbcm btintel nls_utf8 hfsplus bluetooth input_leds arc4 hid_generic hid_apple ssb bcm5974 mac80211 cfg80211 usbhid hid applesmc input_polldev iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass ghash_clmulni_intel aesni_intel aes_x86_64 ablk_helper cryptd lrw glue_helper uvcvideo videobuf2_vmalloc videobuf2_memops snd_pcsp videobuf2_v4l2 videobuf2_core videodev i2c_i801 i2c_smbus bcma snd_hda_codec_hdmi snd_hda_codec_cirrus thunderbolt snd_hda_codec_generic i915 fbcon bitblit softcursor tileblit intel_gtt snd_hda_intel apple_gmux snd_hda_codec snd_hda_core drm_kms_helper snd_hwdep snd_pcm_oss drm snd_mixer_oss snd_pcm video i2c_algo_bit fb_sys_fops snd_timer
Jan 9 14:33:00 debianPro kernel: [ 338.991744] syscopyarea snd sysfillrect apple_bl sysimgblt soundcore tpm_tis lpc_ich shpchp tpm_tis_core tpm firewire_sbp2 fuse ppdev lp parport crc32c_intel firewire_ohci firewire_core crc_itu_t sdhci_pci sdhci led_class ahci tg3 ptp libahci pps_core xhci_pci xhci_hcd [last unloaded: b43]
Jan 9 14:33:00 debianPro kernel: [ 338.991885] CPU: 1 PID: 6238 Comm: rm Not tainted 4.9.0 #1
Jan 9 14:33:00 debianPro kernel: [ 338.991908] Hardware name: Apple Inc. MacBookPro9,2/Mac-6F01561E16C75D06, BIOS MBP91.88Z.00D3.B0C.1509111653 09/11/2015
Jan 9 14:33:00 debianPro kernel: [ 338.991950] task: ffff88042df2d780 task.stack: ffffc90008e04000
Jan 9 14:33:00 debianPro kernel: [ 338.991973] RIP: 0010:[<ffffffffa0dad78c>] [<ffffffffa0dad78c>] hfsplus_bnode_write+0x94/0x115 [hfsplus]
Jan 9 14:33:00 debianPro kernel: [ 338.992014] RSP: 0018:ffffc90008e07c00 EFLAGS: 00010286
Jan 9 14:33:00 debianPro kernel: [ 338.992035] RAX: ffff880000000000 RBX: 0000000000000002 RCX: 0000000000000002
Jan 9 14:33:00 debianPro kernel: [ 338.992063] RDX: 0000160000000000 RSI: ffffc90008e07c56 RDI: ffe7091333456000
Jan 9 14:33:00 debianPro kernel: [ 338.992090] RBP: ffffc90008e07c40 R08: ffffc90008e07c24 R09: ffff88044ccd10d0
Jan 9 14:33:00 debianPro kernel: [ 338.992118] R10: ffffea0011333440 R11: 0000000000000000 R12: ffe7091333456000
Jan 9 14:33:00 debianPro kernel: [ 338.992146] R13: ffff88044ccd1120 R14: 0000000000000002 R15: ffe7091333456000
Jan 9 14:33:00 debianPro kernel: [ 338.992175] FS: 00007f018ffbb700(0000) GS:ffff88046f280000(0000) knlGS:0000000000000000
Jan 9...

Read more...

Revision history for this message
Grum Blor (darthgrum) wrote :

Are there any work-arounds or planned fixes to this problem?

I'm getting the same fault when deleting a large number of files from a directory using the following bash shell script;

mkdir test_dir; for i in {1..300}; do touch test_dir/$i; done ; rm /test_dir/*

After this, fsck cannot fix the HFS+ partition, meaning all files are lost.

Revision history for this message
Benjamin Berman (doctorpangloss) wrote :
Download full text (4.5 KiB)

Is HFS+ support broken in Linux since 4.9? Can we have this officially acknowledged here? It's a high ranking result.

For what it's worth, mounting large HFS+ volumes, like this Drobo I own, just hangs:

uname -a
Linux hiddenswitch-2 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.131448] usb 1-1.1.2: new high-speed USB device number 5 using dwc_otg
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.262082] usb 1-1.1.2: New USB device found, idVendor=19b9, idProduct=4d10
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.262089] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.262093] usb 1-1.1.2: Product: Drobo
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.262097] usb 1-1.1.2: Manufacturer: Data Robotics Inc.
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.262100] usb 1-1.1.2: SerialNumber: 0DB100221405
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.337663] usb-storage 1-1.1.2:1.0: USB Mass Storage device detected
Dec 7 03:14:24 hiddenswitch-2 kernel: [ 59.338383] scsi host0: usb-storage 1-1.1.2:1.0
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.392032] scsi 0:0:0:0: Direct-Access TRUSTED Mass Storage 2.00 PQ: 0 ANSI: 5
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.392751] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.392996] sd 0:0:0:0: [sda] 34359738368 512-byte logical blocks: (17.6 TB/16.0 TiB)
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.393375] sd 0:0:0:0: [sda] Write Protect is off
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.393380] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.393827] sd 0:0:0:0: [sda] No Caching mode page found
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.393835] sd 0:0:0:0: [sda] Assuming drive cache: write through
Dec 7 03:14:25 hiddenswitch-2 kernel: [ 60.403220] sd 0:0:0:0: Attached scsi generic sg0 type 0
Dec 7 03:14:53 hiddenswitch-2 kernel: [ 88.767530] sda: sda1 sda2 sda3
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667794] INFO: task mount:2282 blocked for more than 120 seconds.
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667800] Tainted: G C 4.14.79-v7+ #1159
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667802] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667806] mount D 0 2282 2278 0x00000001
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667831] [<8079ef70>] (__schedule) from [<8079f5d8>] (schedule+0x50/0xa8)
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667840] [<8079f5d8>] (schedule) from [<8079fa50>] (schedule_preempt_disabled+0x18/0x1c)
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667848] [<8079fa50>] (schedule_preempt_disabled) from [<807a1358>] (__mutex_lock.constprop.3+0x190/0x58c)
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667857] [<807a1358>] (__mutex_lock.constprop.3) from [<807a1870>] (__mutex_lock_slowpath+0x1c/0x20)
Dec 7 03:17:28 hiddenswitch-2 kernel: [ 243.667865] [<807a1870>] (__mutex_lock_slowpath) from [<807a18d0>] (mu...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.