Hi,
After updating to 12-STABLE I am getting kernel panics when re-starting the jail
service. Here's a backtrace:
#6 0xffffffff8108696f in trap_pfault (frame=0xfffffe00216682c0,
usermode=<optimized out>, signo=<optimized out>, ucode=<optimized
out>)
at /usr/src/sys/amd64/amd64/trap.c:739
#7 0xffffffff81085fb6 in trap (frame=0xfffffe00216682c0) at
/usr/src/sys/amd64/amd64/trap.c:405
#8 <signal handler called>
#9 __mtx_lock_sleep (c=0xfffff8002ef9c738, v=<optimized out>) at
/usr/src/sys/kern/kern_mutex.c:580
#10 0xffffffff80bb1381 in _rm_rlock_hard (rm=0xfffff8002ef9c6e0,
tracker=0xfffffe0021668450, trylock=0) at /usr/src/sys/kern/kern_rmlock.c:410
#11 0xffffffff80cddf96 in rtinit1 (ifa=<optimized out>, cmd=<optimized
out>, flags=0, fibnum=0) at /usr/src/sys/net/route.c:2030
#12 rtinit (ifa=<optimized out>, cmd=<optimized out>, flags=0) at
/usr/src/sys/net/route.c:2177
#13 0xffffffff80d2f25e in in_scrubprefix (target=0xfffff8002ef6f000, flags=0) at
/usr/src/sys/netinet/in.c:897
#14 0xffffffff80d46b3d in rip_ctlinput (cmd=<optimized out>,
sa=0xfffff8002ef6f098, vip=<optimized out>) at
/usr/src/sys/netinet/raw_ip.c:804
#15 0xffffffff80c40f9c in pfctlinput (cmd=0, sa=0xfffff8002ef6f098) at
/usr/src/sys/kern/uipc_domain.c:473
#16 0xffffffff80cb37ba in if_unroute (ifp=0xfffff80003c47800, flag=<error
reading variable: Cannot access memory at address 0x1>,
fam=<error reading variable: Cannot access memory at address 0x0>) at
/usr/src/sys/net/if.c:2307
#17 if_down (ifp=0xfffff80003c47800) at /usr/src/sys/net/if.c:2410
#18 0xffffffff80cb10e4 in if_detach_internal (ifp=0xfffff80003c47800, vmove=0,
ifcp=0x0) at /usr/src/sys/net/if.c:1131
#19 0xffffffff80cb0d7e in if_detach (ifp=0xfffff8002ef9c738) at
/usr/src/sys/net/if.c:1042
#20 0xffffffff82b60bb1 in epair_clone_destroy (ifc=0xfffff8002e9ce780,
ifp=0xfffff80003c43000) at /usr/src/sys/net/if_epair.c:951
#21 0xffffffff80cb8ecd in if_clone_destroyif (ifc=0xfffff8002e9ce780,
ifp=0xfffff80003c43000) at /usr/src/sys/net/if_clone.c:337
#22 0xffffffff80cb8d92 in if_clone_destroy (name=0xfffffe0021668a10
"epair65a") at /usr/src/sys/net/if_clone.c:295
#23 0xffffffff80cb5d14 in ifioctl (so=0xfffff8006769e368, cmd=2149607801,
data=0xfffffe0021668a10 "epair65a", td=<optimized out>)
at /usr/src/sys/net/if.c:3100
#24 0xffffffff80c205a7 in fo_ioctl (fp=0xfffff8002e9c51e0, com=2149607801,
data=0xffffffff82a10088, active_cred=0x1, td=0xfffff8003399e740)
at /usr/src/sys/sys/file.h:337
#25 kern_ioctl (td=0x1, fd=<optimized out>, com=2149607801,
data=0xffffffff82a10088 "\210") at /usr/src/sys/kern/sys_generic.c:805
#26 0xffffffff80c2024a in sys_ioctl (td=0xfffff8003399e740,
uap=0xfffff8003399eb00) at /usr/src/sys/kern/sys_generic.c:713
#27 0xffffffff810874c7 in syscallenter (td=0xfffff8003399e740) at
/usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144
My jail.conf looks like this:
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
path = "/jails/$name";
$ip_route = "10.0.64.1";
vnet;
vnet.interface = "epair${id}b";
exec.prestart = "ifconfig epair${id} create up";
exec.prestart += "ifconfig bridge0 addm epair${id}a up";
exec.start = "ifconfig epair${id}b inet ${ip_addr} up";
exec.start += "route add default ${ip_route}";
exec.start += "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.poststop = "ifconfig epair${id}a destroy";
api1 {
host.hostname = "api1.mydomain.com";
persist;
$id = "33";
$ip_addr = "10.0.64.$id";
}
node2 {
host.hostname = "node2.mydomain.com";
persist;
$id = "65";
$ip_addr = "10.0.64.$id";
}
Any ideas? or patches?
Thanks!
Nikos