Trying to use a carp interface in a VIMAGE enabled kernel, panics the kernel. #4 0xc051ce3d in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:229 #5 0xc0a99226 in kdb_trap (type=12, code=0, tf=0xc49a3b18) at /usr/src/sys/kern/subr_kdb.c:629 #6 0xc0e1a30f in trap_fatal (frame=0xc49a3b18, eva=24) at /usr/src/sys/i386/i386/trap.c:966 #7 0xc0e1ada3 in trap (frame=0xc49a3b18) at /usr/src/sys/i386/i386/trap.c:352 #8 0xc0e03b0c in calltrap () at /usr/src/sys/i386/i386/exception.s:168 #9 0xc7abefd0 in carp_send_ad_locked (sc=0xc500a600) at /usr/src/sys/modules/carp/../../netinet/ip_carp.c:777 #10 0xc7abf984 in carp_master_down_locked (sc=0xc500a600) at /usr/src/sys/modules/carp/../../netinet/ip_carp.c:1119 #11 0xc7abfc4f in carp_master_down (v=0xc500a600) at /usr/src/sys/modules/carp/../../netinet/ip_carp.c:1104 #12 0xc0a78aa2 in softclock (arg=0xc119e5c0) at /usr/src/sys/kern/kern_timeout.c:571 #13 0xc0a382f5 in intr_event_execute_handlers (p=0xc4deb588, ie=0xc4e2d280) at /usr/src/sys/kern/kern_intr.c:1257 Fix: The attached patch fixes the panic. It doesn't virtualize carp(4), that is, only carp instances in vnet0 work. Patch attached with submission follows: How-To-Repeat: Build a VIMAGE kernel. Create and 'up' a carp address.
Responsible Changed From-To: freebsd-bugs->freebsd-net Over to maintainer(s).
Hi, Nikos! On Wed, Feb 01, 2012 at 10:40:35PM +0000, Nikos Vassiliadis wrote: N> >Description: N> Trying to use a carp interface in a VIMAGE enabled kernel, panics the kernel. Can you please test another patch, that is attached? -- Totus tuus, Glebius.
On 2/6/2012 1:47 PM, Gleb Smirnoff wrote: > Hi, Nikos! > > On Wed, Feb 01, 2012 at 10:40:35PM +0000, Nikos Vassiliadis wrote: > N> >Description: > N> Trying to use a carp interface in a VIMAGE enabled kernel, panics the kernel. > > Can you please test another patch, that is attached? > Yes, it works. Please, commit it. Thanks!
State Changed From-To: open->closed
Responsible Changed From-To: freebsd-net->glebius Fixed.
Needs merge to stable/9
*** Bug 147950 has been marked as a duplicate of this bug. ***
Fixed in FreeBSD 10 by: ------------------------------------------------------------------------ r231201 | glebius | 2012-02-08 05:39:38 -0800 (Wed, 08 Feb 2012) | 4 lines Set vnet context in callouts and taskqueues. PR: 164696 ------------------------------------------------------------------------