Bug 63841

Summary: hfsplus: crash in bnode_read
Product: File System Reporter: Chris Murphy (bugzilla)
Component: HFS/HFSPLUSAssignee: fs_hfs (fs_hfs)
Status: NEW ---    
Severity: high CC: alan, saproj
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.11.6 Subsystem:
Regression: No Bisected commit-id:
Attachments: journalctl -b
Fix

Description Chris Murphy 2013-10-27 07:43:18 UTC
Created attachment 112371 [details]
journalctl -b

Transient so far, uncertain what the trigger is.


Oct 27 01:26:45 f20s.localdomain kernel: general protection fault: 0000 [#1] SMP 
Oct 27 01:26:45 f20s.localdomain kernel: Modules linked in: vhost_net vhost macvtap macvlan tun xt_CHECKSUM nf_conntrack_netbios_ns nf_conntrack_broadcas...ble_mangle
Oct 27 01:26:45 f20s.localdomain kernel:  mmc_core snd_pcm input_polldev firewire_sbp2 snd_page_alloc hid_appleir bcm5974 snd_timer btusb snd lpc_ich mfd_core soun...
Oct 27 01:26:45 f20s.localdomain kernel: CPU: 1 PID: 2279 Comm: ls Not tainted 3.11.6-300.fc20.x86_64 #1
Oct 27 01:26:45 f20s.localdomain kernel: Hardware name: Apple Inc. MacBookPro4,1/Mac-F42C89C8, BIOS    MBP41.88Z.00C1.B03.0802271651 02/27/08
Oct 27 01:26:45 f20s.localdomain kernel: task: ffff880106b4eac0 ti: ffff88011a350000 task.ti: ffff88011a350000
Oct 27 01:26:45 f20s.localdomain kernel: RIP: 0010:[<ffffffff813068c2>]  [<ffffffff813068c2>] memcpy+0x12/0x110
Oct 27 01:26:45 f20s.localdomain kernel: RSP: 0018:ffff88011a351a98  EFLAGS: 00010202
Oct 27 01:26:45 f20s.localdomain kernel: RAX: ffff88011a351b14 RBX: 0000000000000004 RCX: 0000000000000004
Oct 27 01:26:45 f20s.localdomain kernel: RDX: 0000000000000004 RSI: 0005080000000801 RDI: ffff88011a351b14
Oct 27 01:26:45 f20s.localdomain kernel: RBP: ffff88011a351ae8 R08: 0000000000016fc0 R09: ffff8801238f6610
Oct 27 01:26:45 f20s.localdomain kernel: R10: ffff88013b001400 R11: 0000000000000246 R12: ffff88011a351b14
Oct 27 01:26:45 f20s.localdomain kernel: R13: ffff880000000000 R14: 0000160000000000 R15: 0000000000000004
Oct 27 01:26:45 f20s.localdomain kernel: FS:  00007ff1eabe3840(0000) GS:ffff88013fd00000(0000) knlGS:0000000000000000
Oct 27 01:26:45 f20s.localdomain kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 27 01:26:45 f20s.localdomain kernel: CR2: 0000000000d73698 CR3: 000000010a24a000 CR4: 00000000000027e0
Oct 27 01:26:45 f20s.localdomain kernel: Stack:
Oct 27 01:26:45 f20s.localdomain kernel:  ffffffffa070754a ffff8801238f6610 ffffffffa0709cac 0000000300000801
Oct 27 01:26:45 f20s.localdomain kernel:  0000000700000004 0000000000000001 ffff88011a351b60 0000000000000003
Oct 27 01:26:45 f20s.localdomain kernel:  0000000000000003 ffff8801238f6600 ffff88011a351b40 ffffffffa0709dee
Oct 27 01:26:45 f20s.localdomain kernel: Call Trace:
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffffa070754a>] ? hfsplus_bnode_read+0x8a/0x100 [hfsplus]
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffffa0709cac>] ? __hfsplus_brec_find+0xac/0x170 [hfsplus]
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffffa0709dee>] hfsplus_brec_find+0x7e/0x150 [hfsplus]
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffffa0709a50>] ? hfsplus_brec_remove+0x180/0x180 [hfsplus]
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff8164bb72>] ? mutex_lock+0x12/0x2f
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffffa070667d>] hfsplus_readdir+0xad/0x4d0 [hfsplus]
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff81145477>] ? __alloc_pages_nodemask+0x167/0xa20
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff8119d823>] ? __mem_cgroup_commit_charge+0xa3/0x360
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff8119f9e4>] ? mem_cgroup_charge_common+0xa4/0x120
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff8114a82d>] ? lru_cache_add+0x2d/0x60
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff81170db6>] ? page_add_new_anon_rmap+0xc6/0x1d0
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff81165988>] ? handle_pte_fault+0x488/0xa70
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff81166d81>] ? handle_mm_fault+0x291/0x660
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff811ba13d>] iterate_dir+0xad/0xe0
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff811ba572>] SyS_getdents+0x92/0x120
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff811ba250>] ? fillonedir+0xe0/0xe0
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff8164f998>] ? page_fault+0x28/0x30
Oct 27 01:26:45 f20s.localdomain kernel:  [<ffffffff81657b59>] system_call_fastpath+0x16/0x1b
Oct 27 01:26:45 f20s.localdomain kernel: Code: 66 0f 1f 84 00 00 00 00 00 e8 fb fb ff ff eb e2 90 90 90 90 90 90 90 90 90 48 89 f8 48 89 d1 48 c1 e9 03 8... 18 48 8d 
Oct 27 01:26:45 f20s.localdomain kernel: RIP  [<ffffffff813068c2>] memcpy+0x12/0x110
Oct 27 01:26:45 f20s.localdomain kernel:  RSP <ffff88011a351a98>
Oct 27 01:26:45 f20s.localdomain kernel: ---[ end trace 637957428abebcdb ]---
Comment 1 Sergei 2015-06-07 14:51:26 UTC
Created attachment 178971 [details]
Fix

Please, check this patch out.