From owner-freebsd-net@freebsd.org Wed Dec 2 22:35:24 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DB31A3F442 for ; Wed, 2 Dec 2015 22:35:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1D291A81 for ; Wed, 2 Dec 2015 22:35:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tB2MZNGQ080172 for ; Wed, 2 Dec 2015 22:35:23 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Wed, 02 Dec 2015 22:35:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lidl@pix.net X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 22:35:24 -0000 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=, 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
, 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=, l=0) at /usr/src/sys/modules/dummynet/../../netpfil/ipfw/ip_dummynet.c:1235 #15 0x00000000c4ac3520 in do_config (p=, 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=) 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.