[Bug 233622] panic: page not present fault when stopping VIMAGE jail on 12.0-RC2, netgraph
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233622 SATO 'paina' Taisuke changed: What|Removed |Added CC||pa...@paina.jp --- Comment #9 from SATO 'paina' Taisuke --- Hi, I've encountered the same problem on 12.1R and found a workaround. The log shown below is how to reproduce the problem using qjail(8). It's easy like xsan described, stopping VIMAGE jail by qjail. root@pcv01:~ # uname -a FreeBSD pcv01.sagamihara.i.paina.net 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64 root@pcv01:~ # pkg info | grep ^qjail qjail-5.4 Utility to quickly deploy and manage jails root@pcv01:~ # qjail create -4 10.8.0.128 test001 Successfully created test001 root@pcv01:~ # qjail config -w vmx0 -v none test001 Successfully enabled vnet.interface for test001 Successfully enabled vnet for test001 root@pcv01:~ # qjail start test001 Jail successfully started test001 root@pcv01:~ # qjail stop test001 (crash!) I'm using 12.1R on VMware ESXi and the virtual NIC is vmx(4). And I've found the system crashes when qjail try to destroy epairNa interface, so I've put 'sleep 1' to qjail before the destruction like: *** /usr/local/bin/qjail.ORGWed Mar 4 20:13:14 2020 --- /usr/local/bin/qjailWed Mar 11 01:16:33 2020 *** *** 2350,2355 --- 2350,2356 # Disable vnet jails network configuration. # vnetid=`echo -n "${vnet}" | awk -F "|" '{print $2}'` + sleep 1 # XXX: workaround ifconfig epair"${vnetid}"a destroy # If host has no more vnet jails then disable bridge. It seems to happen when destroying epairNa just after killing(stopping) jailed process. Therefore, it can be reproduced by commands like: # jail -q -f /usr/local/etc/qjail.config/test001 -r test001; ifconfig epair1a destroy I'm not well on FreeBSD development, so I can't solve the problem alone. I hope somebody will fix it on future releases. Thanks! -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
[Bug 233622] panic: page not present fault when stopping VIMAGE jail on 12.0-RC2, netgraph
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233622 --- Comment #8 from xsan --- I have the same problem, and it's very easy way to show that. I use `qjail` tool to manage jails. # first create jail, and use vnet for jail. qjail create -4 192.168.1.101 testjail qjail config -w em0 -v none testjail # repeat the follows command, page fault will happend on stop command, and system reboot. qjail start testjail qjail stop testjail System: FreeBSD 12.1-RELEASE amd64 Logs: Nov 24 21:44:09 FingerAge kernel: epair3a: link state changed to DOWN Nov 24 21:44:09 FingerAge kernel: epair3b: link state changed to DOWN Nov 24 21:44:52 FingerAge syslogd: kernel boot file is /boot/kernel/kernel Nov 24 21:44:52 FingerAge kernel: Nov 24 21:44:52 FingerAge syslogd: last message repeated 1 times Nov 24 21:44:52 FingerAge kernel: Fatal trap 12: page fault while in kernel mode Nov 24 21:44:52 FingerAge kernel: cpuid = 7; apic id = 07 Nov 24 21:44:52 FingerAge kernel: fault virtual address = 0x410 Nov 24 21:44:52 FingerAge kernel: fault code= supervisor read data, page not present Nov 24 21:44:52 FingerAge kernel: instruction pointer = 0x20:0x80baff2d Nov 24 21:44:52 FingerAge kernel: stack pointer = 0x28:0xfe00403c3940 Nov 24 21:44:52 FingerAge kernel: frame pointer = 0x28:0xfe00403c39c0 Nov 24 21:44:52 FingerAge kernel: code segment = base 0x0, limit 0xf, type 0x1b Nov 24 21:44:52 FingerAge kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 Nov 24 21:44:52 FingerAge kernel: processor eflags = interrupt enabled, resume, IOPL = 0 Nov 24 21:44:52 FingerAge kernel: current process = 0 (thread taskq) Nov 24 21:44:52 FingerAge kernel: trap number = 12 Nov 24 21:44:52 FingerAge kernel: panic: page fault Nov 24 21:44:52 FingerAge kernel: cpuid = 7 Nov 24 21:44:52 FingerAge kernel: time = 1574603049 Nov 24 21:44:52 FingerAge kernel: KDB: stack backtrace: Nov 24 21:44:52 FingerAge kernel: #0 0x80c1d297 at kdb_backtrace+0x67 Nov 24 21:44:52 FingerAge kernel: #1 0x80bd05cd at vpanic+0x19d Nov 24 21:44:52 FingerAge kernel: #2 0x80bd0423 at panic+0x43 Nov 24 21:44:52 FingerAge kernel: #3 0x810a7dcc at trap_fatal+0x39c Nov 24 21:44:52 FingerAge kernel: #4 0x810a7e19 at trap_pfault+0x49 Nov 24 21:44:52 FingerAge kernel: #5 0x810a740f at trap+0x29f Nov 24 21:44:52 FingerAge kernel: #6 0x81081a0c at calltrap+0x8 Nov 24 21:44:52 FingerAge kernel: #7 0x80ccd5e1 at if_detach_internal+0x261 Nov 24 21:44:52 FingerAge kernel: #8 0x80cd490c at if_vmove+0x3c Nov 24 21:44:52 FingerAge kernel: #9 0x80cd48b8 at vnet_if_return+0x48 Nov 24 21:44:52 FingerAge kernel: #10 0x80cfe2b4 at vnet_destroy+0x124 Nov 24 21:44:52 FingerAge kernel: #11 0x80b98870 at prison_deref+0x2a0 Nov 24 21:44:52 FingerAge kernel: #12 0x80c2fa74 at taskqueue_run_locked+0x154 Nov 24 21:44:52 FingerAge kernel: #13 0x80c30da8 at taskqueue_thread_loop+0x98 Nov 24 21:44:52 FingerAge kernel: #14 0x80b90c23 at fork_exit+0x83 Nov 24 21:44:52 FingerAge kernel: #15 0x81082a4e at fork_trampoline+0xe -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
[Bug 233622] panic: page not present fault when stopping VIMAGE jail on 12.0-RC2, netgraph
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233622 Arne Steinkamm changed: What|Removed |Added CC||a...@steinkamm.com --- Comment #7 from Arne Steinkamm --- I can reproduce this panic with 12.0-RELEASE-p7 r350232 and a pretty forward out-of-the-handbook Jail setup. This should be enough to get a nasty panic: Host: /etc/rc.conf: [...] vlans_em0="vlcx0" create_args_vlcx0="vlan 18" ifconfig_em0="up" ifconfig_vlcx0="inet 10.8.8.110 netmask 255.255.255.0" [...] jail_enable="YES" jail_confwarn="YES" jail_parallel_start="NO" jail_list="jv" jail_reverse_stop="YES" - /etc/jail.conf: exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.clean; jv { host.hostname = "julesverne.stk.cx"; path = "/var/local/prison/jv"; exec.clean; exec.system_user = "root"; exec.jail_user = "root"; vnet; exec.clean; vnet.interface = "ng0_jv"; exec.system_user = "root"; exec.jail_user = "root"; exec.prestart += "/l/om/sbin/jng bridge jv em0"; exec.poststop += "/l/om/sbin/jng shutdown jv"; # Standard stuff exec.consolelog = "/var/local/log/jails/jv_console.log"; mount.devfs; #mount devfs allow.raw_sockets;#allow ping-pong devfs_ruleset="5";#devfs ruleset for this jail mount.devfs; } Jail /etc/rc.conf: [...] ifconfig_ng0_jv="up" vlans_ng0_jv="jjvcx0" create_args_jjvcx0="vlan 18" ifconfig_jjvcx0="inet 10.8.8.190 netmask 255.255.255.0" [...] /l/om/sbin/jng is a copy of /usr/src/share/examples/jails/jng This should be everything you need to get exact the panic described in this bug report. -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
[Bug 233622] panic: page not present fault when stopping VIMAGE jail on 12.0-RC2, netgraph
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233622 Eugene Grosbein changed: What|Removed |Added CC||eu...@freebsd.org --- Comment #6 from Eugene Grosbein --- This PR lack many valuable technical details. If the problem is really in netgraph, please you describe used nodes and their hooks and settings because just notice of some "jng" (whatever it is) not enough. Plain ng0 is p2p-interface and vlan is not. You should also supply any additional details that may be relevand and do not forget to show output of "ngctl list" when jail is up and running, before is panices kernel at shutdown. -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
[Bug 233622] panic: page not present fault when stopping VIMAGE jail on 12.0-RC2, netgraph
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233622 Bjoern A. Zeeb changed: What|Removed |Added Assignee|b...@freebsd.org |n...@freebsd.org --- Comment #5 from Bjoern A. Zeeb --- Sorry, I got side-tracked while I was looking at this. Release it to net@ in case someone else beats me to fixing it. -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"