Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Dec 2015 22:35:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 189219] [dummynet] [patch] using dummynet on sparc64 and configuring a pipe is an insta-panic
Message-ID:  <bug-189219-2472-CNOK2d62hh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-189219-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-189219-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189219

lidl@pix.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lidl@pix.net

--- Comment #5 from lidl@pix.net ---
I was able to replicate this on my sparc V120 machine today,
running a pretty recent head (r291431).

To reproduce this, I issued the following commands on the console:

root@ton-128: /etc/rc.d/ipfw onestart
root@ton-129: kldload dummynet
DUMMYNET 0 with IPv6 initialized (100409)
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
load_dn_sched dn_sched PRIO loaded
root@ton-130: ipfw pipe 1 config bw 100mbit
panic: trap: memory address not aligned (kernel)
cpuid = 0
KDB: stack backtrace:
vpanic() at vpanic+0x1b4
panic() at panic+0x20
trap() at trap+0x5cc
-- memory address not aligned sfar=0xfffff800015dee7c sfsr=0x40029
%o7=0xc4ac3518 --
userland() at do_config+0x59c
user trace: trap %o7=0xc4ac3518
pc 0xc4ac2d9c, sp 0xee550831
done
KDB: enter: panic
[ thread pid 8997 tid 100587 ]
Stopped at      kdb_enter+0x80: ta              %xcc, 1

Backtrace from the savecore run:

KDB: enter: panic

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from
/usr/lib/debug//
boot/kernel/zfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from
/usr/lib
/debug//boot/kernel/opensolaris.ko.debug...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/geom_mirror.ko...Reading symbols from
/usr/lib
/debug//boot/kernel/geom_mirror.ko.debug...done.
done.
Loaded symbols for /boot/kernel/geom_mirror.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from
/usr/lib/debug
//boot/kernel/tmpfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ipfw.ko
Reading symbols from /boot/kernel/dummynet.ko...Reading symbols from
/usr/lib/debug//boot/kernel/dummynet.ko.debug...done.
done.
Loaded symbols for /boot/kernel/dummynet.ko
#0  0x00000000c05dd3a0 in doadump (textdump=0)
    at /usr/src/sys/kern/kern_shutdown.c:295
295             savectx(&dumppcb);
(kgdb) #0  0x00000000c05dd3a0 in doadump (textdump=0)
    at /usr/src/sys/kern/kern_shutdown.c:295
#1  0x00000000c011c8d0 in db_dump (dummy=3227700832, dummy2=false, dummy3=-1, 
    dummy4=0xee5504e0 "") at /usr/src/sys/ddb/db_command.c:533
#2  0x00000000c011ba04 in db_command (last_cmdp=0xc0d11880, cmd_table=0x0, 
    dopager=1) at /usr/src/sys/ddb/db_command.c:440
#3  0x00000000c011bd14 in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:493
#4  0x00000000c011fb74 in db_trap (type=<value optimized out>, code=0)
    at /usr/src/sys/ddb/db_main.c:251
#5  0x00000000c062d70c in kdb_trap (type=107, code=0, tf=0xee5509f0)
    at /usr/src/sys/kern/subr_kdb.c:654
#6  0x00000000c09df4e0 in trap (tf=0xee5509f0)
    at /usr/src/sys/sparc64/sparc64/trap.c:344
#7  0x00000000c00b1080 in tl1_trap ()
#8  0x00000000c062ce60 in kdb_enter (why=0x12 <Address 0x12 out of bounds>, 
    msg=0xc0bcfdc0 "panic") at /usr/src/sys/kern/subr_kdb.c:442
#9  0x00000000c062ce48 in kdb_enter (why=0xc0bcfdc0 "panic", 
    msg=0xc0bcfdc0 "panic") at /usr/src/sys/kern/subr_kdb.c:441
#10 0x00000000c05dde00 in vpanic (fmt=0xc0c1b9a8 "trap: %s (kernel)", 
    ap=0xee550dc8) at /usr/src/sys/kern/kern_shutdown.c:750
#11 0x00000000c05dde68 in panic (fmt=0xc0c1b9a8 "trap: %s (kernel)")
    at /usr/src/sys/kern/kern_shutdown.c:688
#12 0x00000000c09df754 in trap (tf=0xee550f30)
    at /usr/src/sys/sparc64/sparc64/trap.c:410
#13 0x00000000c00b1080 in tl1_trap ()
#14 0x00000000c4ac2d9c in do_config (p=<value optimized out>, l=0)
    at /usr/src/sys/modules/dummynet/../../netpfil/ipfw/ip_dummynet.c:1235
#15 0x00000000c4ac3520 in do_config (p=<value optimized out>, l=152)
    at /usr/src/sys/modules/dummynet/../../netpfil/ipfw/ip_dummynet.c:1540
#16 0x00000000c4ac3c40 in ip_dn_ctl (sopt=0xee551580)
    at /usr/src/sys/modules/dummynet/../../netpfil/ipfw/ip_dummynet.c:2112
#17 0x00000000c078a8dc in rip_ctloutput (so=0xfffff800055d2e88, 
    sopt=0xee551580) at /usr/src/sys/netinet/raw_ip.c:661
#18 0x00000000c0688814 in sosetopt (so=0xfffff800055d2e88, sopt=0xee551580)
    at /usr/src/sys/kern/uipc_socket.c:2493
#19 0x00000000c0690930 in kern_setsockopt (td=0xfffff80096b0a9a0, s=3, 
    level=0, name=49, val=0x40a18000, valseg=UIO_USERSPACE, 
    valsize=<value optimized out>) at /usr/src/sys/kern/uipc_syscalls.c:1459
#20 0x00000000c06909e8 in sys_setsockopt (td=0xfffff80096b0a9a0, 
    uap=0xee551768) at /usr/src/sys/kern/uipc_syscalls.c:1413
#21 0x00000000c09de68c in syscall (tf=0xee551880) at subr_syscall.c:140
#22 0x00000000c00b0e60 in tl0_intr ()
#23 0x0000000000000000 in ?? ()
(kgdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-189219-2472-CNOK2d62hh>