hfsplus Oopses when copying files with Umlaut characters from HFS+ volume

Bug #1485337 reported by Jens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hfsplus (Ubuntu)
New
Undecided
Unassigned

Bug Description

I connected a freshly formatted and filled HFS+ volume (formatted with defaults and journaling enabled on an OS X Yosemite rescue system with Disk Utilities) to my Ubuntu box. It was mounted read-only because of the journaling which is fine.

The HFS+ disk was filled on Mac OS using

    rsync -av /Users/Jens/ /Volumes/MacHD/Jens --exclude-from=... --delete-excluded

using rsync-3.1.1 from Macports which has 'iconv' (to cope with Mac-style UTF-8).

I then issued (on Linux)

     cp -a /mount/jens/MacHD/Users/Jens ~/tmp/MacHD-Home

to clone my Mac home directory to my Ubuntu box.

After some time of copying lots of these appear in the Terminal: (= "not enough memory")

cp: der Aufruf von stat für »/media/jens/....CENSORED..../Rückflugwetter.png“ ist nicht möglich: Nicht genügend Hauptspeicher verfügbar

all of the files that trigger this error have ä, ö, ü or similar characters in the name. (Note that OS X uses UTF8-D instead of UTF8-C, or vice versa, I forgot. Might this be the problem?)

Some other files trigger an "invalid argument" error:

cp: der Aufruf von stat für »/media/jens/....CENSORED..../IMG_2409.JPG“ ist nicht möglich: Das Argument ist ungültig

In syslog I get:

