amd64/88249: getdents syscall fails for devfs on amd64 linuxalator
Arno J. Klaassen
arno at heho.snv.jussieu.fr
Sun Oct 30 11:10:20 PST 2005
>Number: 88249
>Category: amd64
>Synopsis: getdents syscall fails for devfs on amd64 linuxalator
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-amd64
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 30 19:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Arno J. Klaassen
>Release: RELENG_6
>Organization:
INSERM U472
>Environment:
FreeBSD demo 6.0-RC1 FreeBSD 6.0-RC1 #1: Sat Oct 29 17:04:50 CEST 2005 toor at demo:/files/amd64/obj/files/bsd/src6/sys/D470K amd64
>Description:
Calling getdents() on /dev from within linux emulation panics with 'kmem_malloc: entry not found or misaligned' :
#0 doadump () at /files/bsd/src6/sys/kern/kern_shutdown.c:234
#1 0xffffffff8030c10b in boot (howto=260)
at /files/bsd/src6/sys/kern/kern_shutdown.c:399
#2 0xffffffff8030c5de in panic (
fmt=0xffffffff805cdea8 "kmem_malloc: entry not found or misaligned")
at /files/bsd/src6/sys/kern/kern_shutdown.c:555
#3 0xffffffff804ed2cf in kmem_malloc (map=0xffffff003e0b0160, size=0,
flags=258) at /files/bsd/src6/sys/vm/vm_kern.c:382
#4 0xffffffff804e00a2 in page_alloc (zone=0x0, bytes=0,
pflag=0xffffffffa7aa15e7 "\002\200eë?", wait=258)
at /files/bsd/src6/sys/vm/uma_core.c:957
#5 0xffffffff804e3bbb in uma_large_malloc (size=0, wait=258)
at /files/bsd/src6/sys/vm/uma_core.c:2711
#6 0xffffffff802fc503 in malloc (size=0, mtp=0xffffffff80706880, flags=258)
at /files/bsd/src6/sys/kern/kern_malloc.c:327
#7 0xffffffff802fc6fe in realloc (addr=0x0, size=18446744073709549576,
mtp=0xffffffff80706880, flags=258)
at /files/bsd/src6/sys/kern/kern_malloc.c:416
#8 0xffffffff80398412 in vfs_read_dirent (ap=0xffffffffa7aa1790,
dp=0xffffff003d44f898, off=0) at /files/bsd/src6/sys/kern/vfs_subr.c:3877
#9 0xffffffff80290f56 in devfs_readdir (ap=0xffffffffa7aa1790)
at /files/bsd/src6/sys/fs/devfs/devfs_vnops.c:828
#10 0xffffffff805815ec in VOP_READDIR_APV (vop=0xffffffff806fc480,
a=0xffffffffa7aa1790) at vnode_if.c:1427
#11 0xffffffff8056f559 in VOP_READDIR (vp=0xffffff0002a2d000,
uio=0xffffffffa7aa1ab0, cred=0xffffff0034ea7300,
eofflag=0xffffffffa7aa1854, ncookies=0xffffffffa7aa1834,
cookies=0xffffffffa7aa1840) at vnode_if.h:747
#12 0xffffffff8056efe6 in getdents_common (td=0xffffff0030440000,
args=0xffffffffa7aa1b90, is64bit=1)
at /files/bsd/src6/sys/compat/linux/linux_file.c:328
#13 0xffffffff8056f612 in linux_getdents64 (td=0xffffff0030440000,
args=0xffffffffa7aa1b90)
at /files/bsd/src6/sys/compat/linux/linux_file.c:476
#14 0xffffffff80564f54 in ia32_syscall (frame=
{tf_rdi = 3, tf_rsi = 0, tf_rdx = 4096, tf_rcx = 134533232, tf_r8 = 0, tf_r9 = 0, tf_rax = 220, tf_rbx = 3, tf_rbp = 4294957720, tf_r10 = 0, tf_r11 = 0, tf_r12 = 0, tf_r13 = 0, tf_r14 = 0, tf_r15 = 0, tf_trapno = 12, tf_addr = 134537332, tf_flags = 0, tf_err = 2, tf_rip = 672148537, tf_cs = 27, tf_rflags = 582, tf_rsp = 4294957644, tf_ss = 35})
at /files/bsd/src6/sys/amd64/ia32/ia32_syscall.c:186
#15 0xffffffff8050c1ad in Xint0x80_syscall () at ia32_exception.S:64
>How-To-Repeat:
open a shell '/compat/linux/bin/bash' and try 'tty' or 'ls /dev/'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-amd64
mailing list