Subject: kern/35953: Panic when mounting HFS+ partition
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <mange@freemail.hu>
List: netbsd-bugs
Date: 03/09/2007 01:20:00
>Number:         35953
>Category:       kern
>Synopsis:       Panic when mounting HFS+ partition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 09 01:20:00 +0000 2007
>Originator:     Magnus Henoch
>Release:        NetBSD 4.99.13
>Organization:
	
>Environment:
	
	
System: NetBSD zemdatav 4.99.13 NetBSD 4.99.13 (IBOOK) #0: Wed Mar 7 17:03:54 CET 2007 magnus@zemdatav:/media/e/netbsd/obj/sys/arch/macppc/compile/IBOOK macppc
Architecture: powerpc
Machine: macppc

     $NetBSD: hfs_subr.c,v 1.2 2007/03/06 11:28:48 dillo Exp $
     $NetBSD: hfs_vfsops.c,v 1.2 2007/03/06 11:28:48 dillo Exp $
     $NetBSD: hfs_vnops.c,v 1.2 2007/03/06 11:28:48 dillo Exp $

>Description:
	When I try to mount my HFS+ partition from Mac OS 10.3, I get
	a kernel panic.
>How-To-Repeat:
	sudo mount -t hfs /dev/wd0d /mnt

The relevant output (I think) from 'bt' in the debugger, handcopied:

panic: malloc: out of space in kmem_map
0xda7677f0: at panic+0x164
0xda767840: at malloc+0x30c
0xda767880: at realloc+0xe0
0xda7678a0: at hfs_libcb_realloc+0x18
0xda767860: at hfslib_realloc+0x24
0xda7678c0: at hfslib_open_volume+0x24c
0xda767d20: at hfs_mountfs+0x148
0xda767d90: at hfs_mount+0x238
0xda767dd0: at sys_mount+0x5fc
0xda767ee0: at syscall_plain+0x1f0

>Fix:
	

>Unformatted: