Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Dec 2012 00:39:00 -0600
From:      Matthew Grooms <mgrooms@shrew.net>
To:        freebsd-geom@FreeBSD.org
Subject:   9.1-RC3 GEOM gate issues ...
Message-ID:  <50BAF784.8060001@shrew.net>

next in thread | raw e-mail | index | archive | help
All,

I was hoping to use GEOM gate for a project I was working on. But it 
appears to be have a few issues. The first of which is a kernel panic 
whenever access is denied from ggated. For example:

... this is printed on the ggated host ...

Dec  1 20:05:23 host ggated: Unauthorized connection from: x.x.x.x.

... which leads to this on the ggatec host ...

Sat Dec  1 23:41:02 CST 2012

FreeBSD san-test2 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 
00:58:57 UTC 2012 
root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

panic: integer divide fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:



Fatal trap 18: integer divide fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x20:0xffffffff81613627
stack pointer           = 0x28:0xffffff800e9b3850
frame pointer           = 0x28:0xffffff800e9b39e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 856 (ggatec)
trap number             = 18
panic: integer divide fault
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff809208a6 at kdb_backtrace+0x66
#1 0xffffffff808ea8be at panic+0x1ce
#2 0xffffffff80bd8240 at trap_fatal+0x290
#3 0xffffffff80bd88d5 at trap+0x105
#4 0xffffffff80bc315f at calltrap+0x8
#5 0xffffffff807db28b at devfs_ioctl_f+0x7b
#6 0xffffffff80932325 at kern_ioctl+0x115
#7 0xffffffff8093255d at sys_ioctl+0xfd
#8 0xffffffff80bd7ae6 at amd64_syscall+0x546
#9 0xffffffff80bc3447 at Xfast_syscall+0xf7
Uptime: 24s
Dumping 113 out of 236 MB:..15%..29%..43%..57%..71%..85%..99%

Reading symbols from /boot/kernel/geom_gate.ko...Reading symbols from 
/boot/kernel/geom_gate.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_gate.ko
#0  doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:224
224     pcpu.h: No such file or directory.
         in pcpu.h
(kgdb) #0  doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:224
#1  0xffffffff808ea3a1 in kern_reboot (howto=260)
     at /usr/src/sys/kern/kern_shutdown.c:448
#2  0xffffffff808ea897 in panic (fmt=0x1 <Address 0x1 out of bounds>)
     at /usr/src/sys/kern/kern_shutdown.c:636
#3  0xffffffff80bd8240 in trap_fatal (frame=0x12, eva=Variable "eva" is 
not available.
)
     at /usr/src/sys/amd64/amd64/trap.c:857
#4  0xffffffff80bd88d5 in trap (frame=0xffffff800e9b37a0)
     at /usr/src/sys/amd64/amd64/trap.c:599
#5  0xffffffff80bc315f in calltrap ()
     at /usr/src/sys/amd64/amd64/exception.S:228
#6  0xffffffff81613627 in g_gate_ioctl (dev=0xfffffe000415e400,
     cmd=3374869760, addr=0xfffffe000409c000 "\002", flags=3,
     td=0xfffffe000407d8e0)
     at /usr/src/sys/modules/geom/geom_gate/../../../geom/gate/g_gate.c:362
#7  0xffffffff807db28b in devfs_ioctl_f (fp=0xfffffe00040d0000,
     com=3374869760, data=Variable "data" is not available.
) at /usr/src/sys/fs/devfs/devfs_vnops.c:757
#8  0xffffffff80932325 in kern_ioctl (td=Variable "td" is not available.
) at file.h:293
#9  0xffffffff8093255d in sys_ioctl (td=0xfffffe000407d8e0,
     uap=0xffffff800e9b3bb0) at /usr/src/sys/kern/sys_generic.c:691
#10 0xffffffff80bd7ae6 in amd64_syscall (td=0xfffffe000407d8e0, traced=0)
     at subr_syscall.c:135
#11 0xffffffff80bc3447 in Xfast_syscall ()
     at /usr/src/sys/amd64/amd64/exception.S:387
#12 0x000000080137dcdc in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)

Is this a known issue?

Thanks,

-Matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50BAF784.8060001>