[Bug 238326] Kernel crash on jail stop (VIMAGE/VNET)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 238326] Kernel crash on jail stop (VIMAGE/VNET)

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238326

--- Comment #21 from Michael Grimm <[hidden email]> ---
I am experiencing those crashes for a while now, and they continue to happen
even after migrating from 12-STABLE to 13-STABLE recently.

Note: I did try every recommendation regarding jail shutdown in /etc/jail.conf,
and whether removing vnet before final shutdown or not, doesen't prevent those
random crashes.

Here my relevant part of /etc/jail.conf regarding the the panic message
following below.

------------- /etc/rc.conf ------------------
#
# host dependent global settings
#
$ip4prefixLOCAL = "10.10.10ā€œ;
$ip6prefixLOCAL = "fd00:e:e:eā€œ;

#
# global jail settings
#
$MTU                    = "mtu 1490";
host.hostname           = "${name}";
path                    = "/usr/home/jails/${name}";
mount.fstab             = "/etc/fstab.${name}";
exec.consolelog         = "/var/log/jail_${name}_console.log";
vnet                    = "new";
vnet.interface          = "epair${jailID}b";
exec.clean;
mount.devfs;
persist;

#
# network settings to apply/destroy during start/stop of every jail
#
exec.prestart            = "sleep 2";
exec.prestart           += "/sbin/ifconfig epair${jailID} create up ${MTU}";
exec.prestart           += "/sbin/ifconfig bridge0 addm epair${jailID}a";
exec.prestart           += "/sbin/ifconfig epair${jailID}a";
exec.start               = "/sbin/sysctl net.inet6.ip6.dad_count=0";
exec.start              += "/sbin/ifconfig lo0 127.0.0.1 up";
exec.start              += "/sbin/ifconfig epair${jailID}b inet ${ip4_addr}
${MTU}";
exec.start              += "/sbin/ifconfig epair${jailID}b inet6 ${ip6_addr}
${MTU}";
exec.start              += "/sbin/route add default -gateway
${ip4prefixLOCAL}.254";
exec.start              += "/sbin/route add -inet6 default -gateway
${ip6prefixLOCAL}::254";
exec.stop                = "/sbin/route del default";
exec.stop               += "/sbin/route del -inet6 default";
exec.stop               += "/bin/sh /etc/rc.shutdown";
# testing: reported to prevent from crashing (BUT: will crash as well!)
#exec.poststop           = "/sbin/ifconfig epair${jailID}a -vnet ${jailID}";
exec.poststop           += "/sbin/ifconfig epair${jailID}a destroy";

#
# individual jail settings
#

[snip]

jail5 {
        $jailID          = 5;
        $ip4_addr        = ${ip4prefixLOCAL}.5;
        $ip6_addr        = ${ip6prefixLOCAL}::5/64;
        exec.start      += "/bin/sh /etc/rc";
}

jail6 {
        $jailID          = 6;
        $ip4_addr        = ${ip4prefixLOCAL}.6;
        $ip6_addr        = ${ip6prefixLOCAL}::6/64;
        exec.start      += "/bin/sh /etc/rc";
}

