From owner-freebsd-net@freebsd.org Wed Mar 11 01:43:11 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DB3C22768E8 for ; Wed, 11 Mar 2020 01:43:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48cZV71ldLz3JlW for ; Wed, 11 Mar 2020 01:43:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 077372768E7; Wed, 11 Mar 2020 01:43:11 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 06A432768E6 for ; Wed, 11 Mar 2020 01:43:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48cZV61BKCz3Jj9 for ; Wed, 11 Mar 2020 01:43:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 91F214F5A for ; Wed, 11 Mar 2020 01:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 02B1h93p048363 for ; Wed, 11 Mar 2020 01:43:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02B1h9rS048362 for net@FreeBSD.org; Wed, 11 Mar 2020 01:43:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 233622] panic: page not present fault when stopping VIMAGE jail on 12.0-RC2, netgraph Date: Wed, 11 Mar 2020 01:43:06 +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: 12.0-RELEASE X-Bugzilla-Keywords: crash, panic, vimage X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: paina@paina.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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.29 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, 11 Mar 2020 01:43:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233622 SATO 'paina' Taisuke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paina@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 interfa= ce, so I've put 'sleep 1' to qjail before the destruction like: *** /usr/local/bin/qjail.ORG Wed Mar 4 20:13:14 2020 --- /usr/local/bin/qjail Wed Mar 11 01:16:33 2020 *************** *** 2350,2355 **** --- 2350,2356 ---- # Disable vnet jails network configuration. # vnetid=3D`echo -n "${vnet}" | awk -F "|" '{print $2}'`=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 + 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) jai= led process. Therefore, it can be reproduced by commands like: # jail -q -f /usr/local/etc/qjail.config/test001 -r test001; ifconfig epair= 1a 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! --=20 You are receiving this mail because: You are the assignee for the bug.=