Aug 16 17:21:55 linuxkiste kernel: [59050.232836] hfsplus: request for non-existent node -872406482 in B*Tree
Aug 16 17:21:55 linuxkiste kernel: [59050.232837] hfsplus: request for non-existent node -872406482 in B*Tree
Aug 16 17:21:55 linuxkiste kernel: [59050.391069] BUG: Bad page state in process cp pfn:6605a
Aug 16 17:21:55 linuxkiste kernel: [59050.391077] page:ffffea0001981680 count:0 mapcount:0 mapping: (null) index:0x2
Aug 16 17:21:55 linuxkiste kernel: [59050.391080] flags: 0x1ffff0000000004(referenced)
Aug 16 17:21:55 linuxkiste kernel: [59050.391085] page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag set
Aug 16 17:21:55 linuxkiste kernel: [59050.391086] bad because of flags:
Aug 16 17:21:55 linuxkiste kernel: [59050.391087] flags: 0x4(referenced)
Aug 16 17:21:55 linuxkiste kernel: [59050.391091] Modules linked in: nls_utf8 hfsplus intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp bnep rfcomm kvm_intel kvm bluetooth serio_raw snd_hda_codec_hdmi 8250_fintek snd_hda_codec_realtek snd_hda_codec_generic lpc_ich tpm_infineon intel_smartconnect snd_hda_intel shpchp snd_hda_controller mac_hid snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mei_me mei soundcore nls_iso8859_1 parport_pc ppdev lp parport dm_crypt netconsole configfs ses enclosure hid_generic usbhid hid uas usb_storage mxm_wmi crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel i915 aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i2c_algo_bit drm_kms_helper ahci libahci drm r8169 mii video wmi
Aug 16 17:21:55 linuxkiste kernel: [59050.391131] CPU: 0 PID: 3587 Comm: cp Tainted: G W 3.19.0-25-generic #26~14.04.1-Ubuntu
Aug 16 17:21:55 linuxkiste kernel: [59050.391132] Hardware name: MSI MS-7817/CSM-B85M-E45 (MS-7817), BIOS V10.9 04/21/2015
Aug 16 17:21:55 linuxkiste kernel: [59050.391134] ffffffff81aa7428 ffff880006d6b8b8 ffffffff817aed00 0000000000000000
Aug 16 17:21:55 linuxkiste kernel: [59050.391136] ffffea0001981680 ffff880006d6b8e8 ffffffff817a9eaf ffffea0001981680
Aug 16 17:21:55 linuxkiste kernel: [59050.391138] 00000000000001c1 0000000000010200 ffffea0001981680 ffff880006d6b9d8
Aug 16 17:21:55 linuxkiste kernel: [59050.391140] Call Trace:
Aug 16 17:21:55 linuxkiste kernel: [59050.391147] [<ffffffff817aed00>] dump_stack+0x45/0x57
Aug 16 17:21:55 linuxkiste kernel: [59050.391149] [<ffffffff817a9eaf>] bad_page.part.52+0xe0/0xfe
Aug 16 17:21:55 linuxkiste kernel: [59050.391154] [<ffffffff8117e863>] get_page_from_freelist+0x883/0xa00
Aug 16 17:21:55 linuxkiste kernel: [59050.391157] [<ffffffff8117eb41>] __alloc_pages_nodemask+0x161/0xa60
Aug 16 17:21:55 linuxkiste kernel: [59050.391162] [<ffffffff8129e93b>] ? __ext4_handle_dirty_metadata+0x8b/0x220
Aug 16 17:21:55 linuxkiste kernel: [59050.391166] [<ffffffff811c41e1>] alloc_pages_current+0x91/0x100
Aug 16 17:21:55 linuxkiste kernel: [59050.391169] [<ffffffff81176007>] __page_cache_alloc+0xa7/0xc0
Aug 16 17:21:55 linuxkiste kernel: [59050.391171] [<ffffffff81176ab9>] pagecache_get_page+0x59/0x1c0
Aug 16 17:21:55 linuxkiste kernel: [59050.391174] [<ffffffff812183f2>] ? __mark_inode_dirty+0xc2/0x280
Aug 16 17:21:55 linuxkiste kernel: [59050.391177] [<ffffffff81176c4d>] grab_cache_page_write_begin+0x2d/0x50
Aug 16 17:21:55 linuxkiste kernel: [59050.391179] [<ffffffff81273e18>] ext4_da_write_begin+0x98/0x310
Aug 16 17:21:55 linuxkiste kernel: [59050.391182] [<ffffffff81175bf1>] generic_perform_write+0xb1/0x1a0
Aug 16 17:21:55 linuxkiste kernel: [59050.391184] [<ffffffff81177d8f>] __generic_file_write_iter+0x15f/0x350
Aug 16 17:21:55 linuxkiste kernel: [59050.391188] [<ffffffff81269961>] ext4_file_write_iter+0x101/0x3d0
Aug 16 17:21:55 linuxkiste kernel: [59050.391191] [<ffffffff811ebaf1>] new_sync_write+0x81/0xb0
Aug 16 17:21:55 linuxkiste kernel: [59050.391194] [<ffffffff811ec297>] vfs_write+0xb7/0x1f0
Aug 16 17:21:55 linuxkiste kernel: [59050.391196] [<ffffffff811ecd8e>] ? vfs_read+0x11e/0x140
Aug 16 17:21:55 linuxkiste kernel: [59050.391199] [<ffffffff811ecea6>] SyS_write+0x46/0xb0
Aug 16 17:21:55 linuxkiste kernel: [59050.391202] [<ffffffff817b668d>] system_call_fastpath+0x16/0x1b
Aug 16 17:21:55 linuxkiste kernel: [59050.391204] Disabling lock debugging due to kernel taint
Aug 16 17:21:55 linuxkiste kernel: [59050.391205] BUG: Bad page state in process cp pfn:66059
Aug 16 17:21:55 linuxkiste kernel: [59050.391208] page:ffffea0001981640 count:0 mapcount:0 mapping: (null) index:0x2
Aug 16 17:21:55 linuxkiste kernel: [59050.391209] flags: 0x1ffff0000000004(referenced)
Aug 16 17:21:55 linuxkiste kernel: [59050.391213] page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag set
Aug 16 17:21:55 linuxkiste kernel: [59050.391214] bad because of flags:
Aug 16 17:21:55 linuxkiste kernel: [59050.391216] flags: 0x4(referenced)
Aug 16 17:21:55 linuxkiste kernel: [59050.391219] Modules linked in: nls_utf8 hfsplus intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp bnep rfcomm kvm_intel kvm bluetooth serio_raw snd_hda_codec_hdmi 8250_fintek snd_hda_codec_realtek snd_hda_codec_generic lpc_ich tpm_infineon intel_smartconnect snd_hda_intel shpchp snd_hda_controller mac_hid snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mei_me mei soundcore nls_iso8859_1 parport_pc ppdev lp parport dm_crypt netconsole configfs ses enclosure hid_generic usbhid hid uas usb_storage mxm_wmi crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel i915 aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i2c_algo_bit drm_kms_helper ahci libahci drm r8169 mii video wmi
Aug 16 17:21:55 linuxkiste kernel: [59050.391249] CPU: 0 PID: 3587 Comm: cp Tainted: G B W 3.19.0-25-generic #26~14.04.1-Ubuntu
Aug 16 17:21:55 linuxkiste kernel: [59050.391250] Hardware name: MSI MS-7817/CSM-B85M-E45 (MS-7817), BIOS V10.9 04/21/2015
Aug 16 17:21:55 linuxkiste kernel: [59050.391251] ffffffff81aa7428 ffff880006d6b8b8 ffffffff817aed00 0000000000000000
Aug 16 17:21:55 linuxkiste kernel: [59050.391253] ffffea0001981640 ffff880006d6b8e8 ffffffff817a9eaf ffffea0001981640
Aug 16 17:21:55 linuxkiste kernel: [59050.391255] 00000000000001c1 0000000000010200 ffffea0001981640 ffff880006d6b9d8
Aug 16 17:21:55 linuxkiste kernel: [59050.391257] Call Trace:
Aug 16 17:21:55 linuxkiste kernel: [59050.391260] [<ffffffff817aed00>] dump_stack+0x45/0x57
Aug 16 17:21:55 linuxkiste kernel: [59050.391261] [<ffffffff817a9eaf>] bad_page.part.52+0xe0/0xfe
Aug 16 17:21:55 linuxkiste kernel: [59050.391265] [<ffffffff8117e863>] get_page_from_freelist+0x883/0xa00
Aug 16 17:21:55 linuxkiste kernel: [59050.391268] [<ffffffff8117eb41>] __alloc_pages_nodemask+0x161/0xa60
Aug 16 17:21:55 linuxkiste kernel: [59050.391271] [<ffffffff8129e93b>] ? __ext4_handle_dirty_metadata+0x8b/0x220
Aug 16 17:21:55 linuxkiste kernel: [59050.391275] [<ffffffff811c41e1>] alloc_pages_current+0x91/0x100
Aug 16 17:21:55 linuxkiste kernel: [59050.391277] [<ffffffff81176007>] __page_cache_alloc+0xa7/0xc0
Aug 16 17:21:55 linuxkiste kernel: [59050.391279] [<ffffffff81176ab9>] pagecache_get_page+0x59/0x1c0
Aug 16 17:21:55 linuxkiste kernel: [59050.391281] [<ffffffff812183f2>] ? __mark_inode_dirty+0xc2/0x280
Aug 16 17:21:55 linuxkiste kernel: [59050.391284] [<ffffffff81176c4d>] grab_cache_page_write_begin+0x2d/0x50
Aug 16 17:21:55 linuxkiste kernel: [59050.391286] [<ffffffff81273e18>] ext4_da_write_begin+0x98/0x310
Aug 16 17:21:55 linuxkiste kernel: [59050.391289] [<ffffffff81175bf1>] generic_perform_write+0xb1/0x1a0
Aug 16 17:21:55 linuxkiste kernel: [59050.391291] [<ffffffff81177d8f>] __generic_file_write_iter+0x15f/0x350
Aug 16 17:21:55 linuxkiste kernel: [59050.391294] [<ffffffff81269961>] ext4_file_write_iter+0x101/0x3d0
Aug 16 17:21:55 linuxkiste kernel: [59050.391296] [<ffffffff811ebaf1>] new_sync_write+0x81/0xb0
Aug 16 17:21:55 linuxkiste kernel: [59050.391299] [<ffffffff811ec297>] vfs_write+0xb7/0x1f0
Aug 16 17:21:55 linuxkiste kernel: [59050.391301] [<ffffffff811ecd8e>] ? vfs_read+0x11e/0x140
Aug 16 17:21:55 linuxkiste kernel: [59050.391304] [<ffffffff811ecea6>] SyS_write+0x46/0xb0
Aug 16 17:21:55 linuxkiste kernel: [59050.391306] [<ffffffff817b668d>] system_call_fastpath+0x16/0x1b
Aug 16 17:21:56 linuxkiste kernel: [59051.456523] hfsplus: recoff 41228 too large
Aug 16 17:21:56 linuxkiste kernel: [59051.456529] hfsplus: request for non-existent node -872406482 in B*Tree
Aug 16 17:21:56 linuxkiste kernel: [59051.456531] hfsplus: request for non-existent node -872406482 in B*Tree
Aug 16 16:08:43 linuxkiste whoopsie[1271]: online
Aug 16 17:22:48 linuxkiste whoopsie[1271]: Parsing /var/crash/linux-image-3.19.0-25-generic.201895.crash.
Aug 16 17:22:48 linuxkiste whoopsie[1271]: Uploading /var/crash/linux-image-3.19.0-25-generic.201895.crash.
Aug 16 17:22:49 linuxkiste whoopsie[1271]: Sent; server replied with: No error
Aug 16 17:22:49 linuxkiste whoopsie[1271]: Response code: 200
Aug 16 17:22:49 linuxkiste whoopsie[1271]: Got command: OOPSID

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: hfsplus (not installed)
ProcVersionSignature: Ubuntu 3.19.0-25.26~14.04.1-generic 3.19.8-ckt2
Uname: Linux 3.19.0-25-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Aug 16 17:24:19 2015
ProcEnviron:
 LANGUAGE=de_DE
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: hfsplus
UpgradeStatus: No upgrade log present (probably fresh install)

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.