------------- /var/log/messages -------------------
Jan 30 20:02:42 <kern.info> mer-waases kernel: epair5a: link state changed to
DOWN
Jan 30 20:02:42 <kern.info> mer-waases kernel: epair5b: link state changed to
DOWN
Jan 30 20:02:42 <kern.info> mer-waases kernel: in6_purgeaddr: err=65,
destination address delete failed
Jan 30 20:02:42 <kern.crit> mer-waases kernel: Freed UMA keg (rtentry) was not
empty (1 items).  Lost 1 pages of memory.
Jan 30 20:02:47 <kern.info> mer-waases kernel: epair6a: link state changed to
DOWN
Jan 30 20:02:47 <kern.info> mer-waases kernel: epair6b: link state changed to
DOWN
Jan 30 20:02:48 <kern.info> mer-waases kernel: in6_purgeaddr: err=65,
destination address delete failed
Jan 30 20:02:48 <kern.crit> mer-waases kernel: Freed UMA keg (rtentry) was not
empty (1 items).  Lost 1 pages of memory.
Jan 30 20:03:33 <syslog.info> mer-waases syslogd: restart
Jan 30 20:03:33 <kern.info> mer-waases syslogd: kernel boot file is
/boot/kernel/kernel
Jan 30 20:03:33 <kern.crit> mer-waases kernel:
Jan 30 20:03:33 <kern.crit> mer-waases syslogd: last message repeated 1 times
Jan 30 20:03:33 <kern.crit> mer-waases kernel: Fatal trap 12: page fault while
in kernel mode
Jan 30 20:03:33 <kern.crit> mer-waases kernel: cpuid = 0; apic id = 00
Jan 30 20:03:33 <kern.crit> mer-waases kernel: fault virtual address    = 0x0
Jan 30 20:03:33 <kern.crit> mer-waases kernel: fault code               =
supervisor write data, page not present
Jan 30 20:03:33 <kern.crit> mer-waases kernel: instruction pointer      =
0x20:0xffffffff80c668be
Jan 30 20:03:33 <kern.crit> mer-waases kernel: stack pointer            =
0x28:0xfffffe000e9e86c0
Jan 30 20:03:33 <kern.crit> mer-waases kernel: frame pointer            =
0x28:0xfffffe000e9e8700
Jan 30 20:03:33 <kern.crit> mer-waases kernel: code segment             = base
0x0, limit 0xfffff, type 0x1b
Jan 30 20:03:33 <kern.crit> mer-waases kernel:                  = DPL 0, pres
1, long 1, def32 0, gran 1
Jan 30 20:03:33 <kern.crit> mer-waases kernel: processor eflags = interrupt
enabled, resume, IOPL = 0
Jan 30 20:03:33 <kern.crit> mer-waases kernel: current process          = 12
(swi1: netisr 0)
Jan 30 20:03:33 <kern.crit> mer-waases kernel: trap number              = 12
Jan 30 20:03:33 <kern.crit> mer-waases kernel: panic: page fault
Jan 30 20:03:33 <kern.crit> mer-waases kernel: cpuid = 0
Jan 30 20:03:33 <kern.crit> mer-waases kernel: time = 1612033371
Jan 30 20:03:33 <kern.crit> mer-waases kernel: KDB: stack backtrace:
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #0 0xffffffff80c44f65 at
kdb_backtrace+0x65
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #1 0xffffffff80bf7bf1 at
vpanic+0x181
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #2 0xffffffff80bf7a63 at
panic+0x43
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #3 0xffffffff8102b237 at
trap_fatal+0x387
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #4 0xffffffff8102b28f at
trap_pfault+0x4f
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #5 0xffffffff8102a8ed at
trap+0x27d
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #6 0xffffffff810019e8 at
calltrap+0x8
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #7 0xffffffff80c914fe at
sowakeup+0x1e
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #8 0xffffffff80dcc0f6 at
udp_append+0x236
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #9 0xffffffff80dcbc1c at
udp_input+0x73c
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #10 0xffffffff80d9c3c5 at
ip_input+0x125
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #11 0xffffffff80d2c27a at
netisr_dispatch_src+0xca
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #12 0xffffffff80d10c78 at
ether_demux+0x138
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #13 0xffffffff80d12011 at
ether_nh_input+0x351
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #14 0xffffffff80d2c27a at
netisr_dispatch_src+0xca
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #15 0xffffffff80d110c9 at
ether_input+0x69
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #16 0xffffffff80d2ca1b at
swi_net+0x12b
Jan 30 20:03:33 <kern.crit> mer-waases kernel: #17 0xffffffff80bb8e6d at
ithread_loop+0x24d
Jan 30 20:03:33 <kern.crit> mer-waases kernel: Uptime: 4h47m14s
Jan 30 20:03:33 <kern.crit> mer-waases kernel: Automatic reboot in 15 seconds -
press a key on the console to abort
Jan 30 20:03:33 <kern.crit> mer-waases kernel: Rebooting...
Jan 30 20:03:33 <kern.crit> mer-waases kernel: ---<<BOOT>>---


HTH,
Michael

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"